dpkt
dpkt copied to clipboard
Failed to parse SCTP when chunks are padded
From [email protected] on September 08, 2010 16:55:17
The problem is that the total length of a SCTP chunk MUST be a multiple of 4 bytes but the actual decoder just use the length field of the chunk and ignore the padding bytes.
Attached files: sctp.pcap: a pcap file which contains a SCTP packet that the actual decoder fails to parse. sctp.patch: a patch which, I hope, solve the problem.
Attachment: sctp.pcap sctp.patch
Original issue: http://code.google.com/p/dpkt/issues/detail?id=47
From [email protected] on September 08, 2010 15:01:20
I modified the patch to add a "pad" field to the chunk.
Attachment: sctp.patch
From [email protected] on September 08, 2010 16:04:36
Fix the padding computation.
Attachment: sctp.patch