mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
12c96a64a4
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. |
||
---|---|---|
.. | ||
libiproute | ||
udhcp | ||
arp.c | ||
arping.c | ||
Config.in | ||
dnsd.c | ||
ether-wake.c | ||
ftpgetput.c | ||
hostname.c | ||
httpd_index_cgi_example | ||
httpd.c | ||
ifconfig.c | ||
ifupdown.c | ||
inetd.c | ||
interface.c | ||
ip.c | ||
ipcalc.c | ||
isrv_identd.c | ||
isrv.c | ||
isrv.h | ||
Kbuild | ||
nameif.c | ||
nc_bloaty.c | ||
nc.c | ||
netstat.c | ||
nslookup.c | ||
ping.c | ||
route.c | ||
telnet.c | ||
telnetd.c | ||
tftp.c | ||
traceroute.c | ||
vconfig.c | ||
wget.c | ||
zcip.c |