From: David Dillow <dave@thedillows.org>
To: Park Lee <parklee_sel@yahoo.com>
Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: [Ipsec] Issue on input process of Linux native IPsec
Date: Fri, 24 Dec 2004 16:15:14 -0500 [thread overview]
Message-ID: <1103922914.3016.13.camel@ori.thedillows.org> (raw)
In-Reply-To: <20041224192311.67180.qmail@web51506.mail.yahoo.com>
[ Trimmed cc list to non-moderated lists.]
On Fri, 2004-12-24 at 11:23 -0800, Park Lee wrote:
> > I think either you're basing your idea of the
> > packet flow on printk()'s,or I'm just too tired and
> > missing where xfrm_lookup() gets called on the
> > rx path...
>
> Yes, I'm testing with ping and basing my idea of the
> packet flow on printk().
In the work I've been doing, I've found it very helpful to open a text
editor, and make a call graph for the task I'm interested in -- in your
case, a graph of every function that gets called upon receive, starting
with your network driver's receive function.
Doing a similar one for Tx would be useful for you as well, though I'd
start with the UDP output path, as it was pretty simple.
> > (yes, sk can be NULL there, but I was wrong about
> > it being called for Rx'd packets, I think).
>
> Does this mean that when the reply (response) packet
> is sending out through xfrm_lookup(), the sk parameter
> of xfrm_lookup() will not be NULL? and When the
> incoming packet itself goes through xfrm_lookup(), the
> sk parameter will be NULL?
xfrm_lookup() is only called for outgoing packets, not for received
packets. I don't think ping replies (ICMP echo replies) will ever have
a non-NULL sk, as they are not associated with a socket.
--
David Dillow <dave@thedillows.org>
next prev parent reply other threads:[~2004-12-24 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <41ae448404122203477e71bb83@mail.gmail.com>
2004-12-23 6:29 ` Park Lee
2004-12-24 6:23 ` David Dillow
2004-12-24 19:23 ` Park Lee
2004-12-24 21:15 ` David Dillow [this message]
2004-12-25 17:47 ` Park Lee
2005-03-10 10:37 Park Lee
2005-03-10 16:18 ` Dave Dillow
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=1103922914.3016.13.camel@ori.thedillows.org \
--to=dave@thedillows.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=parklee_sel@yahoo.com \
/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
all inboxes | Powered by JetHome®