From owner-freebsd-net@FreeBSD.ORG Tue Oct 21 05:21:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E3716A4BF for ; Tue, 21 Oct 2003 05:21:50 -0700 (PDT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8572943F75 for ; Tue, 21 Oct 2003 05:21:47 -0700 (PDT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 7FCB06530D; Tue, 21 Oct 2003 13:21:45 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15163-01; Tue, 21 Oct 2003 13:21:44 +0100 (BST) Received: from saboteur.dek.spc.org (unknown [81.3.72.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 7DBBD652EC; Tue, 21 Oct 2003 13:21:43 +0100 (BST) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id C22CD2A; Tue, 21 Oct 2003 13:21:42 +0100 (BST) Date: Tue, 21 Oct 2003 13:21:42 +0100 From: Bruce M Simpson To: Barney Wolff Message-ID: <20031021122142.GB666@saboteur.dek.spc.org> Mail-Followup-To: Barney Wolff , Wes Peters , freebsd-net@freebsd.org, mgrooms@shrew.net, sarat chandra Annadata , julian@elischer.org References: <20031020174751.60464.qmail@web20805.mail.yahoo.com> <20031020190019.GD8721@saboteur.dek.spc.org> <20031020194959.GA64879@pit.databus.com> <200310201521.26705.wes@softweyr.com> <20031021004250.GA68072@pit.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031021004250.GA68072@pit.databus.com> cc: julian@elischer.org cc: mgrooms@shrew.net cc: sarat chandra Annadata cc: freebsd-net@freebsd.org Subject: Re: Help Broadcasting a UDP packet on the LAN:URGENT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2003 12:21:50 -0000 On Mon, Oct 20, 2003 at 08:42:50PM -0400, Barney Wolff wrote: > And of course any application that actually needs to send such a packet > on every interface can loop through the interfaces, using the technique > on each one, getting the reply, removing the 255.0.0.0/8 alias, and > moving on to the next interface. If it were up to me (as of course it > is not) I'd leave it at that and not clutter up the kernel. I would take the view that applications shouldn't mess with the routing table if they don't have to, particularly if the application in question is a routing daemon... The IP_ONESBCAST socket option doesn't create any clutter; it coexists comfortably with delayed/hardware checksumming and adds virtually no extra latency to the output path. In any event, the idea was borrowed from BSD/OS, and seems to work well there. BMS