Message ID | 1429691227-12310-3-git-send-email-nicolas.dichtel@6wind.com |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
diff --git a/ip/ipmroute.c b/ip/ipmroute.c index 13ac892512d0..125a13f8c582 100644 --- a/ip/ipmroute.c +++ b/ip/ipmroute.c @@ -67,8 +67,7 @@ int print_mroute(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) int family; if ((n->nlmsg_type != RTM_NEWROUTE && - n->nlmsg_type != RTM_DELROUTE) || - !(n->nlmsg_flags & NLM_F_MULTI)) { + n->nlmsg_type != RTM_DELROUTE)) { fprintf(stderr, "Not a multicast route: %08x %08x %08x\n", n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); return 0;
This flag is only for the netlink protocol (multi-part messages), no reason to reject messages without it. Note that this flag was removed by the following kernel patches (v3.14) 65886f439ab0 ipmr: fix mfc notification flags f518338b1603 ip6mr: fix mfc notification flags Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> --- ip/ipmroute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)