]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipcomp.c
RIPng: Use more ND_TCHECK_SIZE() macros
[tcpdump] / print-ipcomp.c
index acbbb37fdf9bef8c868c8b32a742fa9d6b05707b..28fac51d6e76c632f206e426f35b60cf49a05e1d 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"
@@ -46,7 +46,7 @@ ipcomp_print(netdissect_options *ndo, const u_char *bp)
        ND_TCHECK_SIZE(ipcomp);
        cpi = EXTRACT_BE_U_2(ipcomp->comp_cpi);
 
-       ND_PRINT((ndo, "IPComp(cpi=0x%04x)", cpi));
+       ND_PRINT("IPComp(cpi=0x%04x)", cpi);
 
        /*
         * XXX - based on the CPI, we could decompress the packet here.
@@ -64,6 +64,6 @@ ipcomp_print(netdissect_options *ndo, const u_char *bp)
        return;
 
 trunc:
-       ND_PRINT((ndo, "[|IPCOMP]"));
+       ND_PRINT("[|IPCOMP]");
        return;
 }