]> 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)
commit9bfbc8225dda5a4016ad24baac880cb562e97e00
treeefc05a10d97f7a793025ed11c5aceb620a149b16
parent25a7e769ab26e22f8ea843867da286555119a65d
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: 3d8fd70921d8 ("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