Receiving INADDR_BROADCAST packets

Bruce M Simpson bms at spc.org
Sun Aug 24 11:49:50 PDT 2003


On Fri, Aug 22, 2003 at 07:30:18PM +0100, Bruce M Simpson wrote:
> I probably wouldn't need to bind sockets to each interface if I were doing
> purely broadcast traffic. I'm happy with what works for the time being,
> however; I may revisit this if I ever implement IPv6 support for the daemon
> I'm currently hacking. IP_ONESBCAST has saved a lot of trouble for me.

I take that back, I just rewrote my code to use IP_SETSRCADDR and have
seen a corresponding shrink in my interface setup and event dispatch code.

This rocks!

BMS


More information about the freebsd-net mailing list