From: vadimk Date: Thu, 4 Sep 2014 20:24:22 +0000 (+0300) Subject: ip monitor: Skip IPv6 ND user option messages X-Git-Tag: v3.17.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56361f4b52e1fecc7bbdbb6f9b0f10db46f16f6;p=thirdparty%2Fiproute2.git ip monitor: Skip IPv6 ND user option messages 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 --- diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c index 3cdbe1b9a..088ec5467 100644 --- a/ip/ipmonitor.c +++ b/ip/ipmonitor.c @@ -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) {