netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Diego Beltrami <diego.beltrami@hiit.fi>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Miika Komu <miika@iki.fi>,
	netdev@oss.sgi.com, infrahip@hiit.fi, hipl-users@freelists.org,
	hipsec@ietf.org
Subject: Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux
Date: Thu, 04 Aug 2005 17:38:31 +0300	[thread overview]
Message-ID: <42F22867.9050804@hiit.fi> (raw)
In-Reply-To: <20050804131519.GB5831@gondor.apana.org.au>


> Well to me it's more of an issue of maintainability.  BEET mode is
> more akin to transport/tunnel mode than AH/ESP/IPcomp.  As such its
> implementation would be most at home where the existing encapsulation
> and decapsulation for transport/tunnel mode is done.  That is, in
> xfrm[46]_input.c and xfrm[46]_output.c.
> 
> For instance, the reason the current patch has to touch esp4.c at
> all is really because the patch to xfrm4_output.c isn't right.
> It should do what the comment says and set skb->h to the start
> of the payload, not the start of the ESP header.  If it did that,
> then esp_output doesn't have to care about BEET at all.

This is totally true, and I agree with you but then this is somehow a 
controversial thing with respect to the esp6_output. In fact the 
esp6_output has the same purpose of esp_output, but it requires the 
skb->h to be set at the beginning of ESP header.

> 
> Also, the outer header generation should be done before
> x->type->output is called, not after.  That way, the AH
> semantics falls out quite naturally.

BEET has been designed to be compatible with HIP. This means that the 
ESP header should be computed with respect to the inner addresses.
In a very first implementation of BEET we were converting the inner 
addresses to the outer addresses before x->type->output, but we couldn't 
make interoperate BEET with HIP.
That's the reason why the outer header generation has been after 
x->type->output.

This is one of the reasons why the AH, as Pekka Nikader said, is a bit 
trickier with respect to ESP (the AH protocol protects the IP datagram 
including immutable parts of the IP header like the IP addresses whereas 
for ESP the IP header is not included in the calculation process).

--Diego

  parent reply	other threads:[~2005-08-04 14:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1122984099.1214.142.camel@odysse>
2005-08-03 20:57 ` [Hipsec] Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux Miika Komu
2005-08-03 23:40 ` Herbert Xu
     [not found] ` <Pine.GSO.4.58.0508032319000.3957@kekkonen.cs.hut.fi>
     [not found]   ` <20050804131519.GB5831@gondor.apana.org.au>
2005-08-04 14:38     ` Diego Beltrami [this message]
2005-08-02 12:01 Diego Beltrami
     [not found] <1122295307.14873.37.camel@odysse>
2005-07-26 13:02 ` Miika Komu
2005-07-28 11:36 ` Herbert Xu
2005-07-29 15:33   ` [hipl-users] " Diego Beltrami
2005-07-29 15:45     ` [Infrahip] " Pekka Nikander
2005-07-29 23:48       ` Herbert Xu
2005-07-30 11:01         ` Diego Beltrami
  -- strict thread matches above, loose matches on Subject: below --
2005-07-25 12:41 Diego Beltrami

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=42F22867.9050804@hiit.fi \
    --to=diego.beltrami@hiit.fi \
    --cc=herbert@gondor.apana.org.au \
    --cc=hipl-users@freelists.org \
    --cc=hipsec@ietf.org \
    --cc=infrahip@hiit.fi \
    --cc=miika@iki.fi \
    --cc=netdev@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).