>Did you enable SO_BROADCAST and IP_ONESBCAST on the socket? I remember
>this on FreeBSD but not on Linux.

Yes we did, but...

>I know UDP broadcasting works fine, but is 
>somewhat more involved:
>addr.sin_family = AF_INET;
>addr.sin_addr.s_addr = inet_addr("");
>addr.sin_port = htons(UDP_PORT_ET);

You are using a subnet broadcast here. We are dealing with systems that
do not have IPs assigned, and as a result we have to send our broadcasts
to This works fine on other operating systems but for
some reason the implementation is different on FreeBSD. It appears that
the only way this kind of broadcast can be sent on FreeBSD is using raw
sockets. This is how the FreeBSD DHCP client/server is written, so we're
taking that approach as well...

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to