* [PATCH iproute2 net-next] ipneigh: exclude NTF_EXT_LEARNED from default filter
@ 2018-07-16 22:19 Roopa Prabhu
2018-07-18 1:58 ` David Ahern
0 siblings, 1 reply; 2+ messages in thread
From: Roopa Prabhu @ 2018-07-16 22:19 UTC (permalink / raw)
To: dsahern; +Cc: netdev
From: Roopa Prabhu <roopa@cumulusnetworks.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@cumulusnetworks.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH iproute2 net-next] ipneigh: exclude NTF_EXT_LEARNED from default filter
2018-07-16 22:19 [PATCH iproute2 net-next] ipneigh: exclude NTF_EXT_LEARNED from default filter Roopa Prabhu
@ 2018-07-18 1:58 ` David Ahern
0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2018-07-18 1:58 UTC (permalink / raw)
To: Roopa Prabhu; +Cc: netdev
On 7/16/18 4:19 PM, Roopa Prabhu wrote:
> From: Roopa Prabhu <roopa@cumulusnetworks.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@cumulusnetworks.com>
> ---
> ip/ipneigh.c | 1 +
> 1 file changed, 1 insertion(+)
>
applied to iproute2-next. Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-18 2:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-16 22:19 [PATCH iproute2 net-next] ipneigh: exclude NTF_EXT_LEARNED from default filter Roopa Prabhu
2018-07-18 1:58 ` David Ahern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).