hush/networking
Bernhard Reutner-Fischer 12c96a64a4 - 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.
2007-04-11 16:23:57 +00:00
..
libiproute - set the scope properly. Thanks to Jean Wolter, who wrote: 2007-04-11 16:23:57 +00:00
udhcp udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
arp.c
arping.c
Config.in nc: port nc 1.10 to busybox 2007-04-05 20:26:28 +00:00
dnsd.c
ether-wake.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
ftpgetput.c
hostname.c
httpd_index_cgi_example
httpd.c add more convenient defines for [NO]MMU: 2007-04-11 07:04:23 +00:00
ifconfig.c
ifupdown.c
inetd.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
interface.c
ip.c - mv ip*_main into ip.c; use a dispatcher to save on needless duplication. 2007-04-10 20:11:12 +00:00
ipcalc.c
isrv_identd.c random small shrinkage and elimination of statics 2007-04-07 00:44:31 +00:00
isrv.c
isrv.h
Kbuild - mv ip*_main into ip.c; use a dispatcher to save on needless duplication. 2007-04-10 20:11:12 +00:00
nameif.c
nc_bloaty.c nc: code shrinkage, bugfixes. -50 bytes code size 2007-04-06 10:41:05 +00:00
nc.c nc: port nc 1.10 to busybox 2007-04-05 20:26:28 +00:00
netstat.c
nslookup.c
ping.c
route.c style fixes. No code changes. 2007-04-10 15:42:06 +00:00
telnet.c
telnetd.c style fixes. No code changes. 2007-04-10 15:42:06 +00:00
tftp.c tcpsvd: new applet 2007-04-01 01:18:20 +00:00
traceroute.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
vconfig.c
wget.c - add libbb function str_tolower to convert a string to lowercase. 2007-04-10 09:37:29 +00:00
zcip.c add more convenient defines for [NO]MMU: 2007-04-11 07:04:23 +00:00