Skip to content

Wrong assumptions on SCTP data chunk and design issue.. #347

@zecke

Description

@zecke

In one SCTP package we can have multiple SCTPData chunks. The current code doesn't support it and will provide all other chunks as payload. I removed the special case of decodeSCTPChunk and then put a Payload into the SCTPData struct. One issue is that the test data is kind of invalid...

The fundamental issue is that the structure of SCTP is like this.

   IP
  SCTP
  SCTPDataChunk
     Payload
  SCTPDataChunk
     Payload

While p.NextDecoder will just be linear. We would need to have some kind of special "Payload" so we can jump to the next SCTPDataChunk. Alternatively be always eager for SCTP...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions