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.
| 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. |
| 170 | type SCTPUnknownChunkType struct { |
| 171 | SCTPChunk |
| 172 | bytes []byte |
| 173 | } |
| 174 | |
| 175 | func decodeSCTPChunkTypeUnknown(data []byte, p gopacket.PacketBuilder) error { |
| 176 | chunk, err := decodeSCTPChunk(data) |
nothing calls this directly
no outgoing calls
no test coverage detected