- key_id = EXTRACT_16BITS(&lisp_hdr->key_id);
- ND_PRINT((ndo, "\n %u record(s), ", record_count));
- ND_PRINT((ndo, "Authentication %s,",
- tok2str(auth_type, "unknown-type", key_id)));
- hex_print(ndo, "\n Authentication-Data: ", packet_iterator +
- packet_offset, auth_data_len);
+ key_id = GET_BE_U_2(lisp_hdr->key_id);
+ 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);