bug#1210: [BusyBox] bug#1210: route does not show all routes
Vladimir N. Oleynik
dzo at simtreas.ru
Mon Aug 27 07:20:02 MDT 2001
Arne
>
> 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
I too do not understand, 1.10 change what for was brought in function
displayroute()
(its author).
All changes in displayroute() must remove.
-} else {
- nl++;
- continue;
}
More information about the busybox
mailing list