From: Diego Beltrami <diego.beltrami@HIIT.FI>
To: herbert@gondor.apana.org.au
Cc: infrahip@HIIT.FI, netdev@oss.sgi.com
Subject: Re: [hipl-users] Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux
Date: Fri, 29 Jul 2005 18:33:36 +0300 [thread overview]
Message-ID: <1122651216.25842.67.camel@odysse> (raw)
In-Reply-To: <E1Dy6gb-00044G-00@gondolin.me.apana.org.au>
> Diego Beltrami <diego.beltrami@hiit.fi> wrote:
> >
> > we have been working for three months to implement a new IPsec mode,
> > the "BEET" mode, for Linux. Below is a link to the BEET specification
> > and
> > the abstract:
> >
> > http://www.ietf.org/internet-drafts/draft-nikander-esp-beet-mode-03.txt
>
> Thanks for the patch guys, this is really interesting.
Thanks Herbert for your feedback!
> > extern int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type);
> > diff -urN linux-2.6.12.2/net/ipv4/esp4.c
> > linux-beet-2.6.12.2/net/ipv4/esp4.c
> > --- linux-2.6.12.2/net/ipv4/esp4.c 2005-06-30 02:00:53.000000000 +0300
> > +++ linux-beet-2.6.12.2/net/ipv4/esp4.c 2005-07-25 14:39:11.000000000
>
> Although the document only talks about ESP, as far as I can see
> the encapsulation can be applied to AH/IPComp just as well.
> So how about moving this stuff to the generic xfrm_input/xfrm_output
> functions?
The BEET code is already present in xfrm_input/xfrm_output functions and
it applies ESP encapsulation merely because of SA and SP set by means
setkey. As a consequence, if SA and SP are correctly set for AH the flow
goes through the AH functions.
The modifications in the ESP functions are due to the hybrid cases when
Inner and Outer address families are different; in those cases the
values returned by espX functions are not coherent.
I tried to change SA and SP so that AH is used and the flow correctly
goes through AH functions but the problem has been revealed to be
something else. In particular, it seems that the AH functions deal with
the pointers contained in skb (skb->data, skb->nh, skb->h etc) in a
slightly different way than ESP functions. (Can anyone say more?)
Surely BEET will work also for AH with minor changes, even though we
only tried the ESP encapsulation.
This will require some time to inspect and analyze the exact situation.
In any case, as a result, I would say the code is already generic
itself.
On the other hand I don't know about IPComp, so I wouldn't say anything.
Hence if You could please give some hints, they will be more than
appreciated.
>
> Also, if you're going to do cross-family transforms, it should be
> done for both BEET and plain tunnel-mode.
Potentially it could be possible also for plain tunnel-mode: this will
require further analysis.
For further discussion and advice, please give feedback.
Thank You very much!
Cheers,
--Diego
next prev parent reply other threads:[~2005-07-29 15:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1122295307.14873.37.camel@odysse>
2005-07-25 13:28 ` [Hipsec] [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux Diego Beltrami
2005-07-26 13:02 ` Miika Komu
2005-07-28 11:36 ` Herbert Xu
2005-07-29 15:33 ` Diego Beltrami [this message]
2005-07-29 15:45 ` [Infrahip] Re: [hipl-users] " Pekka Nikander
2005-07-29 23:48 ` Herbert Xu
2005-07-30 11:01 ` Diego Beltrami
2005-07-30 11:15 ` [hipl-users] " Herbert Xu
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=1122651216.25842.67.camel@odysse \
--to=diego.beltrami@hiit.fi \
--cc=herbert@gondor.apana.org.au \
--cc=infrahip@HIIT.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).