suricata
decode-sctp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SCTPHdr_
 

Macros

#define SCTP_HEADER_LEN   12
 
#define SCTP_GET_RAW_SRC_PORT(sctph)   SCNtohs((sctph)->sh_sport)
 
#define SCTP_GET_RAW_DST_PORT(sctph)   SCNtohs((sctph)->sh_dport)
 
#define SCTP_GET_SRC_PORT(p)   SCTP_GET_RAW_SRC_PORT(p->sctph)
 
#define SCTP_GET_DST_PORT(p)   SCTP_GET_RAW_DST_PORT(p->sctph)
 
#define CLEAR_SCTP_PACKET(p)
 

Functions

struct SCTPHdr_ __attribute__ ((__packed__)) SCTPHdr
 DNP3 link header. More...
 
void DecodeSCTPRegisterTests (void)
 

Variables

uint16_t sh_sport
 
uint16_t sh_dport
 
uint32_t sh_vtag
 
uint32_t sh_sum
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file decode-sctp.h.

Macro Definition Documentation

◆ CLEAR_SCTP_PACKET

#define CLEAR_SCTP_PACKET (   p)
Value:
{ \
(p)->sctph = NULL; \
} while (0)

Definition at line 46 of file decode-sctp.h.

◆ SCTP_GET_DST_PORT

#define SCTP_GET_DST_PORT (   p)    SCTP_GET_RAW_DST_PORT(p->sctph)

Definition at line 36 of file decode-sctp.h.

◆ SCTP_GET_RAW_DST_PORT

#define SCTP_GET_RAW_DST_PORT (   sctph)    SCNtohs((sctph)->sh_dport)

Definition at line 33 of file decode-sctp.h.

◆ SCTP_GET_RAW_SRC_PORT

#define SCTP_GET_RAW_SRC_PORT (   sctph)    SCNtohs((sctph)->sh_sport)

Definition at line 32 of file decode-sctp.h.

◆ SCTP_GET_SRC_PORT

#define SCTP_GET_SRC_PORT (   p)    SCTP_GET_RAW_SRC_PORT(p->sctph)

Definition at line 35 of file decode-sctp.h.

◆ SCTP_HEADER_LEN

#define SCTP_HEADER_LEN   12

size of the packet header without any chunk headers

Definition at line 29 of file decode-sctp.h.

Function Documentation

◆ DecodeSCTPRegisterTests()

void DecodeSCTPRegisterTests ( void  )

Variable Documentation

◆ sh_dport

uint16_t sh_dport

Definition at line 1 of file decode-sctp.h.

◆ sh_sport

uint16_t sh_sport

Definition at line 0 of file decode-sctp.h.

◆ sh_sum

uint32_t sh_sum

Definition at line 3 of file decode-sctp.h.

◆ sh_vtag

uint32_t sh_vtag

Definition at line 2 of file decode-sctp.h.