Date: Fri, 21 Jan 2000 08:55:03 -0800 (PST) From: Julian Elischer <julian_elischer@yahoo.com> To: gbnaidu <gbnaidu@my-Deja.com>, freebsd-net@FreeBSD.ORG Subject: Re: How to I get the interface on which the packet came in... Message-ID: <20000121165503.14068.qmail@web208.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
If you use the divert function of ipfw the packet the divert target receives has teh received interface encoded into the sockaddr. --- gbnaidu <gbnaidu@my-Deja.com> wrote: > 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 > ===== +------------------------------------+ | __--_|\ Julian Elischer | | / \ julian@elischer.org +--from Perth to the world. | ( OZ ) World tour 2000 +- X_.---._/ presently in: Germany v __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com 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?20000121165503.14068.qmail>