* "right" way to requeue a packet to IP from ip_rcv?
@ 2009-11-23 19:40 David Meyer
0 siblings, 0 replies; only message in thread
From: David Meyer @ 2009-11-23 19:40 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-23 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-23 19:40 "right" way to requeue a packet to IP from ip_rcv? David Meyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.