netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Wolfgang Walter <wolfgang.walter@studentenwerk.mhn.de>,
	netdev@oss.sgi.com
Subject: Re: Problem with IPSEC tunnel mode
Date: Thu, 21 Apr 2005 20:18:19 -0400	[thread overview]
Message-ID: <1114129099.10572.24.camel@localhost.localdomain> (raw)
In-Reply-To: <20050421235802.GB10451@gondor.apana.org.au>

On Fri, 2005-22-04 at 09:58 +1000, Herbert Xu wrote:
> On Thu, Apr 21, 2005 at 07:50:19PM -0400, jamal wrote:
> > What was the reason there exist a FWD direction in the policies?
> 
> You should really ask Alexey about that :) I myself had the same
> question when I first started in this area.  However, since it
> has been present since the very beginning and people are already
> relying on it, we will have to live with it.
> 

I am sure if Alexey did it theres a good reason - I am not sure i get
it. CCing mr Kuznet.

> > Also - shouldnt the FWD policies closely match the OUT ones instead of
> > the IN direction (browsing the forwarding code)? i.e
> > does this look odd to you (picking a sample from Wolfgangs output):
> 
> The FWD policies are analogous to the FORWARD table in netfilter.
> The FWD policies apply to forwarded packet, meaning packets that
> end up in ip_forward instead of ip_local_deliver.  The IN policies
> only apply to packets that end up in ip_local_deliver.
> 

Heres what confused me when i browsed:
looking at ip_forward() - it does a xfrm4_policy_check(NULL,
XFRM_POLICY_FWD, skb)  - this leads to a flow cache creation based on
FWD direction. Later on in the path (still in ip_forward)
xfrm4_route_forward() gets invoked which does a flow_cache build again
based on XFRM_POLICY_OUT. 
So i was wondering whether they OUT shouldnt be just a duplicate of 
FWD (instead FWD seems to be the dup of IN). Look at that sample i
posted - all his policies look like that. What gives? Why are the IN and
FWD exactly the same? bug in racoon/setkey?

cheers,
jamal

  parent reply	other threads:[~2005-04-22  0:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20 15:37 Problem with IPSEC tunnel mode Wolfgang Walter
2005-04-21 12:57 ` Herbert Xu
2005-04-21 14:40   ` Wolfgang Walter
2005-04-21 21:46     ` Herbert Xu
2005-04-21 23:50       ` jamal
2005-04-21 23:58         ` Herbert Xu
2005-04-22  0:13           ` Patrick McHardy
2005-04-22  0:18           ` jamal [this message]
2005-04-22  0:54             ` Herbert Xu
2005-04-22 11:42             ` Wolfgang Walter
2005-04-22 12:14               ` jamal
2005-04-22 13:22                 ` Wolfgang Walter
2005-04-22 13:27                   ` Herbert Xu
2005-04-22 13:48                     ` Wolfgang Walter
2005-04-22 13:53                       ` Herbert Xu
2005-04-23 17:49                   ` jamal
2005-04-23 17:52                     ` David S. Miller
2005-04-23 21:03                     ` Wolfgang Walter
2005-04-24 22:08                       ` jamal
2005-04-22  0:40       ` Wolfgang Walter
2005-04-22  1:04         ` Herbert Xu
2005-04-22  9:37           ` Wolfgang Walter

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=1114129099.10572.24.camel@localhost.localdomain \
    --to=hadi@cyberus.ca \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@oss.sgi.com \
    --cc=wolfgang.walter@studentenwerk.mhn.de \
    /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;
as well as URLs for NNTP newsgroup(s).