OpenVPN
Data Fields
fragment Struct Reference

Structure for reassembling one incoming fragmented packet. More...

#include <fragment.h>

Collaboration diagram for fragment:
Collaboration graph
[legend]

Data Fields

bool defined
 Whether reassembly is currently taking place in this structure.
 
int max_frag_size
 Maximum size of each fragment.
 
unsigned int map
 Reassembly map for recording which fragments have been received.
 
time_t timestamp
 Timestamp for time-to-live purposes.
 
struct buffer buf
 Buffer in which received datagrams are reassembled.
 

Detailed Description

Structure for reassembling one incoming fragmented packet.

Definition at line 65 of file fragment.h.

Field Documentation

◆ buf

struct buffer fragment::buf

Buffer in which received datagrams are reassembled.

Definition at line 86 of file fragment.h.

Referenced by fragment_incoming(), fragment_list_buf_free(), fragment_list_buf_init(), fragment_outgoing(), fragment_prepend_flags(), and fragment_ready_to_send().

◆ defined

bool fragment::defined

Whether reassembly is currently taking place in this structure.

Definition at line 66 of file fragment.h.

Referenced by fragment_incoming(), fragment_list_get_buf(), and fragment_ttl_reap().

◆ map

unsigned int fragment::map

Reassembly map for recording which fragments have been received.

A bit array where each bit corresponds to a fragment. A 1 bit in element n means that the fragment n has been received. Needs to have at least MAX_FRAGS bits.

Definition at line 74 of file fragment.h.

Referenced by fragment_incoming().

◆ max_frag_size

int fragment::max_frag_size

Maximum size of each fragment.

Definition at line 69 of file fragment.h.

Referenced by fragment_incoming(), and optimal_fragment_size().

◆ timestamp

time_t fragment::timestamp

Timestamp for time-to-live purposes.

Definition at line 84 of file fragment.h.

Referenced by fragment_incoming(), and fragment_ttl_reap().


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