[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: udhcpc can not get broadcast dhcp offer
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2007-12-24 18:15:16
Message-ID: 200712241815.16964.vda.linux () googlemail ! com
[Download RAW message or body]

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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic