> I've already looked at the ISC DHCP source code. They use raw sockets
> send their broadcasts, which seems to us to be a convoluted way of
> sending a simple broadcast. I've seen examples of DHCP client/server
> code written in Java using standard UDP. Unfortunately, our own system
> is already largely implemented in Java/Python, so we'll need to
> a JNI interface to support raw sockets. Alternatively we may patch the
> kernel to fix the bug at its source.

Another option we're considering is to use the firewall to detect
broadcasts and rewrite the MAC addresses in the outgoing packets. In
looking at tcpdump output of broadcasts, the IP address is set to and the MAC address is set to the MAC address of the
gateway. On Linux boxes the MAC address is ff:ff:ff:ff:ff:ff, and that's
the only significant difference in the packet. We thought we might be
able to come up with a firewall rule to detect broadcasts and change the
MAC address to the same as what Linux uses. I'm still in the process of
researching this, but if someone can tell me this is impossible, I'll
move on.

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

Reply via email to