[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1531779592-17151-1-git-send-email-roopa@cumulusnetworks.com>
Date: Mon, 16 Jul 2018 15:19:52 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: dsahern@...il.com
Cc: netdev@...r.kernel.org
Subject: [PATCH iproute2 net-next] ipneigh: exclude NTF_EXT_LEARNED from default filter
From: Roopa Prabhu <roopa@...ulusnetworks.com>
NUD_NOARP entries are filtered out by default by iproute2.
We dont want NUD_NOARP with NTF_EXT_LEARNED flag filtered out.
This patch extends the default filter check for ip neigh show
to include the NTF_EXT_LEARNED flag.
Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
---
ip/ipneigh.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index bd6e5c5..a0af705 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -262,6 +262,7 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
return 0;
if (!(filter.state&r->ndm_state) &&
!(r->ndm_flags & NTF_PROXY) &&
+ !(r->ndm_flags & NTF_EXT_LEARNED) &&
(r->ndm_state || !(filter.state&0x100)) &&
(r->ndm_family != AF_DECnet))
return 0;
--
2.1.4
Powered by blists - more mailing lists