patch-2.4.21 linux-2.4.21/net/ipv4/fib_semantics.c

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

diff -urN linux-2.4.20/net/ipv4/fib_semantics.c linux-2.4.21/net/ipv4/fib_semantics.c
@@ -1025,7 +1025,8 @@
 		len = sprintf(buffer, "%s\t%08X\t%08X\t%04X\t%d\t%u\t%d\t%08X\t%d\t%u\t%u",
 			      fi->fib_dev ? fi->fib_dev->name : "*", prefix,
 			      fi->fib_nh->nh_gw, flags, 0, 0, fi->fib_priority,
-			      mask, fi->fib_advmss+40, fi->fib_window, fi->fib_rtt>>3);
+			      mask, (fi->fib_advmss ? fi->fib_advmss+40 : 0),
+			      fi->fib_window, fi->fib_rtt>>3);
 	} else {
 		len = sprintf(buffer, "*\t%08X\t%08X\t%04X\t%d\t%u\t%d\t%08X\t%d\t%u\t%u",
 			      prefix, 0,

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