[BusyBox] dhcpc: broadcast flag

Russ Dill Russ.Dill at asu.edu
Wed Dec 1 05:40:05 UTC 2004


> - Make sure the xid field is really random (it seems to be 0 always)


udhcp has two ways of attempting to seed random numbers. It will either
read from /dev/urandom, or use time(0). For some embedded system,
neither works, since each system will have the same value for both,
since there is often nothing variable in the bootup. This can be solved
with an "ifconfig eth0 > /dev/urandom" effectively seeding the kernel
entropy pool with the system's arp address.

However, in your case, you have an xid of 0. It is extremely unlikely
that udhcpc is sending out an xid of zero. I think you have a buggy
network and/or dhcp server.



More information about the busybox mailing list