patch-2.2.18 linux/net/ipv4/proc.c

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

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/net/ipv4/proc.c linux/net/ipv4/proc.c
@@ -7,7 +7,7 @@
  *		PROC file system.  It is mainly used for debugging and
  *		statistics.
  *
- * Version:	$Id: proc.c,v 1.34.2.1 2000/01/14 01:22:20 davem Exp $
+ * Version:	$Id: proc.c,v 1.34.2.5 2000/10/29 12:06:28 davem Exp $
  *
  * Authors:	Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  *		Gerald J. Heim, <heim@peanuts.informatik.uni-tuebingen.de>
@@ -186,7 +186,7 @@
 				if (req->sk)
 					continue;
 				pos += 128;
-				if (pos < offset) 
+				if (pos <= offset) 
 					continue;
 				get__openreq(sp, req, tmpbuf, i); 
 				len += sprintf(buffer+len, "%-127s\n", tmpbuf);
@@ -196,7 +196,7 @@
 		}
 		
 		pos += 128;
-		if (pos < offset)
+		if (pos <= offset)
 			goto next;
 		
 		get__sock(sp, tmpbuf, i, format);
@@ -371,6 +371,10 @@
 		      net_statistics.OutOfWindowIcmps,
 		      net_statistics.LockDroppedIcmps,
 		      net_statistics.SockMallocOOM);
+	len += sprintf(buffer + len, 
+				"IpExt: ArpFilter\n"
+				"IpExt: %lu\n",
+			  net_statistics.ArpFilter); 		
 
 	if (offset >= len)
 	{

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