X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/13247041388fef082829d0ca1d89fe1c0adc6db6..c0de704a5331dd3b9bd060dd0969163025186c0e:/print-sctp.c diff --git a/print-sctp.c b/print-sctp.c index a491481b..d38cfde2 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -35,7 +35,7 @@ #ifndef lint static const char rcsid[] _U_ = -"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.18 2005-05-05 23:08:43 guy Exp $ (NETLAB/PEL)"; +"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.20 2005-07-07 01:22:20 guy Exp $ (NETLAB/PEL)"; #endif #ifdef HAVE_CONFIG_H @@ -146,7 +146,7 @@ void sctp_print(const u_char *bp, /* beginning of sctp packet */ break; } - TCHECK2(*(((u_int8_t *)chunkDescPtr) + chunkLength), chunkLength); + TCHECK2(*((u_int8_t *)chunkDescPtr), chunkLength); chunkEnd = ((const u_char*)chunkDescPtr + chunkLength); align=chunkLength % 4; @@ -200,7 +200,7 @@ void sctp_print(const u_char *bp, /* beginning of sctp packet */ printf("[Payload"); - if (!xflag && !qflag) { + if (!suppress_default_print) { payloadPtr = (const u_char *) (++dataHdrPtr); printf(":"); if (htons(chunkDescPtr->chunkLength) <