]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
mroute: remove invalid check against NLM_F_MULTI
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 22 Apr 2015 08:27:07 +0000 (10:27 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 27 Apr 2015 18:41:46 +0000 (11:41 -0700)
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

index 13ac892512d0222ced62bfffa34c8b10997bcd31..125a13f8c58236590df26ac19f33a758ed2f8c75 100644 (file)
@@ -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;