Re: UDP broadcast address
Re: UDP broadcast address
- Subject: Re: UDP broadcast address
- From: Quinn <email@hidden>
- Date: Tue, 10 Feb 2004 18:12:55 +0000
At 9:06 -0500 10/2/04, Peter Sichel wrote:
Another clue might be to look at what the Mac OS X DHCP client does.
I believe it generates packets to the all 1's address (according
to my DHCP Server log).
This piqued my curiosity, so I took a look at the source. If I
understanding things correctly, the relevant routine is
"bootp_transmit", in the following file.
<
http://www.opensource.apple.com/darwinsource/Current/bootp-110.3/bootplib/bootp_transmit.c>
[This link requires an APSL <
http://www.opensource.apple.com/apsl/> account.]
This routine checks to see if the destination address is
255.255.255.255 (INADDR_BROADCAST) and, if so, transmits the packet
using BPF.
This doesn't mean that there's no way to transmit an all ones packet
using a UDP socket (I have no opinion on that), just that the DHCP
client source doesn't help.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.