From owner-freebsd-net Wed Oct 10 9:18:38 2001 Delivered-To: freebsd-net@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id EF31237B407 for ; Wed, 10 Oct 2001 09:18:34 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id f9AGIW805515; Wed, 10 Oct 2001 09:18:32 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id f9AGIVA86599; Wed, 10 Oct 2001 09:18:31 -0700 (PDT) (envelope-from jdp) Date: Wed, 10 Oct 2001 09:18:31 -0700 (PDT) Message-Id: <200110101618.f9AGIVA86599@vashon.polstra.com> To: net@freebsd.org From: John Polstra Cc: aihguo1@hotmail.com Subject: Re: Trying to find out which interface an IP packet is coming from in ip_output() routine In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article , Aihua Guo wrote: > Can anybody help me find a way to find out which interface an IP > packet is coming from in ip_output()/ip_input() routine? The mb->m_pkthdr.rcvif field of the mbuf points to the interface on which the packet was received. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message