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

Function net_ptp

network_diagnostics.py:2053–2057  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2051
2052
2053def do_dhcp_snoop(trusted=None, untrusted=None, seconds=20):
2054 """Inline DHCP-snooping pass. Captures real DHCP off the wire per ingress
2055 port and applies the trusted/untrusted model:
2056
2057 * any DHCP *server* message on the UNTRUSTED port -> rogue (definitive)
2058 * OFFER/ACK anywhere -> binding-table entry
2059 * many distinct chaddrs in DISCOVERs -> starvation
2060

Callers

nothing calls this directly

Calls 3

_logFunction · 0.85
do_ptp_detectFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected