summaryrefslogtreecommitdiffstats
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 18:50:12 +0200
commit8b66c7792010f5fffc864c2bcf72f977ba072ecd (patch)
tree022f3901d22a10b2db1f507220f9be7aa34c4b33
parenta20d317e63a75f9dc21158c15d1651dc2f92f24b (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>
-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 c12b24703d9..7c4c7613e87 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -11130,7 +11130,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)
{