Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add extra validation for VXLAN packets and tunnels
[vpp.git]
/
vpp-api-test
/
vat
/
api_format.c
diff --git
a/vpp-api-test/vat/api_format.c
b/vpp-api-test/vat/api_format.c
index
85821ee
..
258c67f
100644
(file)
--- a/
vpp-api-test/vat/api_format.c
+++ b/
vpp-api-test/vat/api_format.c
@@
-10372,6
+10372,11
@@
api_vxlan_add_del_tunnel (vat_main_t * vam)
errmsg ("tunnel nonexistent multicast device\n");
return -99;
}
errmsg ("tunnel nonexistent multicast device\n");
return -99;
}
+ if (grp_set == 0 && ip46_address_is_multicast (&dst))
+ {
+ errmsg ("tunnel dst address must be unicast\n");
+ return -99;
+ }
if (ipv4_set && ipv6_set)
if (ipv4_set && ipv6_set)