]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-calm-fast.c
the failed/passed count was not kept in the right place
[tcpdump] / print-calm-fast.c
index 64f4b78026651fb636f88bdd588c468bbb7687c2..6331a9c985e32a2da2eb86e35637ddca4207b9ff 100644 (file)
@@ -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;
 }