]> 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)
commit34eebedbc0c28d7b9ac5924856a559c266364f33
treeb69e6de32852e123327b45d7c435e8a408aa6567
parenta547f8030ad74f8f9b6d719a82b8b8e092ac06f6
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