patch-2.3.39 linux/net/ipv4/ip_forward.c

Next file: linux/net/ipv4/ip_fragment.c
Previous file: linux/net/ipv4/icmp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/net/ipv4/ip_forward.c linux/net/ipv4/ip_forward.c
@@ -5,7 +5,7 @@
  *
  *		The IP forwarding functionality.
  *		
- * Version:	$Id: ip_forward.c,v 1.45 1999/08/20 11:05:16 davem Exp $
+ * Version:	$Id: ip_forward.c,v 1.46 2000/01/09 02:19:37 davem Exp $
  *
  * Authors:	see ip.c
  *
@@ -45,7 +45,7 @@
 {
 	struct ip_options * opt	= &(IPCB(skb)->opt);
 
-	ip_statistics.IpForwDatagrams++;
+	IP_INC_STATS_BH(IpForwDatagrams);
 
 	if (opt->optlen == 0) {
 #ifdef CONFIG_NET_FASTROUTE
@@ -147,7 +147,7 @@
 		       ip_forward_finish);
 
 frag_needed:
-	ip_statistics.IpFragFails++;
+	IP_INC_STATS_BH(IpFragFails);
 	icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu));
         goto drop;
 

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