Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2008 00:37:43 +0100
From:      "Bruce M. Simpson" <bms@FreeBSD.org>
To:        tmm <tmm@fastmail.fm>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Howto send a limited broadcast?
Message-ID:  <480147C7.6090107@FreeBSD.org>
In-Reply-To: <4800E2D5.20107@fastmail.fm>
References:  <4800E2D5.20107@fastmail.fm>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?480147C7.6090107>