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

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

diff -u --recursive --new-file v2.3.38/linux/include/net/ipv6.h linux/include/net/ipv6.h
@@ -4,7 +4,7 @@
  *	Authors:
  *	Pedro Roque		<roque@di.fc.ul.pt>
  *
- *	$Id: ipv6.h,v 1.18 1999/08/20 11:00:53 davem Exp $
+ *	$Id: ipv6.h,v 1.19 2000/01/09 02:19:26 davem Exp $
  *
  *	This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
@@ -86,9 +86,18 @@
 
 #include <net/sock.h>
 
-extern struct ipv6_mib		ipv6_statistics;
-extern struct icmpv6_mib	icmpv6_statistics;
-extern struct udp_mib		udp_stats_in6;
+extern struct ipv6_mib		ipv6_statistics[NR_CPUS*2];
+#define IP6_INC_STATS(field)		SNMP_INC_STATS(ipv6_statistics, field)
+#define IP6_INC_STATS_BH(field)		SNMP_INC_STATS_BH(ipv6_statistics, field)
+#define IP6_INC_STATS_USER(field) 	SNMP_INC_STATS_USER(ipv6_statistics, field)
+extern struct icmpv6_mib	icmpv6_statistics[NR_CPUS*2];
+#define ICMP6_INC_STATS(field)		SNMP_INC_STATS(icmpv6_statistics, field)
+#define ICMP6_INC_STATS_BH(field)	SNMP_INC_STATS_BH(icmpv6_statistics, field)
+#define ICMP6_INC_STATS_USER(field) 	SNMP_INC_STATS_USER(icmpv6_statistics, field)
+extern struct udp_mib		udp_stats_in6[NR_CPUS*2];
+#define UDP6_INC_STATS(field)		SNMP_INC_STATS(udp_stats_in6, field)
+#define UDP6_INC_STATS_BH(field)	SNMP_INC_STATS_BH(udp_stats_in6, field)
+#define UDP6_INC_STATS_USER(field) 	SNMP_INC_STATS_USER(udp_stats_in6, field)
 extern atomic_t			inet6_sock_nr;
 
 struct ip6_ra_chain

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