]> 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)
commitdbb165b8bdb7f43533c678dd11fd9220a3bac907
tree685d07701d836d2f1122e06c000668b833136b4c
parent5eb8f27a23377aba0aaa80339ef0f9b739c278f6
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