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

Go to the source code of this file.

int DecodeNSH (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
 Function to decode NSH packets. More...
 
void DecodeNSHRegisterTests (void)
 

Detailed Description

Author
Carl Smith carl..nosp@m.smit.nosp@m.h@all.nosp@m.iedt.nosp@m.elesi.nosp@m.s.co.nosp@m..nz

Decodes Network Service Header (NSH)

Definition in file decode-nsh.c.

Function Documentation

◆ DecodeNSH()

int DecodeNSH ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint32_t  len 
)

Function to decode NSH packets.

Definition at line 46 of file decode-nsh.c.

References DecodeThreadVars_::counter_nsh, DEBUG_VALIDATE_BUG_ON, dtv, ENGINE_SET_INVALID_EVENT, len, NSH_HEADER_TOO_SMALL, StatsIncr(), TM_ECODE_FAILED, and tv.

Here is the call graph for this function:

◆ DecodeNSHRegisterTests()

void DecodeNSHRegisterTests ( void  )

Definition at line 283 of file decode-nsh.c.

References UtRegisterTest().

Here is the call graph for this function: