ip6_gre: fix endianness errors in ip6gre_err
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 4 Feb 2015 14:25:09 +0000 (15:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 09:46:00 +0000 (10:46 +0100)
commit6f47a87d1540a9f7c294b5e79e7dcf0827840060
treebb62f7fb73a06ea41a16903c13fb7fae23e65a44
parent488ec7b227e442ec3f288ad9245d9a78ec3df57b
ip6_gre: fix endianness errors in ip6gre_err

commit d1e158e2d7a0a91110b206653f0e02376e809150 upstream.

info is in network byte order, change it back to host byte order
before use. In particular, the current code sets the MTU of the tunnel
to a wrong (too big) value.

Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv6/ip6_gre.c