X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/38700c7f24646dfbc6ac0ed529d3ed727c545cd0..refs/pull/482/head:/print-ipcomp.c diff --git a/print-ipcomp.c b/print-ipcomp.c index 2504bfd9..a6d25257 100644 --- a/print-ipcomp.c +++ b/print-ipcomp.c @@ -23,7 +23,7 @@ #include "config.h" #endif -#include +#include struct ipcomp { uint8_t comp_nxt; /* Next Header */ @@ -35,7 +35,7 @@ struct ipcomp { #include #endif -#include "interface.h" +#include "netdissect.h" #include "extract.h" int @@ -48,13 +48,13 @@ ipcomp_print(netdissect_options *ndo, register const u_char *bp, int *nhdr _U_) int advance; #endif - ipcomp = (struct ipcomp *)bp; + ipcomp = (const struct ipcomp *)bp; cpi = EXTRACT_16BITS(&ipcomp->comp_cpi); /* 'ep' points to the end of available data. */ ep = ndo->ndo_snapend; - if ((u_char *)(ipcomp + 1) >= ep - sizeof(struct ipcomp)) { + if ((const u_char *)(ipcomp + 1) >= ep - sizeof(struct ipcomp)) { ND_PRINT((ndo, "[|IPCOMP]")); goto fail; }