patch-2.3.39 linux/include/net/icmp.h

Next file: linux/include/net/ip.h
Previous file: linux/include/net/dn_route.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/include/net/icmp.h linux/include/net/icmp.h
@@ -25,7 +25,10 @@
 #include <net/protocol.h>
 
 extern struct icmp_err icmp_err_convert[];
-extern struct icmp_mib icmp_statistics;
+extern struct icmp_mib icmp_statistics[NR_CPUS*2];
+#define ICMP_INC_STATS(field)		SNMP_INC_STATS(icmp_statistics, field)
+#define ICMP_INC_STATS_BH(field)	SNMP_INC_STATS_BH(icmp_statistics, field)
+#define ICMP_INC_STATS_USER(field) 	SNMP_INC_STATS_USER(icmp_statistics, field)
 
 extern void	icmp_send(struct sk_buff *skb_in,  int type, int code,
 			  unsigned long info);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)