[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080805072249.GA20340@gondor.apana.org.au>
Date: Tue, 5 Aug 2008 15:22:49 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Joakim Koskela <joakim.koskela@...t.fi>
Cc: netdev@...r.kernel.org, yoshfuji@...e.ad.jp
Subject: Re: [PATCH 2/2] Interfamily IPSec BEET
On Tue, Aug 05, 2008 at 10:13:19AM +0300, Joakim Koskela wrote:
> > > diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
> > > index c6bb4c6..f09fcb9 100644
> > > --- a/net/ipv6/esp6.c
> > > +++ b/net/ipv6/esp6.c
> > > @@ -521,6 +521,10 @@ static int esp6_init_state(struct xfrm_state *x)
> > > crypto_aead_ivsize(aead);
> > > switch (x->props.mode) {
> > > case XFRM_MODE_BEET:
> > > + x->props.header_len += IPV4_BEET_PHMAXLEN;
> > > + if (x->sel.family == AF_INET)
> > > + x->props.header_len += (sizeof(struct ipv6hdr) - sizeof(struct
> > > iphdr));
Also could we avoid the IPV4_BEET_PHMAXLEN part if the inner family
is IPv6?
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists