Go to the documentation of this file.
24 #ifndef SURICATA_DECODE_SCTP_H
25 #define SURICATA_DECODE_SCTP_H
28 #define SCTP_HEADER_LEN 12
31 #define SCTP_CHUNK_HDR_LEN 4
39 #define SCTP_MAX_TRACKED_CHUNKS 16
42 #define SCTP_MAX_DATA_CHUNKS 16
45 #define SCTP_DATA_CHUNK_HDR_LEN 16
48 #define SCTP_CHUNK_TYPE_DATA 0x00
49 #define SCTP_CHUNK_TYPE_INIT 0x01
50 #define SCTP_CHUNK_TYPE_INIT_ACK 0x02
51 #define SCTP_CHUNK_TYPE_SACK 0x03
52 #define SCTP_CHUNK_TYPE_HEARTBEAT 0x04
53 #define SCTP_CHUNK_TYPE_HB_ACK 0x05
54 #define SCTP_CHUNK_TYPE_ABORT 0x06
55 #define SCTP_CHUNK_TYPE_SHUTDOWN 0x07
56 #define SCTP_CHUNK_TYPE_SHUTDOWN_ACK 0x08
57 #define SCTP_CHUNK_TYPE_ERROR 0x09
58 #define SCTP_CHUNK_TYPE_COOKIE_ECHO 0x0A
59 #define SCTP_CHUNK_TYPE_COOKIE_ACK 0x0B
60 #define SCTP_CHUNK_TYPE_ECNE 0x0C
61 #define SCTP_CHUNK_TYPE_CWR 0x0D
62 #define SCTP_CHUNK_TYPE_SHUTDOWN_COMPLETE 0x0E
63 #define SCTP_CHUNK_TYPE_FORWARD_TSN 0xC0
92 #define SCTP_GET_RAW_SRC_PORT(sctph) SCNtohs((sctph)->sh_sport)
93 #define SCTP_GET_RAW_DST_PORT(sctph) SCNtohs((sctph)->sh_dport)
94 #define SCTP_GET_RAW_VTAG(sctph) SCNtohl((sctph)->sh_vtag)
95 #define SCTP_GET_RAW_SUM(sctph) SCNtohl((sctph)->sh_sum)
uint8_t chunk_types[SCTP_MAX_TRACKED_CHUNKS]
struct SCTPHdr_ __attribute__((__packed__)) SCTPHdr
DNP3 link header.
uint16_t data_offsets[SCTP_MAX_DATA_CHUNKS]
#define SCTP_MAX_DATA_CHUNKS
#define SCTP_MAX_TRACKED_CHUNKS
struct SCTPVars_ SCTPVars
uint8_t tracked_chunk_cnt
void DecodeSCTPRegisterTests(void)
uint16_t data_lens[SCTP_MAX_DATA_CHUNKS]