[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] bug#1210: route does not show all routes
From:       "arne  ()  loopback  !  org" <arne () matrix ! loopback ! org>
Date:       2001-08-27 6:00:04
[Download RAW message or body]

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@Netropol.de    

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

    
["patch-route.c-1" (text/plain)]

--- 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic