summaryrefslogtreecommitdiffstats
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2014-11-06 10:37:54 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-07 15:45:50 -0500
commit36cbb2452cbafca64dcdd3578047433787900cf0 (patch)
tree3e50381574c3850fc2a6c76a14777daa821f85a0 /net/ipv6/proc.c
parentf46ad73ac6965f71d1a2ba217c4eb5b644e62949 (diff)
downloadlinux-stable-36cbb2452cbafca64dcdd3578047433787900cf0.tar.gz
linux-stable-36cbb2452cbafca64dcdd3578047433787900cf0.tar.bz2
linux-stable-36cbb2452cbafca64dcdd3578047433787900cf0.zip
udp: Increment UDP_MIB_IGNOREDMULTI for arriving unmatched multicasts
As NIC multicast filtering isn't perfect, and some platforms are quite content to spew broadcasts, we should not trigger an event for skb:kfree_skb when we do not have a match for such an incoming datagram. We do though want to avoid sweeping the matter under the rug entirely, so increment a suitable statistic. This incorporates feedback from David L. Stevens, Karl Neiss and Eric Dumazet. V3 - use bool per David Miller Signed-off-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r--net/ipv6/proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index 1752cd0b4882..679253d0af84 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -136,6 +136,7 @@ static const struct snmp_mib snmp6_udp6_list[] = {
SNMP_MIB_ITEM("Udp6RcvbufErrors", UDP_MIB_RCVBUFERRORS),
SNMP_MIB_ITEM("Udp6SndbufErrors", UDP_MIB_SNDBUFERRORS),
SNMP_MIB_ITEM("Udp6InCsumErrors", UDP_MIB_CSUMERRORS),
+ SNMP_MIB_ITEM("Udp6IgnoredMulti", UDP_MIB_IGNOREDMULTI),
SNMP_MIB_SENTINEL
};