MCPcopy
hub / github.com/google/gopacket / SCTPUnknownChunkType

Struct SCTPUnknownChunkType

layers/sctp.go:170–173  ·  view source on GitHub ↗

SCTPUnknownChunkType is the layer type returned when we don't recognize the chunk type. Since there's a length in a known location, we can skip over it even if we don't know what it is, and continue parsing the rest of the chunks. This chunk is stored as an ErrorLayer in the packet.

Source from the content-addressed store, hash-verified

168// it even if we don't know what it is, and continue parsing the rest of the
169// chunks. This chunk is stored as an ErrorLayer in the packet.
170type SCTPUnknownChunkType struct {
171 SCTPChunk
172 bytes []byte
173}
174
175func decodeSCTPChunkTypeUnknown(data []byte, p gopacket.PacketBuilder) error {
176 chunk, err := decodeSCTPChunk(data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected