VPP-340: MAP-T wrong destination address 90/2490/1
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 16:50:12 +0000 (18:50 +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 c12b247..7c4c761 100644 (file)
@@ -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)
     {