From: Jiri Benc Date: Mon, 5 Sep 2016 09:35:28 +0000 (+0200) Subject: vxlan: group address requires net device X-Git-Tag: v4.8.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cfe5501f99ed17e883a02c6fe81b7f9ab6f2d7;p=thirdparty%2Fiproute2.git vxlan: group address requires net device This is now enforced in the kernel, check also in iproute to get a better error message. Signed-off-by: Jiri Benc --- diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c index 7ba68bc14..bff583a72 100644 --- a/ip/iplink_vxlan.c +++ b/ip/iplink_vxlan.c @@ -266,6 +266,11 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, return -1; } + if ((gaddr || !IN6_IS_ADDR_UNSPECIFIED(&gaddr6)) && !link) { + fprintf(stderr, "vxlan: 'group' requires 'dev' to be specified\n"); + return -1; + } + if (!dst_port_set && gpe) { dstport = 4790; } else if (!dst_port_set) {