busybox/networking/libiproute
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
..
ip_common.h libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
ip_parse_common_args.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
ipaddress.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
iplink.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
iproute.c - set the scope properly. Thanks to Jean Wolter, who wrote: 2007-04-11 16:23:57 +00:00
iprule.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
iptunnel.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
Kbuild - add 'ip rule' support. First take.. 2006-11-21 15:36:08 +00:00
libnetlink.c stop using __u32 etc. uint32_t is there for a reason 2006-12-31 18:57:37 +00:00
libnetlink.h accumulated post-1.4.0 fixes 2007-01-24 22:02:01 +00:00
ll_addr.c random small size optimizations 2007-01-12 22:10:34 +00:00
ll_map.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
ll_map.h Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
ll_proto.c preparatory patch for -Wwrite-strings #6 2007-01-29 23:43:52 +00:00
ll_types.c preparatory patch for -Wwrite-strings #8 (missed part) 2007-01-30 00:44:41 +00:00
rt_names.c preparatory patch for -Wwrite-strings #4 2007-01-29 22:51:58 +00:00
rt_names.h preparatory patch for -Wwrite-strings #8 (missed part) 2007-01-30 00:44:41 +00:00
rtm_map.c preparatory patch for -Wwrite-strings #6 2007-01-29 23:43:52 +00:00
rtm_map.h preparatory patch for -Wwrite-strings #6 2007-01-29 23:43:52 +00:00
utils.c libiproute: audit callgraph, shortcut error paths into die() functions. 2007-04-07 01:14:45 +00:00
utils.h - rewrite the ip applet to be less bloaty 2007-04-10 18:43:27 +00:00