]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip monitor: Skip IPv6 ND user option messages
authorvadimk <vadim4j@gmail.com>
Thu, 4 Sep 2014 20:24:22 +0000 (23:24 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 28 Sep 2014 22:58:27 +0000 (15:58 -0700)
IPv6 router sends ND messages with RDNSS option
which causes the printing of unknown message by 'ip monitor':

    Unknown message: 0000004c 00000044 00000000

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
ip/ipmonitor.c

index 3cdbe1b9a3d5f8551bc6ff1fb318d10b2ffbcceb..088ec54674361fb5728343a5e918c68eccfb6cbe 100644 (file)
@@ -138,7 +138,8 @@ static int accept_msg(const struct sockaddr_nl *who,
            n->nlmsg_type == RTM_NEWTCLASS ||
            n->nlmsg_type == RTM_DELTCLASS ||
            n->nlmsg_type == RTM_NEWTFILTER ||
-           n->nlmsg_type == RTM_DELTFILTER)
+           n->nlmsg_type == RTM_DELTFILTER ||
+           n->nlmsg_type == RTM_NEWNDUSEROPT)
                return 0;
        if (n->nlmsg_type != NLMSG_ERROR && n->nlmsg_type != NLMSG_NOOP &&
            n->nlmsg_type != NLMSG_DONE) {