mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
efe9fd1ab9
commit
3bcbbefe96
2 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,7 @@ func (lan *LAN) shouldIgnore(ip, mac string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// skip broadcast addresses
|
// skip broadcast addresses
|
||||||
if strings.HasSuffix(ip, ".255") {
|
if strings.HasSuffix(ip, BroadcastSuffix) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// skip broadcast macs
|
// skip broadcast macs
|
||||||
|
|
|
@ -12,6 +12,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MonitorModeAddress = "0.0.0.0"
|
MonitorModeAddress = "0.0.0.0"
|
||||||
|
BroadcastSuffix = ".255"
|
||||||
BroadcastMac = "ff:ff:ff:ff:ff:ff"
|
BroadcastMac = "ff:ff:ff:ff:ff:ff"
|
||||||
IPv4MulticastStart = "01:00:5e:00:00:00"
|
IPv4MulticastStart = "01:00:5e:00:00:00"
|
||||||
IPv4MulticastEnd = "01:00:5e:7f:ff:ff"
|
IPv4MulticastEnd = "01:00:5e:7f:ff:ff"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue