| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux |
| From: | Diego Beltrami <diego.beltrami@xxxxxxx> |
| Date: | Thu, 04 Aug 2005 17:38:31 +0300 |
| Cc: | Miika Komu <miika@xxxxxx>, netdev@xxxxxxxxxxx, infrahip@xxxxxxx, hipl-users@xxxxxxxxxxxxx, hipsec@xxxxxxxx |
| In-reply-to: | <20050804131519.GB5831@gondor.apana.org.au> |
| References: | <1122984099.1214.142.camel@odysse> <Pine.GSO.4.58.0508032319000.3957@kekkonen.cs.hut.fi> <20050804131519.GB5831@gondor.apana.org.au> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 1.0.2-0.fdr.1.2 (X11/20050514) |
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. 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.
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Hipsec] Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux, Herbert Xu |
|---|---|
| Next by Date: | latest netdev tree - (broadcom44 bug?) letting you know..., Mateusz Berezecki |
| Previous by Thread: | Re: [Hipsec] Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux, Herbert Xu |
| Next by Thread: | Re: [PATCH 2.6.12.2] XFRM: BEET IPsec mode for Linux, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |