udhcpc problem

Vyacheslav Rafalskiy stranger4good at yahoo.ca
Wed Mar 21 22:49:07 UTC 2007


Hi,

I am trying to use udhcpc on my arm9 board, which came preloaded with
kernel 2.4.18 and busybox 1.2.

Networking works fine when ifconfig-ed with a fixed IP.
When I try to run udhcpc it says

[root at Embest udhcpc]# udhcpc -n
udhcpc (v1.2.0) started
udhcpc[130]: udhcpc (v1.2.0) started
adapter index 2
udhcpc[130]: adapter index 2
adapter hardware address 00:00:c0:ff:ee:08
udhcpc[130]: adapter hardware address 00:00:c0:ff:ee:08
vforking and execle'ing /usr/share/udhcpc/default.script
udhcpc[130]: vforking and execle'ing /usr/share/udhcpc/default.script
entering raw listen mode
udhcpc[130]: entering raw listen mode
Opening raw socket on ifindex 2
udhcpc[130]: Opening raw socket on ifindex 2
socket call failed: Address family not supported by protocol
udhcpc[130]: socket call failed: Address family not supported by protocol
FATAL: couldn't listen on socket, Illegal seek
udhcpc[130]: FATAL: couldn't listen on socket, Illegal seek


The /usr/share/udhcpc/default.script   is as follows
#!/bin/sh
# udhcpc script

[ -z "$1" ] && echo "Error: should
be called from udhcpc" && exit 1

case "$1" in
       deconfig)
               ifconfig $interface 0.0.0.0
               ;;
       renew|bound)
               ifconfig $interface $ip $BROADCAST $NETMASK
               ;;
esac

ifconfig says:
[root at Embest udhcpc]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:C0:FF:EE:08
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:4026 errors:0 dropped:0 overruns:0 frame:0
         TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:1356608 (1.2 MiB)  TX bytes:0 (0.0 B)
         Interrupt:37 Base address:0x300

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


I was able to find several posts about this message:
>socket call failed: Address family not supported by protocol
some of them were related to udhcpc and some were not, but no solution so far.

Any help?

Thanks



More information about the busybox mailing list