tcpdump mailing list archives
[RESEND] [PATCH] Fix last byte cutoff in printing sctp data byte with -vv
From: "Chris Larson" <clarson () kergoth com>
Date: Thu, 6 Sep 2007 13:09:19 -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
--- print-sctp.c 7 Jul 2005 01:22:20 -0000 1.20
+++ print-sctp.c 6 Sep 2007 18:49:06 -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:
- [RESEND] [PATCH] Fix last byte cutoff in printing sctp data byte with -vv Chris Larson (Sep 06)
