diff options
author | John Lo <loj@cisco.com> | 2016-12-08 16:10:02 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-12-09 09:00:11 +0000 |
commit | 56912c896ae803fad01af390ade921be68ea5ba2 (patch) | |
tree | ef05ce91055c3304e1d8c27d4091ffe1f32d93a9 /vpp-api-test/vat/api_format.c | |
parent | 6d403a013276f095e542c9b6281db96354fa6f07 (diff) |
Add extra validation for VXLAN packets and tunnels
- On VXLAN packet decap, validate its DIP against VXLAN tunnel.
- Add extra logic to validate and handle creation of multicast
VXLAN tunnels.
Change-Id: I6abdddd7be4cd9f1bcfc88d9970ba681fdd72f7c
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index 85821ee287b..258c67f8e0c 100644 --- 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; } + if (grp_set == 0 && ip46_address_is_multicast (&dst)) + { + errmsg ("tunnel dst address must be unicast\n"); + return -99; + } if (ipv4_set && ipv6_set) |