udhcpc can not get broadcast dhcp offer

Denys Vlasenko vda.linux at googlemail.com
Mon Dec 24 18:15:16 UTC 2007


On Monday 24 December 2007 16:03, 李扬 wrote:
> Merry Xmas all
>
> I am trying udhcpc v0.99-pre from busybox.

You are using what?

I understand "udhcpc from busybox" as "I diked out network/udhcp/*
from busybox tree and am using it". ?!

> With linux dhcpd,it works fine,but when I use this server
> http://tftpd32.jounin.net/tftpd32.html
> ,it always fail at get ip.
>
> I captured both "good" and "bad" packets,and compared.
> I found the "good" dhcpoffer is a unicast udp packet,and the IP and
> MAC in the IP header and ETH header is not 255.255.255.255 or
> ff:ff:ff:ff:ff:ff
>
> the "bad" dhcpoffer is a broadcast udp packet,the header is
> 255.255.255.255 and ff:ff:ff:ff:ff:ff,and the IP server offsers is
> embeded in the dhcp section.

Can you show these packets as "tcpdump -nlieth0 -s0 -xX" outputs them?

> I add some printf in get_raw_packet() and get nothing when in "bad"
> mode,so I guess the broadcast packets are not sent to the  dhcpc
> socket.

Which version of busybox is in use? Can you post busybox .config?
--
vda



More information about the busybox mailing list