In article <[EMAIL PROTECTED]>,
Aihua Guo <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to