ND_PRINT("\n %u record(s), ", record_count);
ND_PRINT("Authentication %s,",
tok2str(auth_type, "unknown-type", key_id));
+ ND_ICHECKMSG_ZU("authentication data length", auth_data_len, >,
+ length - MAP_REGISTER_HDR_LEN);
hex_print(ndo, "\n Authentication-Data: ",
bp + packet_offset, auth_data_len);
} else {
ND_PRINT(" %u record(s),", record_count);
+ ND_ICHECKMSG_ZU("authentication data length", auth_data_len, >,
+ length - MAP_REGISTER_HDR_LEN);
}
packet_offset += auth_data_len;
- ND_ICHECK_U(record_count, ==, 0);
+ ND_ICHECKMSG_U("record count", record_count, ==, 0);
/* Print all the EID records */
while ((length > packet_offset) && (record_count != 0)) {
packet_offset += 16;
break;
default:
+ ND_PRINT(" [unsuported address family identifier %u]",
+ eid_afi);
/*
* No support for LCAF right now.
*/
lisp_eid_notify-v lisp_eid_notify.pcap lisp_eid_notify-v.out -v
lisp_eid_register-v lisp_eid_register.pcap lisp_eid_register-v.out -v
lisp_ipv6_eid-v lisp_ipv6.pcap lisp_ipv6-v.out -v
+lisp_invalid lisp_invalid.pcap lisp_invalid.out
+lisp_invalid-v lisp_invalid.pcap lisp_invalid-v.out -v
# NSH tests
nsh nsh.pcap nsh.out
--- /dev/null
+ 1 2015-08-22 11:09:05.156268 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 160)
+ 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
+ 3 record(s), Authentication SHA1,
+ Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
+ Authentication-Data: 0x0010: 836c d1d6
+ Record TTL 1440, Authoritative, No-Action, Map Version: 0, [unsuported address family identifier 7680]
+ 2 2015-08-22 11:09:05.615558 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
+ 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [I-xTR-ID-Present],
+ 2 record(s), Authentication unknown-type, [authentication data length 35117 > 112] (invalid)
--- /dev/null
+ 1 2015-08-22 11:09:05.156268 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 3 record(s),
+ [unsuported address family identifier 7680]
+ 2 2015-08-22 11:09:05.615558 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 2 record(s), [authentication data length 35117 > 112] (invalid)