diff options
author | Matthias May <matthias.may@westermo.com> | 2022-07-11 11:17:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-13 13:10:22 +0200 |
commit | b09ab9c92e5077a00602dbff606ea518f379303c (patch) | |
tree | beca8569b384c1846261dfacba85a2028914f7de /net/ipv6/ip6_fib.c | |
parent | ip6_gre: use actual protocol to select xmit (diff) | |
download | linux-b09ab9c92e5077a00602dbff606ea518f379303c.tar.xz linux-b09ab9c92e5077a00602dbff606ea518f379303c.zip |
ip6_tunnel: allow to inherit from VLAN encapsulated IP
The current code allows to inherit the TTL (hop_limit) from the
payload when skb->protocol is ETH_P_IP or ETH_P_IPV6.
However when the payload is VLAN encapsulated (e.g because the tunnel
is of type GRETAP), then this inheriting does not work, because the
visible skb->protocol is of type ETH_P_8021Q or ETH_P_8021AD.
Instead of skb->protocol, use skb_protocol().
Signed-off-by: Matthias May <matthias.may@westermo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
0 files changed, 0 insertions, 0 deletions