Commit 96781d94 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPV6]: Fix xfrm6_tunnel_check_size mtu calc.

OK, let's make it the same as IPv4.  This is still broken
as the calculation is wrong.  However, to fix it properly
we need to store the MTUs inside the dst's.  I'll get
around to that sooner or later.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 477047f4
......@@ -79,7 +79,7 @@ static int xfrm6_tunnel_check_size(struct sk_buff *skb)
int mtu, ret = 0;
struct dst_entry *dst = skb->dst;
mtu = dst_pmtu(dst) - sizeof(struct ipv6hdr);
mtu = dst_pmtu(dst) - dst->header_len - dst->trailer_len;
if (mtu < IPV6_MIN_MTU)
mtu = IPV6_MIN_MTU;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment