aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/snmp.h
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2010-12-01 13:04:43 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-02 16:27:31 -0500
commita9527a3b621e507c85b639c183c3aa22afd4eb61 (patch)
tree663c9bc25246548ffac265ea9718bd8941bb44cb /include/net/snmp.h
parent2989042ca86b94bf4ffa9486921bb300ad44225f (diff)
net: snmp: fix the wrong ICMP_MIB_MAX value
__ICMP_MIB_MAX is equal to the total number of icmp mib, So no need to add 1. This wastes 4/8 bytes memory. Change it to be same as ICMP6_MIB_MAX, TCP_MIB_MAX, UDP_MIB_MAX. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/snmp.h')
-rw-r--r--include/net/snmp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/snmp.h b/include/net/snmp.h
index a0e61806d480..aebb55383c43 100644
--- a/include/net/snmp.h
+++ b/include/net/snmp.h
@@ -61,8 +61,7 @@ struct ipstats_mib {
61 61
62/* ICMP */ 62/* ICMP */
63#define ICMP_MIB_DUMMY __ICMP_MIB_MAX 63#define ICMP_MIB_DUMMY __ICMP_MIB_MAX
64#define ICMP_MIB_MAX (__ICMP_MIB_MAX + 1) 64#define ICMP_MIB_MAX __ICMP_MIB_MAX
65
66struct icmp_mib { 65struct icmp_mib {
67 unsigned long mibs[ICMP_MIB_MAX]; 66 unsigned long mibs[ICMP_MIB_MAX];
68}; 67};