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...


#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...
 Get the sequence field off a packet. More...


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


uint32_t spi
uint32_t sequence

Macro Definition Documentation


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

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


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

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


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

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


#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.


#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.


#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.