X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/8b1d184e10263b5889ffcfbc4887ca82d7ca07df..41ef9cfe38f86553ffd8f61b6f87e9c00baf5f07:/print-calm-fast.c diff --git a/print-calm-fast.c b/print-calm-fast.c index 64f4b780..6331a9c9 100644 --- a/print-calm-fast.c +++ b/print-calm-fast.c @@ -47,8 +47,8 @@ calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const s ND_TCHECK_2(bp); if (length < 2) goto trunc; - srcNwref = EXTRACT_U_1(bp); - dstNwref = EXTRACT_U_1(bp + 1); + srcNwref = GET_U_1(bp); + dstNwref = GET_U_1(bp + 1); length -= 2; bp += 2; @@ -64,6 +64,6 @@ calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const s return; trunc: - ND_PRINT("[|calm fast]"); + nd_print_trunc(ndo); return; }