aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-11 16:23:57 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-11 16:23:57 +0000
commit9e02dd5233d637966f7b94d666033b8109cbd155 (patch)
tree821458424798193ed98a8884d5448a895920bff8 /shell
parent9d306b9d6e9dcd5141da9d917abda9169f11e586 (diff)
downloadbusybox-w32-9e02dd5233d637966f7b94d666033b8109cbd155.tar.gz
busybox-w32-9e02dd5233d637966f7b94d666033b8109cbd155.tar.bz2
busybox-w32-9e02dd5233d637966f7b94d666033b8109cbd155.zip
- set the scope properly. Thanks to Jean Wolter, who wrote:
busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility): ip route add 10.0.0.138 dev eth0 Result for busybox ip: # ip route add 10.0.0.138 dev eth0 # /usr/local/bin/ip route show 10.0.0.138 dev eth0 Result for ip: # /usr/local/bin/ip route add 10.0.0.138 dev eth0 # /usr/local/bin/ip route show 10.0.0.138 dev eth0 scope link A following "ip route add default via 10.0.0.138" fails for busybox ip, since the kernel can not find a route to 10.0.0.138 (it replies with Network is unreachable). The reasons seems to be that the original ip utility explicitly sets the scope after parsing all parameters. This is missing in busybox, the attached patch fixes this. I took this from the original iproute sources and removed some variables, which are not needed for busybox. git-svn-id: svn://busybox.net/trunk/busybox@18401 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions