]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-cfm.c
OSPF: Use %zu to print sizeof values
[tcpdump] / print-cfm.c
index 5231088b131beca38637632df6df23cc8abfcf01..27e72a23b199671d7e165f63a2ffd37fdb7ff083 100644 (file)
@@ -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)",