netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute PATCH] iproute: fix filter_nlmsg
@ 2015-10-29 11:15 Phil Sutter
  2015-11-04  0:33 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Phil Sutter @ 2015-10-29 11:15 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This patch is based upon an old Fedora bug[1] regarding the routing
setup of PPP links. I'm not quite sure if it still applies today or how
to trigger it, but looking at the change introducing this, it's
obviously a bug.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=622782

Fixes: 4479282 ("iproute2: filter routing entries based on clone flag")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iproute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index eab512d..ea7e9aa 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -151,7 +151,7 @@ static int filter_nlmsg(struct nlmsghdr *n, struct rtattr **tb, int host_len)
 	if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN)
 		ip6_multiple_tables = 1;
 
-	if (filter.cloned == !(r->rtm_flags&RTM_F_CLONED))
+	if (filter.cloned && !(r->rtm_flags&RTM_F_CLONED))
 		return 0;
 
 	if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) {
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-24 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 11:15 [iproute PATCH] iproute: fix filter_nlmsg Phil Sutter
2015-11-04  0:33 ` Stephen Hemminger
2015-11-04 15:54   ` Phil Sutter
2015-11-24  0:20     ` Stephen Hemminger
2015-11-24 12:40       ` Phil Sutter

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).