From: Kazunori MIYAZAWA Date: Fri, 9 Dec 2005 07:11:42 +0000 (-0800) Subject: [IPv6] IPsec: fix pmtu calculation of esp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73d4f84fd001b0be67fea46e84b75e6a7a5da08e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [IPv6] IPsec: fix pmtu calculation of esp It is a simple bug which uses the wrong member. This bug does not seriously affect ordinary use of IPsec. But it is important to pass IPv6 ready logo phase-2 conformance test of IPsec SGW. Signed-off-by: Kazunori MIYAZAWA Signed-off-by: David S. Miller --- diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 40d9a1935ab..8bfbe997079 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -248,7 +248,7 @@ static u32 esp6_get_max_size(struct xfrm_state *x, int mtu) if (esp->conf.padlen) mtu = ALIGN(mtu, esp->conf.padlen); - return mtu + x->props.header_len + esp->auth.icv_full_len; + return mtu + x->props.header_len + esp->auth.icv_trunc_len; } static void esp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,