|
suricata
|
#include "suricata-common.h"#include "decode-ipv6.h"#include "decode.h"#include "defrag.h"#include "flow-hash.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 | |
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 562 of file decode-ipv6.c.
References DecodeThreadVars_::counter_ipv6, ThreadVars_::decode_pq, DecodeGRE(), DecodeICMPV6(), DecodeSCTP(), DecodeTCP(), DecodeUDP(), Defrag(), dtv, ENGINE_SET_EVENT, GET_IPV6_DST_ADDR, GET_IPV6_SRC_ADDR, IPPROTO_GRE, IPPROTO_HIP, IPPROTO_IPIP, IPPROTO_MH, IPPROTO_SCTP, IPPROTO_SHIM6, IPV6_EXTHDR_ISSET_FH, IPV6_GET_L4PROTO, IPV6_GET_RAW_CLASS, IPV6_GET_RAW_FLOW, IPV6_GET_RAW_HLIM, IPV6_GET_RAW_NH, IPV6_GET_RAW_PLEN, IPV6_HEADER_LEN, IPV6_SET_L4PROTO, IPV6_UNKNOWN_NEXT_HEADER, IPV6_WITH_ICMPV4, len, PacketEnqueueNoLock(), PrintInet(), Packet_::proto, SCLogDebug, SCLogDebugEnabled(), StatsIncr(), TM_ECODE_FAILED, TM_ECODE_OK, tv, and unlikely.
Referenced by DecodeMPLS(), DecodeNSH(), 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 94 of file decode-ipv6.c.
References PacketL3::eh, 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, PacketL3::ip6, Packet_::l3, SCLogDebug, SCNtohl, and PacketL3::vars.
| void DecodeIPV6RegisterTests | ( | void | ) |
this function registers unit tests for IPV6 decoder
Definition at line 902 of file decode-ipv6.c.
References UtRegisterTest().
