diff --git a/network/lan.go b/network/lan.go index ea68bf18..8a2c0af7 100644 --- a/network/lan.go +++ b/network/lan.go @@ -154,7 +154,7 @@ func (lan *LAN) shouldIgnore(ip, mac string) bool { return true } // skip broadcast macs - if strings.ToLower(mac) == BroadcastMacS { + if strings.ToLower(mac) == BroadcastMac { return true } // skip everything which is not in our subnet (multicast noise) diff --git a/network/net.go b/network/net.go index 8986edfb..b9d605db 100644 --- a/network/net.go +++ b/network/net.go @@ -12,13 +12,13 @@ import ( const ( MonitorModeAddress = "0.0.0.0" + BroadcastMac = "ff:ff:ff:ff:ff:ff" IPv4MulticastStart = "01:00:5e:00:00:00" IPv4MulticastEnd = "01:00:5e:7f:ff:ff" ) var ( - BroadcastMac = []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff} - BroadcastMacS = "ff:ff:ff:ff:ff:ff" + BroadcastHw = []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff} IPv4Validator = regexp.MustCompile("^[0-9\\.]+/?\\d*$") )