X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4aac37f04316b37b73b99bdcdbfa97347bb2fe51..1bcd37991fa57d9e966a6f96e7cbff59b16c28bd:/print-cfm.c diff --git a/print-cfm.c b/print-cfm.c index 5231088b..27e72a23 100644 --- a/print-cfm.c +++ b/print-cfm.c @@ -407,7 +407,7 @@ cfm_print(netdissect_options *ndo, 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)"); @@ -534,7 +534,6 @@ cfm_print(netdissect_options *ndo, 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)",