From ed49ea92d8790e853414de7e0b6d4c4e687ba61f Mon Sep 17 00:00:00 2001 From: Emin Umut Gercek Date: Sun, 2 Feb 2025 16:27:44 +0300 Subject: [PATCH] Fix `NUD_NOARP` skip Signed-off-by: Emin Umut Gercek --- collector/arp_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/arp_linux.go b/collector/arp_linux.go index 98c83c99..d0be924d 100644 --- a/collector/arp_linux.go +++ b/collector/arp_linux.go @@ -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 }