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. More...
 
int max_frag_size
 Maximum size of each fragment. More...
 
unsigned int map
 Reassembly map for recording which fragments have been received. More...
 
time_t timestamp
 Timestamp for time-to-live purposes. More...
 
struct buffer buf
 Buffer in which received datagrams are reassembled. More...
 

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(), and fragment_list_buf_init().

◆ 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().

◆ 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: