From owner-freebsd-net Thu Jan 20 1:19:16 2000 Delivered-To: freebsd-net@freebsd.org Received: from mc-qout4.whowhere.com (mc-qout4.whowhere.com [209.185.123.18]) by hub.freebsd.org (Postfix) with SMTP id 2776E14DB1 for ; Thu, 20 Jan 2000 01:19:15 -0800 (PST) (envelope-from gbnaidu@my-deja.com) Received: from Unknown/Local ([?.?.?.?]) by my-deja.com; Thu Jan 20 01:18:58 2000 To: freebsd-net@FreeBSD.ORG Date: Thu, 20 Jan 2000 01:18:58 -0800 From: "gbnaidu " Message-ID: Mime-Version: 1.0 X-Sent-Mail: off X-Mailer: MailCity Service Subject: How to I get the interface on which the packet came in... X-Sender-Ip: 164.164.56.2 Organization: My Deja Email (http://www.my-deja.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Length: 567 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I would like to know How to get the interface on which the packet came in? One way is to use the falg IP_RECVIF flag. But can some body tell me the code fragment how to manipulate this option? Another option could be to bind different IP address to different sock and try to read them. But in a host with multiple interfaces, will this hold good? How do I make sure on which interface it has came in? To reply use this address: gbnaidu@sasi.com regards --gb --== Sent via Deja.com http://www.deja.com/ ==-- Share what you know. Learn what you don't. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message