decode-icmpv4.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-ipv4.h"
#include "decode-icmpv4.h"
#include "flow.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-debug.h"
#include "util-print.h"
Include dependency graph for decode-icmpv4.c:

Go to the source code of this file.


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


int DecodeICMPV4 (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
 Main ICMPv4 decoding function. More...
int ICMPv4GetCounterpart (uint8_t type)
void DecodeICMPV4RegisterTests (void)
 Registers ICMPV4 unit test. More...

Detailed Description

Victor Julien

Decode ICMPv4

Definition in file decode-icmpv4.c.

Macro Definition Documentation


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

Function Documentation

◆ DecodeICMPV4()

◆ DecodeICMPV4RegisterTests()

void DecodeICMPV4RegisterTests ( void  )

Registers ICMPV4 unit test.

Definition at line 825 of file decode-icmpv4.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ ICMPv4GetCounterpart()

int ICMPv4GetCounterpart ( uint8_t  type)
Return values
typecounterpart type or -1

Definition at line 351 of file decode-icmpv4.c.

References CASE_CODE, and type.

Referenced by DecodeICMPV4().

Here is the caller graph for this function: