netdev
[Top] [All Lists]

Re: IPsec and Path MTU

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: IPsec and Path MTU
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jun 2004 07:31:30 +1000
Cc: kuznet@xxxxxxxxxxxxx, jmorris@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20040617105843.314dfe30.davem@redhat.com>
References: <20040616202341.GD29781@ms2.inr.ac.ru> <E1BajZO-0001UK-00@gondolin.me.apana.org.au> <20040617105843.314dfe30.davem@redhat.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.5.1+cvs20040105i
On Thu, Jun 17, 2004 at 10:58:43AM -0700, David S. Miller wrote:
>
> Do you see what xfrm_get_mss() does?  It calls into x->type->get_max_size()
> and this is where ESP reports this kind of thing (re: block padding).

Yes I know.  But this is only used in TCP currently.  It is also rather
expensive so you'd really want to cache the results rather than calling
it for every packet.

For example, xfrm4_check_tunnel_size() needs to use the value from
xfrm_get_mss() but isn't.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email:  Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

<Prev in Thread] Current Thread [Next in Thread>