suricata
|
#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"
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... | |
Decode ICMPv6
Definition in file decode-icmpv6.c.
#define CASE_CODE | ( | t, | |
r | |||
) | case (t): return r; case (r): return t; |
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.
tv | Pointer to the thread variables |
dtv | Pointer to the decode thread variables |
p | Pointer to the packet we are filling |
pkt | Pointer to the raw packet buffer |
len | the len of the rest of the packet not processed yet |
void | No return value |
Definition at line 177 of file decode-icmpv6.c.
void DecodeICMPV6RegisterTests | ( | void | ) |
Registers ICMPV6 unit tests.
Definition at line 1535 of file decode-icmpv6.c.
References UtRegisterTest().
int ICMPv6GetCounterpart | ( | uint8_t | type | ) |
type | counterpart type or -1 |
Definition at line 145 of file decode-icmpv6.c.
References CASE_CODE, CERT_PATH_ADVERT, CERT_PATH_SOLICIT, DUPL_ADDR_CONFIRM, DUPL_ADDR_REQUEST, HOME_AGENT_AD_REPLY, HOME_AGENT_AD_REQUEST, ICMP6_ECHO_REPLY, ICMP6_ECHO_REQUEST, ICMP6_NI_QUERY, ICMP6_NI_REPLY, MC_ROUTER_ADVERT, MC_ROUTER_SOLICIT, MLD_LISTENER_QUERY, MLD_LISTENER_REPORT, MOBILE_PREFIX_ADVERT, MOBILE_PREFIX_SOLICIT, ND_NEIGHBOR_ADVERT, ND_NEIGHBOR_SOLICIT, ND_ROUTER_ADVERT, ND_ROUTER_SOLICIT, and type.