[BusyBox] bug#1210: route does not show all routes

arne @ loopback . org arne at matrix.loopback.org
Mon Aug 27 06:00:04 UTC 2001


Package: busybox
Version: 0.60.1
Severity: normal

bb route has a little bug in it preventing it from showing the correct set
of routes on a system. It only displays the first route!

myrouter# route
Kernel IP routing table
Destination	Gateway         Genmask	       Flags Metric Ref   Use Iface
192.168.2.0     *               255.255.255.0  U     0      0     0   eth1

with GNU netstat:
myrouter# netstat -rn
Destination     Gateway         Genmask        Flags   MSS Window  irtt Iface
192.168.2.0	0.0.0.0		255.255.255.0  U       40  0          0 eth1
192.168.1.0	0.0.0.0		255.255.255.0  U       40  0          0 eth0
12.12.1.0	0.0.0.0		255.255.255.0  U       40  0          0 eth0
12.12.0.0	0.0.0.0		255.255.255.0  U       40  0          0 eth1

(sorry for the formating, it not the real output, it was "done by hand").

The very small attached patch fixes this

--arne 
-------------------------------------------------------------------­---
Arne Bernin                            	Netropol Digitale Systeme
					Lagerstrasse 30a                        
Tel: +49 4043250000                     D-20357 Hamburg/Germany
Fax: +49 4028416740   	                ab at Netropol.de    

-----------------------------------------------------------------------
                                                             
Fppmpppff mpmmmmfmm mfpmffmpppff pmfmppfmmmppppp pmpmmmpppppp mfffmmfmp
fmmmmfmfppmfmmmfmf!

    
-------------- next part --------------
--- route.c.orig	Mon Aug 27 13:34:52 2001
+++ route.c	Mon Aug 27 13:38:04 2001
@@ -379,7 +379,6 @@
 "Destination     Gateway         Genmask         Flags Metric Ref    Use Iface\n");
 			} else {
 			    nl++;
-			    continue;
 			}
 
 			ifl = 0;        /* parse flags */
--- route.c.orig	Mon Aug 27 13:34:52 2001


More information about the busybox mailing list