filter multicast macs

This commit is contained in:
Ian Gulliver
2025-11-29 21:08:32 -08:00
parent c215800b17
commit e29e88b598
6 changed files with 214 additions and 13 deletions

14
lldp.go
View File

@@ -77,5 +77,17 @@ func isBroadcastOrZero(mac net.HardwareAddr) bool {
}
}
return allZero || allFF
if allZero || allFF {
return true
}
if mac[0] == 0x01 && mac[1] == 0x00 && mac[2] == 0x5e {
return true
}
if mac[0] == 0x33 && mac[1] == 0x33 {
return true
}
return false
}