udp: Increment UDP_MIB_IGNOREDMULTI for arriving unmatched multicasts
authorRick Jones <rick.jones2@hp.com>
Thu, 6 Nov 2014 18:37:54 +0000 (10:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Nov 2014 20:45:50 +0000 (15:45 -0500)
commit36cbb2452cbafca64dcdd3578047433787900cf0
tree3e50381574c3850fc2a6c76a14777daa821f85a0
parentf46ad73ac6965f71d1a2ba217c4eb5b644e62949
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>
include/uapi/linux/snmp.h
net/ipv4/proc.c
net/ipv4/udp.c
net/ipv6/proc.c
net/ipv6/udp.c