Skip to contentSkip to conversation

ip monitor: Skip IPv6 ND user option messages

PATCH Applied Vadim Kochan 2 participants 2 messages Sep 4, 2014 – Sep 28, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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
---
 ip/ipmonitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ip/ipmonitor.c +2 -1
index 70f2a7a..0029b52 100644
@@ -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) {
Signature · 1 line
2.1.0