]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: respect ttl inherit for ip6tnl
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 31 Aug 2018 08:52:01 +0000 (16:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 02:04:12 +0000 (19:04 -0700)
commit0e76402e2507cccf7d4dbcf12e0b0e9fe748745f
treed42564578858e46effaef8f971580d6ed54182c3
parent48183b79a725eacad514c1a07a6f3ab4ecc5ada9
ip6_tunnel: respect ttl inherit for ip6tnl

man ip-tunnel ttl section says:
0 is a special value meaning that packets inherit the TTL value.

IPv4 tunnel respect this in ip_tunnel_xmit(), but IPv6 tunnel has not
implement it yet. To make IPv6 behave consistently with IP tunnel,
add ipv6 tunnel inherit support.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c