]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit609e5793317c8d1c0e2f8dffc7e2a0258af80832
treeefc05a10d97f7a793025ed11c5aceb620a149b16
parent17d9c870b5e2c4fd85cb58d85ac9c847df449c18
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: 049b2892814b ("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