Re: UDP broadcast address
Re: UDP broadcast address
- Subject: Re: UDP broadcast address
- From: Quinn <email@hidden>
- Date: Wed, 11 Feb 2004 10:16:19 +0000
At 9:06 +0000 11/2/04, Mark Hunt wrote:
The devices I'm talking to are little microcontroller boxes - they
don't "do" DHCP, but set a 2.x.x.x IP address based on their MAC
address.
This means that in order to use them, the Mac has to be set to 2.x.x.x
as well, which is a pain.
Hmmmm, Rendezvous is your friend. This stuff is *so* much easier if
the device supports Rendezvous.
They seem to respond to an all 1's address as well as the subnet
broadcast.
Hmmm, so if they respond to the subnet broadcast, why all this fuss
about all ones?
I have seen my Mac send all to 1's, but I'm not sure why it did this -
it seemed to be random (or maybe I was using Open Transport at the
time).
Are you sure it wasn't the DHCP client?
I've just checked, and an OT app does send all 1's,
Hmmm, are you talking about the OT compatibility library for Carbon,
or the OT implementation within Classic. I can see that the OT
within Classic would might send all ones (it builds the entire
Ethernet + IP packet within Classic and then transmits it via the
Ethernet driver), but the OT compatibility library just sends packets
using sendmsg and so, if it does send all ones, you should be able to
do it yourself.
so I could try putting an OT port in my application - any problem
with mixing OT and sockets in the same app?
No (other than it being ugly).
I could use a raw port, but that means root privileges - doesn't it?
Yes.
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.