ip6_gre: fix endianness errors in ip6gre_err
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 4 Feb 2015 14:25:09 +0000 (15:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:33:10 +0000 (00:33 -0800)
commitd1e158e2d7a0a91110b206653f0e02376e809150
treeefc05a10d97f7a793025ed11c5aceb620a149b16
parentf31ec95fa19e07a8beebcc0297284f23aa57967e
ip6_gre: fix endianness errors in ip6gre_err

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>
net/ipv6/ip6_gre.c