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

Function net_pcap

network_diagnostics.py:2043–2045  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2041 return {'success': False, 'error': r['err'] or 'failed to remove bridge'}
2042 return {'success': True, 'destroyed': True}
2043
2044 # ---- create: validate hard before touching any link --------------------
2045 default_if = _default_route_iface()
2046 for i in (iface_a, iface_b):
2047 if not _valid_iface(i):
2048 return {'success': False, 'error': f'invalid interface {i!r}'}

Callers

nothing calls this directly

Calls 3

_logFunction · 0.85
do_pcap_from_uploadFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected