OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TCPHeader Struct Reference

#include <tcp.hpp>

Public Types

enum  { OPT_EOL = 0 , OPT_NOP = 1 , OPT_MAXSEG = 2 , OPTLEN_MAXSEG = 4 }
 
enum  { FLAG_SYN = 1 << 1 }
 

Static Public Member Functions

static unsigned int length (const std::uint8_t doff_res)
 

Public Attributes

std::uint16_t source
 
std::uint16_t dest
 
std::uint32_t seq
 
std::uint32_t ack_seq
 
std::uint8_t doff_res
 
std::uint8_t flags
 
std::uint16_t window
 
std::uint16_t check
 
std::uint16_t urgent_p
 

Detailed Description

Definition at line 22 of file tcp.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OPT_EOL 
OPT_NOP 
OPT_MAXSEG 
OPTLEN_MAXSEG 

Definition at line 40 of file tcp.hpp.

◆ anonymous enum

anonymous enum
Enumerator
FLAG_SYN 

Definition at line 48 of file tcp.hpp.

Member Function Documentation

◆ length()

static unsigned int openvpn::TCPHeader::length ( const std::uint8_t  doff_res)
inlinestatic

Definition at line 24 of file tcp.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ ack_seq

std::uint32_t openvpn::TCPHeader::ack_seq

Definition at line 32 of file tcp.hpp.

◆ check

std::uint16_t openvpn::TCPHeader::check

Definition at line 36 of file tcp.hpp.

◆ dest

std::uint16_t openvpn::TCPHeader::dest

Definition at line 30 of file tcp.hpp.

◆ doff_res

std::uint8_t openvpn::TCPHeader::doff_res

Definition at line 33 of file tcp.hpp.

◆ flags

std::uint8_t openvpn::TCPHeader::flags

Definition at line 34 of file tcp.hpp.

◆ seq

std::uint32_t openvpn::TCPHeader::seq

Definition at line 31 of file tcp.hpp.

◆ source

std::uint16_t openvpn::TCPHeader::source

Definition at line 29 of file tcp.hpp.

◆ urgent_p

std::uint16_t openvpn::TCPHeader::urgent_p

Definition at line 37 of file tcp.hpp.

◆ window

std::uint16_t openvpn::TCPHeader::window

Definition at line 35 of file tcp.hpp.


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