break;
case CFM_CCM_MD_FORMAT_MAC:
- if (md_namelength == 6) {
+ if (md_namelength == MAC_ADDR_LEN) {
ND_PRINT("\n\t MAC %s", GET_ETHERADDR_STRING(md_name));
} else {
ND_PRINT("\n\t MAC (length invalid)");
cfm_tlv_header = (const struct cfm_tlv_header_t *)tptr;
/* Enough to read the tlv type ? */
- ND_TCHECK_1(cfm_tlv_header->type);
cfm_tlv_type = GET_U_1(cfm_tlv_header->type);
ND_PRINT("\n\t%s TLV (0x%02x)",