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

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

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

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

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

Referenced by DecodeSCTP().

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

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

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

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

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

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

Referenced by DecodeSCTP().

#define SCTP_HEADER_LEN   12

size of the packet header without any chunk headers

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

Function Documentation

void DecodeSCTPRegisterTests ( void  )

Variable Documentation

uint16_t sh_dport

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

uint16_t sh_sport

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

uint32_t sh_sum

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

uint32_t sh_vtag

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