]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipcomp.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-ipcomp.c
index dea9ba769b4bc7bff6c77771c4f8796261894863..9897dac73f7bbca7245e32f190d7958c533dcccc 100644 (file)
 /* \summary: IP Payload Compression Protocol (IPComp) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
 #include "extract.h"
@@ -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;
 }