ip route flush filtering
Denys Vlasenko
vda.linux at googlemail.com
Wed Feb 9 03:40:54 UTC 2011
On Monday 07 February 2011 13:57, Bob Dunlop wrote:
> Hi,
>
> Is it expected that "ip route flush dev" flushes all routes and not just
> those for the specified dev ?
>
> This is busybox 1.18.2 btw.
>
>
> # ip route
> 10.99.0.0/17 dev eth0 src 10.99.119.200 metric 202
> 169.254.0.0/16 dev vlan1234 src 169.254.131.219 metric 211
> 127.0.0.0/8 dev lo
> default via 10.99.99.1 dev eth0 metric 202
> # ip route flush dev vlan1234
> # ip route
> #
>
>
> I also lose all the routes if I try "ip route flush dev lo" so I don't
> think the use of a vlan in the example is significant. Am I missing
> something really simple ?
Looks like a bug. Here is the fix.
http://git.busybox.net/busybox/commit/?id=f13347130245f9fb86ecb3b9c217d3c558a717a9
Let me know if it doesn't work or breaks something else.
--
vda
More information about the busybox
mailing list