]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vxlan: improve validation of address family configuration
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 19 Jun 2017 08:03:57 +0000 (10:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:37:02 +0000 (13:37 -0400)
commitce44a4aea5e4203147013759a363c17b2ee5132b
treeb69e6de32852e123327b45d7c435e8a408aa6567
parentdc5321d79697db1b610c25fa4fad1aec7533ea3e
vxlan: improve validation of address family configuration

Address families of source and destination addresses must match, and
changelink operations can't change the address family.

In addition, always use the VXLAN_F_IPV6 to check if a VXLAN device uses
IPv4 or IPv6.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c