Netdev List
 help / color / mirror / Atom feed
From: David Meyer <dmm@1-4-5.net>
To: netdev@vger.kernel.org
Subject: "right" way to requeue a packet to IP from ip_rcv?
Date: Mon, 23 Nov 2009 11:40:09 -0800	[thread overview]
Message-ID: <20091123194009.GA24473@1-4-5.net> (raw)

[-- 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 --]

                 reply	other threads:[~2009-11-23 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091123194009.GA24473@1-4-5.net \
    --to=dmm@1-4-5.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox