Skip to content

Commit

Permalink
ipv6: Do not warn for informational ICMP messages, regardless of type.
Browse files Browse the repository at this point in the history
There is no reason to emit a log message for these.

Based upon a suggestion from Hannes Frederic Sowa.

Signed-off-by: David S. Miller <[email protected]>
Acked-by: Hannes Frederic Sowa <[email protected]>
  • Loading branch information
davem330 committed Oct 7, 2014
1 parent 908344c commit ea85a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv6/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,12 @@ static int icmpv6_rcv(struct sk_buff *skb)
break;

default:
LIMIT_NETDEBUG(KERN_DEBUG "icmpv6: msg of unknown type\n");

/* informational */
if (type & ICMPV6_INFOMSG_MASK)
break;

LIMIT_NETDEBUG(KERN_DEBUG "icmpv6: msg of unknown type\n");

/*
* error of unknown type.
* must pass to upper level
Expand Down

0 comments on commit ea85a0a

Please sign in to comment.