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 <jbenc@redhat.com>
This commit is contained in:
Jiri Benc 2016-09-05 11:35:28 +02:00 committed by Stephen Hemminger
parent 087dec7fcf
commit e2cfe5501f
1 changed files with 5 additions and 0 deletions

View File

@ -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) {