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

Go to the source code of this file.

Macros

#define CASE_CODE(t, r)   case (t): return r; case (r): return t;
 

Functions

int ICMPv6GetCounterpart (uint8_t type)
 
int DecodeICMPV6 (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
 Decode ICMPV6 packets and fill the Packet with the decoded info. More...
 
void DecodeICMPV6RegisterTests (void)
 Registers ICMPV6 unit tests. More...
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Decode ICMPv6

Definition in file decode-icmpv6.c.

Macro Definition Documentation

◆ CASE_CODE

#define CASE_CODE (   t,
 
)    case (t): return r; case (r): return t;

Function Documentation

◆ DecodeICMPV6()

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

Decode ICMPV6 packets and fill the Packet with the decoded info.

Parameters
tvPointer to the thread variables
dtvPointer to the decode thread variables
pPointer to the packet we are filling
pktPointer to the raw packet buffer
lenthe len of the rest of the packet not processed yet
Return values
voidNo return value

Definition at line 177 of file decode-icmpv6.c.

◆ DecodeICMPV6RegisterTests()

void DecodeICMPV6RegisterTests ( void  )

Registers ICMPV6 unit tests.

Todo:
More ICMPv6 tests

Definition at line 1535 of file decode-icmpv6.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ ICMPv6GetCounterpart()