add debug flags for arp, lldp, and snmp discovery

This commit is contained in:
Ian Gulliver
2026-01-17 21:12:21 -08:00
parent 3c8afa9bdf
commit e92a09e119
5 changed files with 29 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ func (t *Tendrils) handleLLDPPacket(ifaceName string, packet gopacket.Packet) {
}
}
if t.DebugLLDP {
log.Printf("[lldp] %s: mac=%s port=%s name=%s", ifaceName, mac, childPort, systemName)
}
t.nodes.Update(nil, []net.HardwareAddr{mac}, ifaceName, childPort, "lldp")
if systemName != "" {