suricata
|
#include "suricata-common.h"
#include "decode-ipv6.h"
#include "decode.h"
#include "defrag.h"
#include "util-print.h"
#include "util-validate.h"
#include "util-unittest-helper.h"
#include "packet.h"
Go to the source code of this file.
Functions | |
void | DecodeIPV6FragHeader (Packet *p, const uint8_t *pkt, uint16_t hdrextlen, uint16_t plen, uint16_t prev_hdrextlen) |
int | DecodeIPV6 (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint16_t len) |
void | DecodeIPV6RegisterTests (void) |
this function registers unit tests for IPV6 decoder More... | |
Decode IPv6
Definition in file decode-ipv6.c.
int DecodeIPV6 | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint16_t | len | ||
) |
Definition at line 564 of file decode-ipv6.c.
References DecodeThreadVars_::counter_ipv6, dtv, StatsIncr(), and tv.
Referenced by DecodeNull(), DecodePPPOESession(), and DecodeRaw().
void DecodeIPV6FragHeader | ( | Packet * | p, |
const uint8_t * | pkt, | ||
uint16_t | hdrextlen, | ||
uint16_t | plen, | ||
uint16_t | prev_hdrextlen | ||
) |
Definition at line 93 of file decode-ipv6.c.
References IPV6ExtHdrs_::fh_data_len, IPV6ExtHdrs_::fh_data_offset, IPV6ExtHdrs_::fh_header_offset, IPV6ExtHdrs_::fh_id, IPV6ExtHdrs_::fh_more_frags_set, IPV6ExtHdrs_::fh_nh, IPV6ExtHdrs_::fh_offset, IPV6ExtHdrs_::fh_prev_hdr_offset, GET_PKT_DATA, Packet_::ip6eh, SCLogDebug, and SCNtohl.
void DecodeIPV6RegisterTests | ( | void | ) |
this function registers unit tests for IPV6 decoder
Definition at line 901 of file decode-ipv6.c.
References UtRegisterTest().