Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73d4f84f authored by Kazunori MIYAZAWA's avatar Kazunori MIYAZAWA Committed by David S. Miller
Browse files

[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: default avatarKazunori MIYAZAWA <miyazawa@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 246a4212
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -248,7 +248,7 @@ static u32 esp6_get_max_size(struct xfrm_state *x, int mtu)
	if (esp->conf.padlen)
	if (esp->conf.padlen)
		mtu = ALIGN(mtu, 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,
static void esp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,