diff options
author | Rick Jones <rick.jones2@hp.com> | 2014-11-06 10:37:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-07 15:45:50 -0500 |
commit | 36cbb2452cbafca64dcdd3578047433787900cf0 (patch) | |
tree | 3e50381574c3850fc2a6c76a14777daa821f85a0 /net/ipv6/proc.c | |
parent | f46ad73ac6965f71d1a2ba217c4eb5b644e62949 (diff) | |
download | blackbird-obmc-linux-36cbb2452cbafca64dcdd3578047433787900cf0.tar.gz blackbird-obmc-linux-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.c | 1 |
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 }; |