udhcpc failure - route: SIOCADDRT: Invalid argument

Tallam, Sreenivas Sreenivas.Tallam at netapp.com
Sat Mar 14 00:26:04 UTC 2009


Hi Denys,

Thanks for looking into this.
But unfortunately, even the net-tools one that one seem to be failing.

Please see the attached logs.

Thanks,
Sreen 

-----Original Message-----
From: Denys Vlasenko [mailto:vda.linux at googlemail.com] 
Sent: Friday, March 13, 2009 4:57 PM
To: Tallam, Sreenivas; busybox at busybox.net
Subject: Re: udhcpc failure - route: SIOCADDRT: Invalid argument

On Friday 13 March 2009 10:26:14 pm Tallam, Sreenivas wrote:
> Hi  Denys,
> 
> Looks like I narrowed it down to the line of code that is throwing 
> this error.
> So I moved the /usr/share/udhcpc/default.script to the one that I had.

> ( the original one!!)
> 
> And I recompiled the busybox with more debug statements within 
> networking/ifupdown.c So I added debug_noise under execute() command
...
> Configuring interface eth0 (inet6)
> OUT: ifconfig eth0 up
> OUT: ifconfig eth0 add fd20:8b1e:b255:202::1234/64
> OUT: route -A inet6 add ::/0 gw fd20:8b1e:b255:202::1
> 
> ifup: don't seem to have all the variables for eth0/inet6
> 
> And with this failure, I ran the command, on the command line 
> directly, to see the same failure
> 
> # route -A inet6 add ::/0 gw fd20:8b1e:b255:202::1
> route: SIOCADDRT: Invalid argument
> #
> 
> So the failing command is under networking/ifupdown.c --> static_up6 
> --
> > "route -A inet6 add ::/0 gw %gateway%"


Looks like you have static IPv6 configuration.
route command looks correct too, but it doesn't seem to succeed.
Looks like busybox's route applet is buggy.

Please do the following:

run "strace -o bb_route.log route -A inet6 add ::/0 gw
fd20:8b1e:b255:202::1"
and send me the log;

build (or take from other system) "standard" route (for example, one
from net-tools 1.60) and collect the same info from it:

strace -o std_route.log route_from_nettools -A inet6 add ::/0 gw
fd20:8b1e:b255:202::1

--
vda
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox-route.txt
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090313/1929c58e/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: net-tools-route.txt
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090313/1929c58e/attachment-0001.txt>


More information about the busybox mailing list