]> git.baikalelectronics.ru Git - kernel.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)
commit27bb9ab9b501d13530244bb190f33fa8c0220cf9
treeb69e6de32852e123327b45d7c435e8a408aa6567
parent3528101d0e7d2197bbfcb929f8278f99f68c0e1e
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