From owner-freebsd-hackers Thu Jul 4 06:30:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA26115 for hackers-outgoing; Thu, 4 Jul 1996 06:30:16 -0700 (PDT) Received: from teil.soft.net (tata_elxsi.soft.net [164.164.10.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA26110 for ; Thu, 4 Jul 1996 06:30:08 -0700 (PDT) Received: by teil.soft.net (920330.SGI/920502.SGI.JF) for hackers@freeBSD.ORG id AA10479; Thu, 4 Jul 96 18:59:29 -0800 From: suren@teil.soft.net (S. Arockia Suren) Message-Id: <9607050259.AA10479@teil.soft.net> Subject: HI! Need Help..(ignore earlier one) To: hackers@freeBSD.ORG Date: Thu, 4 Jul 1996 18:59:28 -0800 (PST) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, i need some help regarding finding the interface through which a limited braodcast packet was received. An icmp socket is opened to receive limited broadcast messages (ffff). 1. is it true that if the socket is bind by an address it cannot receive the limited broadcast message??? because the only information i could get from "rip_input" function that to receive limited broadcast messages only two things r possible 1. bind it with limited broadcast address 2. donot bind it. if my conclusion is true, then which possibility would be better to use? if there r other possibilities please let me know abt them and suggest the best to use. 2. in case of a node with multiple interfaces, how can i determine the interface from which i received a limited broadcast (icmp) packet. freebsd does not seem to distinguish the sockets based on the interface on which they r functioning. instead when it gets a packet it sends a copy to all the sockets that r eligible to receive the packet. please help me solve these two problems. thanking you in anticipation, suren.