summaryrefslogtreecommitdiff
path: root/include/uapi/linux/snmp.h
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2014-11-06 21:37:54 +0300
committerDavid S. Miller <davem@davemloft.net>2014-11-07 23:45:50 +0300
commit36cbb2452cbafca64dcdd3578047433787900cf0 (patch)
tree3e50381574c3850fc2a6c76a14777daa821f85a0 /include/uapi/linux/snmp.h
parentf46ad73ac6965f71d1a2ba217c4eb5b644e62949 (diff)
downloadlinux-36cbb2452cbafca64dcdd3578047433787900cf0.tar.xz
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 'include/uapi/linux/snmp.h')
-rw-r--r--include/uapi/linux/snmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h
index df40137f33dd..30f541b32895 100644
--- a/include/uapi/linux/snmp.h
+++ b/include/uapi/linux/snmp.h
@@ -156,6 +156,7 @@ enum
UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */
UDP_MIB_SNDBUFERRORS, /* SndbufErrors */
UDP_MIB_CSUMERRORS, /* InCsumErrors */
+ UDP_MIB_IGNOREDMULTI, /* IgnoredMulti */
__UDP_MIB_MAX
};