suricata
Frag_ Struct Reference

#include <defrag.h>

Public Member Functions

 RB_ENTRY (Frag_) rb
 

Data Fields

uint16_t offset
 
uint16_t len
 
uint8_t hlen
 
uint8_t more_frags:4
 
uint8_t skip:4
 
uint16_t ip_hdr_offset
 
uint16_t frag_hdr_offset
 
uint16_t data_offset
 
uint16_t data_len
 
uint16_t ltrim
 
uint8_t * pkt
 

Detailed Description

Storage for an individual fragment.

Definition at line 44 of file defrag.h.

Member Function Documentation

Frag_::RB_ENTRY ( Frag_  )

Field Documentation

uint16_t Frag_::data_len

Length of data.

Definition at line 61 of file defrag.h.

Referenced by DefragRbFragCompare(), and DefragTrackerFreeFrags().

uint16_t Frag_::data_offset

Offset to the packet data.

Definition at line 60 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint16_t Frag_::frag_hdr_offset

Offset in the packet where the frag header starts.

Definition at line 57 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint8_t Frag_::hlen

The length of this fragments IP header.

Definition at line 50 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint16_t Frag_::ip_hdr_offset

Offset in the packet where the IP header starts.

Definition at line 55 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint16_t Frag_::len

The length of this fragment.

Definition at line 48 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint16_t Frag_::ltrim

Number of leading bytes to trim when re-assembling the packet.

Definition at line 63 of file defrag.h.

Referenced by DefragRbFragCompare(), and DefragTrackerFreeFrags().

uint8_t Frag_::more_frags

More frags?

Definition at line 52 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint16_t Frag_::offset

The offset of this fragment, already multiplied by 8.

Definition at line 45 of file defrag.h.

Referenced by DefragRbFragCompare(), and DefragTrackerFreeFrags().

uint8_t* Frag_::pkt

The actual packet.

Definition at line 66 of file defrag.h.

Referenced by DefragTrackerFreeFrags().

uint8_t Frag_::skip

Skip this fragment during re-assembly.

Definition at line 53 of file defrag.h.

Referenced by DefragRbFragCompare(), and DefragTrackerFreeFrags().


The documentation for this struct was generated from the following file: