]> git.baikalelectronics.ru Git - kernel.git/commit
fou: reject IPv6 config
authorJiri Benc <jbenc@redhat.com>
Fri, 28 Aug 2015 18:48:21 +0000 (20:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2015 20:07:54 +0000 (13:07 -0700)
commit4ed288c568c3ff00274382ceb7a7f90781f1961c
tree206cb09c12678bc8afeda31b02927bc1edb30124
parent25356b2b9adeb7577fb6bb85a6421c0d8b28c54b
fou: reject IPv6 config

fou does not really support IPv6 encapsulation. After an UDP socket is
created in fou_create, the encap_rcv callback is set either to fou_udp_recv
or to gue_udp_recv. Both of those unconditionally assume that the received
packet has an IPv4 header and access the data at network_header as it was an
IPv4 header. This leads to IPv6 flow label being interpreted as IP packet
length, etc.

Disallow fou tunnel to be configured as IPv6 until real IPv6 support is
added to fou.

CC: Tom Herbert <tom@herbertland.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c