NewLionwang / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Failed to parse SCTP when chunks are padded #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by vincent....@gmail.com on 8 Sep 2010 at 8:55

Attachments:

GoogleCodeExporter commented 8 years ago
I modified the patch to add a "pad" field to the chunk.

Original comment by vincent....@gmail.com on 8 Sep 2010 at 10:01

Attachments:

GoogleCodeExporter commented 8 years ago
Fix the padding computation.

Original comment by vincent....@gmail.com on 8 Sep 2010 at 11:04

Attachments: