]> git.ipfire.org Git - thirdparty/iproute2.git/commit
vxlan: use preferred address family when neither group or remote is specified
authorVincent Bernat <vincent@bernat.im>
Thu, 9 Mar 2017 20:05:42 +0000 (21:05 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 20 Mar 2017 17:16:09 +0000 (10:16 -0700)
commit97d564b90ccb1e4a3c756d9caae161f55b2b63a2
tree9ccc4801c8ac2e56e2aa52f3aebeabb721f8060a
parent3e14fd0411e2719cd31c10dff47b403c30e5e3e6
vxlan: use preferred address family when neither group or remote is specified

When neither group or remote is specified (or if they are specified with
the any address), nothing is sent to the kernel. In this case, the
kernel defaults to IPv4. This makes impossible to use IPv6 with
unspecified unicast remote ("bridge fdb add" will return
EAFNOTSUPPORT).

If the user specifies a preferred address family (eg, "ip -6 link add"),
then send either IFLA_VXLAN_GROUP or IFLA_VXLAN_GROUP6 to enforce the
use of the appropriate family.

Signed-off-by: Vincent Bernat <vincent@bernat.im>
ip/iplink_vxlan.c