OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWin::ClientConfig Class Reference

#include <clientconfig.hpp>

Inheritance diagram for openvpn::TunWin::ClientConfig:
[legend]
Collaboration diagram for openvpn::TunWin::ClientConfig:
[legend]

Public Types

typedef RCPtr< ClientConfigPtr
 
- Public Types inherited from openvpn::TunClientFactory
typedef RCPtr< TunClientFactoryPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

TunWin::SetupBase::Ptr new_setup_obj (openvpn_io::io_context &io_context)
 
TunClient::Ptr new_tun_client_obj (openvpn_io::io_context &io_context, TunClientParent &parent, TransportClient *transcli) override
 
bool supports_epoch_data () override
 
void finalize (const bool disconnected) override
 
bool layer_2_supported () const override
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Static Public Member Functions

static Ptr new_obj ()
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Public Attributes

TunProp::Config tun_prop
 
int n_parallel = 8
 
TunWin::Type tun_type = TunWin::TapWindows6
 
bool allow_local_dns_resolvers = false
 
Frame::Ptr frame
 
SessionStats::Ptr stats
 
Stopstop = nullptr
 
TunPersist::Ptr tun_persist
 
TunWin::SetupFactory::Ptr tun_setup_factory
 

Friends

class Client
 

Detailed Description

Definition at line 42 of file clientconfig.hpp.

Member Typedef Documentation

◆ Ptr

Member Function Documentation

◆ finalize()

void openvpn::TunWin::ClientConfig::finalize ( const bool  disconnected)
inlineoverridevirtual

Reimplemented from openvpn::TunClientFactory.

Definition at line 85 of file clientconfig.hpp.

◆ layer_2_supported()

bool openvpn::TunWin::ClientConfig::layer_2_supported ( ) const
inlineoverridevirtual

Reimplemented from openvpn::TunClientFactory.

Definition at line 91 of file clientconfig.hpp.

◆ new_obj()

static Ptr openvpn::TunWin::ClientConfig::new_obj ( )
inlinestatic

Definition at line 71 of file clientconfig.hpp.

Here is the caller graph for this function:

◆ new_setup_obj()

TunWin::SetupBase::Ptr openvpn::TunWin::ClientConfig::new_setup_obj ( openvpn_io::io_context &  io_context)
inline

Definition at line 63 of file clientconfig.hpp.

◆ new_tun_client_obj()

TunClient::Ptr openvpn::TunWin::ClientConfig::new_tun_client_obj ( openvpn_io::io_context &  io_context,
TunClientParent parent,
TransportClient transcli 
)
inlineoverridevirtual

Implements openvpn::TunClientFactory.

Definition at line 433 of file tuncli.hpp.

◆ supports_epoch_data()

bool openvpn::TunWin::ClientConfig::supports_epoch_data ( )
inlineoverridevirtual

Return whether this tun implementation will support data v3 features (AEAD tag at the end and combined 16 bit epoch id + 48 bit packet counters).

This is more a property of the data encryption layer than of the tun device but since all of our DCO encryptions are setup with the tun setup, we also make it the responsibility of the tun client to signal v3 data layer support.

Implements openvpn::TunClientFactory.

Definition at line 80 of file clientconfig.hpp.

Friends And Related Symbol Documentation

◆ Client

friend class Client
friend

Definition at line 44 of file clientconfig.hpp.

Member Data Documentation

◆ allow_local_dns_resolvers

bool openvpn::TunWin::ClientConfig::allow_local_dns_resolvers = false

Definition at line 52 of file clientconfig.hpp.

◆ frame

Frame::Ptr openvpn::TunWin::ClientConfig::frame

Definition at line 54 of file clientconfig.hpp.

◆ n_parallel

int openvpn::TunWin::ClientConfig::n_parallel = 8

Definition at line 50 of file clientconfig.hpp.

◆ stats

SessionStats::Ptr openvpn::TunWin::ClientConfig::stats

Definition at line 55 of file clientconfig.hpp.

◆ stop

Stop* openvpn::TunWin::ClientConfig::stop = nullptr

Definition at line 57 of file clientconfig.hpp.

◆ tun_persist

TunPersist::Ptr openvpn::TunWin::ClientConfig::tun_persist

Definition at line 59 of file clientconfig.hpp.

◆ tun_prop

TunProp::Config openvpn::TunWin::ClientConfig::tun_prop

Definition at line 49 of file clientconfig.hpp.

◆ tun_setup_factory

TunWin::SetupFactory::Ptr openvpn::TunWin::ClientConfig::tun_setup_factory

Definition at line 61 of file clientconfig.hpp.

◆ tun_type

TunWin::Type openvpn::TunWin::ClientConfig::tun_type = TunWin::TapWindows6

Definition at line 51 of file clientconfig.hpp.


The documentation for this class was generated from the following files: