]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: reject IPv6 addresses if IPv6 is not configured
authorJiri Benc <jbenc@redhat.com>
Thu, 17 Sep 2015 14:11:11 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 05:32:15 +0000 (22:32 -0700)
commit20f6174a8aeebc7009de31d3d98bef2c8f1b25ba
tree685d07701d836d2f1122e06c000668b833136b4c
parent331917d316ce374959dc9868e94197c65c367448
vxlan: reject IPv6 addresses if IPv6 is not configured

When IPv6 address is set without IPv6 configured, the vxlan socket is mostly
treated as an IPv4 one but various lookus in fdb etc. still take the
AF_INET6 into account. This creates incosistencies with weird consequences.

Just reject IPv6 addresses in such case.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c