diff mbox

ip monitor: Skip IPv6 ND user option messages

Message ID 1409862262-4419-1-git-send-email-vadim4j@gmail.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Vadym Kochan Sept. 4, 2014, 8:24 p.m. UTC
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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Stephen Hemminger Sept. 28, 2014, 11 p.m. UTC | #1
On Thu,  4 Sep 2014 23:24:22 +0300
Vadim Kochan <vadim4j@gmail.com> wrote:

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

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c
index 70f2a7a..0029b52 100644
--- a/ip/ipmonitor.c
+++ b/ip/ipmonitor.c
@@ -131,7 +131,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) {