X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/60a835d80f4b6c12dbe2d38fe4ca2de16f3302dc..refs/pull/471/head:/print-fr.c diff --git a/print-fr.c b/print-fr.c index 0832522c..2df3892b 100644 --- a/print-fr.c +++ b/print-fr.c @@ -19,17 +19,16 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include #include #include -#include "interface.h" +#include "netdissect.h" #include "addrtoname.h" #include "ethertype.h" #include "llc.h" @@ -331,7 +330,7 @@ fr_print(netdissect_options *ndo, break; case NLPID_SNAP: - if (snap_print(ndo, p, length, length, 0) == 0) { + if (snap_print(ndo, p, length, length, NULL, NULL, 0) == 0) { /* ether_type not known, print raw packet */ if (!ndo->ndo_eflag) fr_hdr_print(ndo, length + hdr_len, hdr_len, @@ -766,7 +765,7 @@ q933_print(netdissect_options *ndo, const u_char *p, u_int length) { const u_char *ptemp = p; - struct ie_tlv_header_t *ie_p; + const struct ie_tlv_header_t *ie_p; int olen; int is_ansi = 0; u_int codeset; @@ -814,7 +813,7 @@ q933_print(netdissect_options *ndo, /* Loop through the rest of IE */ while (length > sizeof(struct ie_tlv_header_t)) { - ie_p = (struct ie_tlv_header_t *)ptemp; + ie_p = (const struct ie_tlv_header_t *)ptemp; if (length < sizeof(struct ie_tlv_header_t) || length < sizeof(struct ie_tlv_header_t) + ie_p->ie_len) { if (ndo->ndo_vflag) { /* not bark if there is just a trailer */