DHCP discover
Ted Lemon
mellon at fugue.com
Sat Oct 20 04:23:32 UTC 2007
On Oct 19, 2007, at 11:21 AM, Eduardo Fleury wrote:
> I'm not familiar with this code but AFAIK the request is not sent
> using
> sockets (which are point-to-point) but using ethernet broadcast.
Sockets aren't point to point, but non-broadcast IP addresses are.
So you're half right... :')
Some socket APIs let you broadcast with an IP source address of
0.0.0.0 when your network interface has no valid IP address
configured; in that case, you can use the socket API. Others do
not; in that case you need to use something else - e.g., BPF or LPF
or DLPI or something even more hacky. It's an unfortunate omission
in the unix standardization effort, IMHO.
More information about the dhcp-hackers
mailing list