VPP-340: MAP-T wrong destination address 89/2489/2
authorOle Troan <ot@cisco.com>
Wed, 24 Aug 2016 14:17:29 +0000 (16:17 +0200)
committerOle Troan <ot@cisco.com>
Wed, 24 Aug 2016 14:48:11 +0000 (16:48 +0200)
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>
vpp-api-test/vat/api_format.c

index 5ddb7f7..f13e983 100644 (file)
@@ -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)
     {