[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20091123194009.GA24473@1-4-5.net>
Date: Mon, 23 Nov 2009 11:40:09 -0800
From: David Meyer <dmm@...-5.net>
To: netdev@...r.kernel.org
Subject: "right" way to requeue a packet to IP from ip_rcv?
Folks,
I'm receiving an encapsulated packet that looks like
outer iph
outer udph
foreign header
inner iph
inner udph
data
What I'd like to do is strip off the outer IP, UDP and
foreign headers in ip_rcv and requeue the packet to IP to
process the rest of the packet (inner IP header,
etc). What's the clean way to do this? In freeBSD you
might do something like
(*inetsw[ip_protox[ip->ip_p]].pr_input)(m, hlen);
but I'm not exactly sure what the analogous thing is for
linux. Any insight greatly appreciated.
Thnx,
Dave
Download attachment "signature.asc" of type "application/pgp-signature" (198 bytes)
Powered by blists - more mailing lists