tcpdump mailing list archives
[PATCH] Fix last byte cutoff in printing sctp data byte with -vv
From: Chris Larson <clarson () mvista com>
Date: Tue, 14 Aug 2007 11:21:27 -0700
Greetings, The following fixes a tiny bug in the sctp printing which cut off the last byte of the data in a DATA chunk. Seems like a copy/paste error, as just above this is a check of the chunk size, and sctp requires a data chunk to have at least -1- data byte. Thanks, -- Chris Larson - clarson at kergoth dot com Dedicated Engineer - MontaVista - clarson at mvista dot com Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus diff -u -p -u -r1.20 print-sctp.c --- print-sctp.c 7 Jul 2005 01:22:20 -0000 1.20 +++ print-sctp.c 14 Aug 2007 18:16:11 -0000 @@ -213,7 +213,7 @@ void sctp_print(const u_char *bp, default_print(payloadPtr, htons(chunkDescPtr->chunkLength) - (sizeof(struct sctpDataPart)+ - sizeof(struct sctpChunkDesc)+1)); + sizeof(struct sctpChunkDesc))); } else printf("]"); } - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [PATCH] Fix last byte cutoff in printing sctp data byte with -vv Chris Larson (Aug 18)
- Re: [PATCH] Fix last byte cutoff in printing sctp data byte with -vv Guy Harris (Sep 13)
- <Possible follow-ups>
- [PATCH] Fix last byte cutoff in printing sctp data byte with -vv Chris Larson (Aug 18)