patch-2.1.33 linux/net/ipv4/proc.c
Next file: linux/net/ipv4/tcp_ipv4.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Wed Apr 9 21:30:31 1997
- Orig file:
v2.1.32/linux/net/ipv4/proc.c
- Orig date:
Thu Mar 27 14:40:15 1997
diff -u --recursive --new-file v2.1.32/linux/net/ipv4/proc.c linux/net/ipv4/proc.c
@@ -172,6 +172,11 @@
raw_prot.inuse, raw_prot.highestinuse);
len += sprintf(buffer+len,"PAC: inuse %d highest %d\n",
packet_prot.inuse, packet_prot.highestinuse);
+ if (offset >= len)
+ {
+ *start = buffer;
+ return 0;
+ }
*start = buffer + offset;
len -= offset;
if (len > length)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov