Frag_ Struct Reference

#include <defrag.h>

Public Member Functions

 RB_ENTRY (Frag_) rb

Data Fields

uint16_t offset
uint32_t len
uint8_t hlen
uint8_t more_frags:4
uint8_t skip:4
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 46 of file defrag.h.

Member Function Documentation


Frag_::RB_ENTRY ( Frag_  )

Field Documentation

◆ data_len

uint16_t Frag_::data_len

Length of data.

Definition at line 61 of file defrag.h.

◆ data_offset

uint16_t Frag_::data_offset

Offset to the packet data.

Definition at line 60 of file defrag.h.

◆ frag_hdr_offset

uint16_t Frag_::frag_hdr_offset

Offset in the packet where the frag header starts.

Definition at line 57 of file defrag.h.

◆ hlen

uint8_t Frag_::hlen

The length of this fragments IP header.

Definition at line 52 of file defrag.h.

◆ len

uint32_t Frag_::len

The length of this fragment.

Definition at line 50 of file defrag.h.

◆ ltrim

uint16_t Frag_::ltrim

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

Definition at line 63 of file defrag.h.

◆ more_frags

uint8_t Frag_::more_frags

More frags?

Definition at line 54 of file defrag.h.

◆ offset

uint16_t Frag_::offset

The offset of this fragment, already multiplied by 8.

Definition at line 47 of file defrag.h.

Referenced by DefragRbFragCompare().

◆ pkt

uint8_t* Frag_::pkt

The actual packet.

Definition at line 66 of file defrag.h.

◆ skip

uint8_t Frag_::skip

Skip this fragment during re-assembly.

Definition at line 55 of file defrag.h.

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