aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat/api_format.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2016-08-24 16:17:29 +0200
committerOle Troan <ot@cisco.com>2016-08-24 16:48:11 +0200
commitd847d1c68276da82ca8eaf289ddcf4467f6ec418 (patch)
treee82017506c7c49ff5faaeb03c9c6f9d7cebbc82e /vpp-api-test/vat/api_format.c
parent251aec436b9e3be15f92a464fa4559396b115b2a (diff)
VPP-340: MAP-T wrong destination address
The bug was in VAT MAP code parsing a 32 bit integer into a 8 bit type. Perhaps we should try to build some defences in unformat_chech_input() to avoid these errors. Rebuild. Change-Id: Iae4959f7e04d889da2e9650a4201c4db15d74201 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-rw-r--r--vpp-api-test/vat/api_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index 5ddb7f7f235..f13e983c450 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -11163,7 +11163,7 @@ api_map_add_domain (vat_main_t * vam)
0, psid_length = 0;
u8 is_translation = 0;
u32 mtu = 0;
- u8 ip6_src_len = 128;
+ u32 ip6_src_len = 128;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{