X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/da20bc56d6100b5275d6f85c4a25bac1dab4e57e..d7b497cac78b6e22a66a6bae9bdec60a8044f67a:/print-domain.c diff --git a/print-domain.c b/print-domain.c index 95301a9f..e150116d 100644 --- a/print-domain.c +++ b/print-domain.c @@ -105,7 +105,7 @@ blabel_print(netdissect_options *ndo, ND_PRINT((ndo, "\\[x")); for (bitp = cp + 1, b = bitlen; bitp < lim && b > 7; b -= 8, bitp++) { ND_TCHECK(*bitp); - ND_PRINT((ndo, "%02x", *bitp)); + ND_PRINT((ndo, "%02x", EXTRACT_U_1(bitp))); } if (b > 4) { ND_TCHECK(*bitp); @@ -338,7 +338,7 @@ ns_qprint(netdissect_options *ndo, cp = ns_nskip(ndo, cp); - if (cp == NULL || !ND_TTEST2(*cp, 4)) + if (cp == NULL || !ND_TTEST_4(cp)) return(NULL); /* print the qtype */ @@ -467,7 +467,7 @@ ns_rprint(netdissect_options *ndo, break; case T_MX: ND_PRINT((ndo, " ")); - if (!ND_TTEST2(*cp, 2)) + if (!ND_TTEST_2(cp)) return(NULL); if (ns_nprint(ndo, cp + 2, bp) == NULL) return(NULL); @@ -486,7 +486,7 @@ ns_rprint(netdissect_options *ndo, case T_SRV: ND_PRINT((ndo, " ")); - if (!ND_TTEST2(*cp, 6)) + if (!ND_TTEST_6(cp)) return(NULL); if (ns_nprint(ndo, cp + 6, bp) == NULL) return(NULL);