From owner-freebsd-hackers Thu Oct 16 09:10:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA07842 for hackers-outgoing; Thu, 16 Oct 1997 09:10:26 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA07834 for ; Thu, 16 Oct 1997 09:10:21 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id JAA19288 for ; Thu, 16 Oct 1997 09:08:18 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd019286; Thu Oct 16 16:08:16 1997 Message-ID: <34463BA0.15FB7483@whistle.com> Date: Thu, 16 Oct 1997 09:06:56 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: hackers@freebsd.org Subject: bind() and broadcast packets... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Should a socket that is bound to a particular interface address still receive broadcast packets? Should it just receive broadcast packets with a network part equal to the network on that interface? should it not receive those packets at all? arguments: CON: If you allow reception of broadcasts, there is no way to block them if you don't you can always receive them on another socket. PRO: If you are trying to simulate running on a machine with only 1 interface, when you have several, then you need to bind your socket to the interface you want, and you want it to get the broadcasts just like it would if you were running in th non bound case. (e.g. SAMBA on one interface). who is authoratative on this? Mike Karels? stevens? I can't find it in the docs.. julian