Fix NUD_NOARP skip

Signed-off-by: Emin Umut Gercek <eumutgercek@gmail.com>
This commit is contained in:
Emin Umut Gercek 2025-02-02 16:27:44 +03:00
parent 6b0be659b9
commit ed49ea92d8

View file

@ -110,7 +110,7 @@ func getArpEntriesRTNL() (map[string]uint32, map[string]map[string]int, error) {
for _, n := range neighbors {
// Skip entries which have state NUD_NOARP to conform to output of /proc/net/arp.
if n.State&unix.NUD_NOARP != unix.NUD_NOARP {
if n.State&unix.NUD_NOARP == unix.NUD_NOARP {
continue
}