]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: Fix MTU setting for ip6gretap
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sat, 21 May 2016 10:17:34 +0000 (18:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 May 2016 21:33:48 +0000 (14:33 -0700)
commitb97406978a50f9280d7962310568d9a8a9fd7e64
tree63e240aac0a2198bb5f16014c2f91b0edd0ae56f
parent1ca4b57799989ef081f9a0bca9608bda1a5b9f47
ip6_gre: Fix MTU setting for ip6gretap

When creat an ip6gretap interface with an unreachable route,
the MTU is about 14 bytes larger than what was needed.

If the remote address is reachable:
ping6 2001:0:130::1 -c 2
PING 2001:0:130::1(2001:0:130::1) 56 data bytes
64 bytes from 2001:0:130::1: icmp_seq=1 ttl=64 time=1.46 ms
64 bytes from 2001:0:130::1: icmp_seq=2 ttl=64 time=81.1 ms

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c