[BusyBox] udhcp and SOCK_RAW
Simon Posnjak
simon.posnjak at cetrtapot.si
Thu Oct 2 10:26:04 UTC 2003
Hi,
I have the next problem with udhcpc from busybox 1.00-pre3 (it allso happens
with 1.00-pre0). I run the the client as /sbin/udhcpc -i eth1 and it gets the
IP as:
Bringing up the eth0 interface...client (v0.9.9-pre) started
udhcpc[137]: client (v0.9.9-pre) started
Sending discover...
udhcpc[137]: Sending discover...
Sending discover...
udhcpc[137]: Sending discover...
Sending select for 10.0.0.254...
udhcpc[137]: Sending select for 10.0.0.254...
Lease of 10.0.0.254 obtained, lease time 600
udhcpc[137]: Lease of 10.0.0.254 obtained, lease time 600
deleting routers
SIOCDELRT: No such process
adding dns 193.189.160.11
adding dns 193.189.160.12
[ OK ]
After some time the client says:
udhcpc[159]: Sending renew...
udhcpc[159]: FATAL: couldn't listen on socket, Protocol not available
tcpdump looks like this:
hlod:~ # tcpdump -i eth0
tcpdump: listening on eth0
12:02:21.952368 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x92afeb0a file
""[|bootp]
12:02:21.953293 hlod.bootps > 10.0.0.254.bootpc: xid:0x92afeb0a Y:10.0.0.254
S:hlod file ""[|bootp] [tos 0x10]
12:02:21.956738 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x92afeb0a file
""[|bootp]
12:02:22.096679 hlod.bootps > 10.0.0.254.bootpc: xid:0x92afeb0a Y:10.0.0.254
S:hlod file ""[|bootp] [tos 0x10]
12:07:21.680807 arp who-has hlod tell 10.0.0.254
12:07:21.680949 arp reply hlod is-at 0:e0:4c:66:b2:86
12:07:21.681197 10.0.0.254.bootpc > hlod.bootps: xid:0x92afeb0a C:10.0.0.254
file ""[|bootp] (DF)
12:07:22.014360 hlod.bootps > 10.0.0.254.bootpc: xid:0x92afeb0a C:10.0.0.254
Y:10.0.0.254 S:hlod file ""[|bootp] (DF)
12:07:22.015625 10.0.0.254 > hlod: icmp: 10.0.0.254 udp port bootpc
unreachable [tos 0xc0]
12:07:27.011103 arp who-has 10.0.0.254 tell hlod
12:07:27.011305 arp reply 10.0.0.254 is-at 0:40:8c:cd:0:0
I run linux-2.4.20 on CRIS. Distribution is home made and based on glibc
2.2.3.
The dhcp server is on SUSE 8.2: dhcp-server-3.0.1rc10, from ISC DHCP server.
lp simon
More information about the busybox
mailing list