suricata
decode-esp.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  ESPHdr_
 ESP Header. More...
 

Macros

#define ESP_HEADER_LEN   8
 size of the ESP header More...
 
#define ESP_GET_RAW_SPI(esph)   SCNtohl((esph)->spi)
 
#define ESP_GET_RAW_SEQUENCE(esph)   SCNtohl((esph)->sequence)
 
#define ESP_GET_SPI(p)   ESP_GET_RAW_SPI(p->esph)
 Get the spi field off a packet. More...
 
#define ESP_GET_SEQUENCE(p)   ESP_GET_RAW_SEQUENCE(p->esph)
 Get the sequence field off a packet. More...
 
#define CLEAR_ESP_PACKET(p)
 

Functions

struct ESPHdr_ __attribute__ ((__packed__)) ESPHdr
 ESP Header. More...
 
void DecodeESPRegisterTests (void)
 

Variables

uint32_t spi
 
uint32_t sequence
 

Macro Definition Documentation

◆ CLEAR_ESP_PACKET

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

Definition at line 44 of file decode-esp.h.

◆ ESP_GET_RAW_SEQUENCE

#define ESP_GET_RAW_SEQUENCE (   esph)    SCNtohl((esph)->sequence)

Definition at line 30 of file decode-esp.h.

◆ ESP_GET_RAW_SPI

#define ESP_GET_RAW_SPI (   esph)    SCNtohl((esph)->spi)

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

◆ ESP_GET_SEQUENCE

#define ESP_GET_SEQUENCE (   p)    ESP_GET_RAW_SEQUENCE(p->esph)

Get the sequence field off a packet.

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

◆ ESP_GET_SPI

#define ESP_GET_SPI (   p)    ESP_GET_RAW_SPI(p->esph)

Get the spi field off a packet.

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

◆ ESP_HEADER_LEN

#define ESP_HEADER_LEN   8

size of the ESP header

Definition at line 27 of file decode-esp.h.

Function Documentation

◆ DecodeESPRegisterTests()

void DecodeESPRegisterTests ( void  )

Definition at line 195 of file decode-esp.c.

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

◆ sequence

uint32_t sequence

< ESP Security Parameters Index

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

◆ spi

uint32_t spi

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