MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / net_locate_port

Function net_locate_port

network_diagnostics.py:2067–2073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2065 untrusted = untrusted or cfg.get('untrusted')
2066 if not trusted or not untrusted:
2067 return {'success': False,
2068 'error': 'trusted and untrusted ports are not set — designate them first',
2069 'need_config': True}
2070
2071 members = [trusted, untrusted]
2072 packets, err = _dhcp_snoop_capture(members, seconds)
2073 if err:
2074 return {'success': False, 'error': err}
2075
2076 reasons = []

Callers

nothing calls this directly

Calls 3

_logFunction · 0.85
do_locate_portFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected