suricata
decode-esp.c File Reference
#include "suricata-common.h"
#include "decode-esp.h"
#include "flow.h"
#include "util-validate.h"
#include "util-unittest.h"
Include dependency graph for decode-esp.c:

Go to the source code of this file.

Functions

int DecodeESP (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint16_t len)
 Function to decode IPSEC-ESP packets. More...
 
void DecodeESPRegisterTests (void)
 

Detailed Description

Decode Encapsulating Security Payload (ESP)

Definition in file decode-esp.c.

Function Documentation

◆ DecodeESP()

int DecodeESP ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint16_t  len 
)

Function to decode IPSEC-ESP packets.

Parameters
tvthread vars
dtvdecoder thread vars
ppacket
pktraw packet data
lenlength in bytes of pkt array
Return values
TM_ECODE_OKor TM_ECODE_FAILED on serious error

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

References DecodeThreadVars_::counter_esp, DEBUG_VALIDATE_BUG_ON, dtv, StatsIncr(), and tv.

Here is the call graph for this function:

◆ DecodeESPRegisterTests()

void DecodeESPRegisterTests ( void  )

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

References UtRegisterTest().

Here is the call graph for this function: