From owner-freebsd-net Thu Dec 5 16:50:19 2002 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 29FD137B401 for ; Thu, 5 Dec 2002 16:50:18 -0800 (PST) Received: from majordomo.vol.cz (smtp4.vol.cz [195.250.128.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50B6443E4A for ; Thu, 5 Dec 2002 16:50:17 -0800 (PST) (envelope-from dan@obluda.cz) Received: from obluda.cz (xkulesh.vol.cz [195.250.154.106]) by majordomo.vol.cz (8.12.6/8.12.6) with ESMTP id gB60oBDR064063 for ; Fri, 6 Dec 2002 01:50:15 +0100 (CET) (envelope-from dan@obluda.cz) Message-ID: <3DEFF442.6030203@obluda.cz> Date: Fri, 06 Dec 2002 01:50:10 +0100 From: Dan Lukes User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021106 X-Accept-Language: en, cs MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: broadcast over loopback References: <7E2B1140-0889-11D7-9DEC-000393760260_apple.com@ns.sol.net> In-Reply-To: <7E2B1140-0889-11D7-9DEC-000393760260_apple.com@ns.sol.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org jgraessley@apple.com wrote, On 12/05/02 20:41: > Is there a reason that the broadcast flag is not set on the loopback > interface? It seems like it might be useful to allow applications that > use broadcast to continue to work even when loopback is the only > interface. Your application shouldn't use broadcast unless it knows it run in broadcast capable environment or it shouldn't refuse to run when it cannot send a packet - as it doesn't care where it's packets are sent to. BTW, the broadcast are handled in mad way in TCP/IP stack already - the destination of 255.255.255.255 is silently rewritten to network broadcast and sent over first interface (if it is broadcast capable) or it is routed (often to default route). You can't send the non-network broadcast to interface of your choice (unless you use bpf). Dan -- Dan Lukes tel: +420 2 21914205, fax: +420 2 21914206 root of FIONet, KolejNET, webmaster of www.freebsd.cz AKA: dan@obluda.cz, dan@freebsd.cz,dan@kolej.mff.cuni.cz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message