]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipcomp.c
Don't print timestamps to a buffer and then print the buffer.
[tcpdump] / print-ipcomp.c
index 28fac51d6e76c632f206e426f35b60cf49a05e1d..9897dac73f7bbca7245e32f190d7958c533dcccc 100644 (file)
@@ -42,6 +42,7 @@ ipcomp_print(netdissect_options *ndo, const u_char *bp)
        const struct ipcomp *ipcomp;
        uint16_t cpi;
 
+       ndo->ndo_protocol = "ipcomp";
        ipcomp = (const struct ipcomp *)bp;
        ND_TCHECK_SIZE(ipcomp);
        cpi = EXTRACT_BE_U_2(ipcomp->comp_cpi);
@@ -64,6 +65,6 @@ ipcomp_print(netdissect_options *ndo, const u_char *bp)
        return;
 
 trunc:
-       ND_PRINT("[|IPCOMP]");
+       nd_print_trunc(ndo);
        return;
 }