patch-1.3.37 linux/net/ipv4/route.c

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

diff -u --recursive --new-file v1.3.36/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -575,16 +575,14 @@
 int rt_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
 {
 	struct rtable *r;
-	int len=0;
+	int len=128;
 	off_t pos=0;
 	off_t begin=0;
 	char temp[129];
 
 	if(offset<128)
-	{
 		sprintf(buffer,"%-127s\n","Iface\tDestination\tGateway \tFlags\tRefCnt\tUse\tMetric\tMask\t\tMTU\tWindow\tIRTT");
-		pos=128;
-  	}
+	pos=128;
   	
 	for (r = rt_base; r != NULL; r = r->rt_next) 
 	{

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this