Date: Fri, 06 Dec 2002 01:50:10 +0100 From: Dan Lukes <dan@obluda.cz> To: freebsd-net@freebsd.org Subject: Re: broadcast over loopback Message-ID: <3DEFF442.6030203@obluda.cz> In-Reply-To: <7E2B1140-0889-11D7-9DEC-000393760260_apple.com@ns.sol.net> References: <7E2B1140-0889-11D7-9DEC-000393760260_apple.com@ns.sol.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DEFF442.6030203>