Howto send a limited broadcast?
Bruce M. Simpson
bms at FreeBSD.org
Sat Apr 12 23:37:46 UTC 2008
tmm wrote:
> So, can anyone suggest how I can send a limited broadcast (on an
> interface that has been initalized with an IP and a subnet)?
Use the IP_ONESBCAST option and send to the network broadcast address
for that subnet. The stack will change it into 255.255.255.255 on
output. See man page ip(4) for details.
It's a hack, but it's largely due to how the stack has worked historically.
BMS
More information about the freebsd-net
mailing list