From owner-freebsd-net@FreeBSD.ORG Sun Apr 13 03:09:22 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65F69106564A for ; Sun, 13 Apr 2008 03:09:22 +0000 (UTC) (envelope-from tmm@fastmail.fm) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 2FDAE8FC2B for ; Sun, 13 Apr 2008 03:09:22 +0000 (UTC) (envelope-from tmm@fastmail.fm) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id AE069EC5CB; Sat, 12 Apr 2008 23:09:21 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 12 Apr 2008 23:09:21 -0400 X-Sasl-enc: aUgcBj0rXDJ/V+usmGr2XF1s9sjPkfKLCWv3L4qnnohz 1208056161 Received: from [192.168.11.3] (bas4-toronto46-1279334009.dsl.bell.ca [76.65.22.121]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2A93C40E2; Sat, 12 Apr 2008 23:09:21 -0400 (EDT) Message-ID: <48017958.8020302@fastmail.fm> Date: Sat, 12 Apr 2008 23:09:12 -0400 From: tmm User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: "Bruce M. Simpson" References: <4800E2D5.20107@fastmail.fm> <480147C7.6090107@FreeBSD.org> In-Reply-To: <480147C7.6090107@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Howto send a limited broadcast? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 03:09:22 -0000 Bruce M. Simpson wrote: > 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 Thanks. I wasn't aware of that option. But now I find that this option is not present in my (eCos port of) FreeBSD stack. Either it was removed during the port, or the ported version is too old. Perhaps the best thing for me to do is to look at the 'normal' FreeBSD stack (as opposed to the eCos one) and see how IP_ONESBCAST is implemented. Then perhaps I could do the same thing in my FreeBSD stack. Is there a way for me to download the FreeBSD source code without actually downloading, burning, and installing FreeBSD? Looking around the FreeBSD website I don't see a source download link. thanks, Tom.