OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MacDNS::Config Class Reference

#include <macdns.hpp>

Inheritance diagram for openvpn::MacDNS::Config:
[legend]
Collaboration diagram for openvpn::MacDNS::Config:
[legend]

Public Types

typedef RCPtr< ConfigPtr
 
- Public Types inherited from openvpn::RC< thread_safe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 Config ()=default
 
 Config (const TunBuilderCapture &settings)
 
std::string to_string () const
 
- Public Member Functions inherited from openvpn::RC< thread_safe_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.
 

Public Attributes

bool redirect_dns = false
 
int search_order = 5000
 
CF::Array server_addresses
 
CF::Array resolve_domains
 
CF::Array search_domains
 

Static Private Member Functions

static CF::Array get_server_addresses (const DnsServer &server)
 
static CF::Array get_resolve_domains (const DnsServer &server)
 
static CF::Array get_search_domains (const TunBuilderCapture &settings)
 

Additional Inherited Members

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

Detailed Description

Definition at line 42 of file macdns.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 45 of file macdns.hpp.

Constructor & Destructor Documentation

◆ Config() [1/2]

openvpn::MacDNS::Config::Config ( )
default

◆ Config() [2/2]

openvpn::MacDNS::Config::Config ( const TunBuilderCapture settings)
inline

Definition at line 49 of file macdns.hpp.

Member Function Documentation

◆ get_resolve_domains()

static CF::Array openvpn::MacDNS::Config::get_resolve_domains ( const DnsServer server)
inlinestaticprivate

Definition at line 119 of file macdns.hpp.

Here is the caller graph for this function:

◆ get_search_domains()

static CF::Array openvpn::MacDNS::Config::get_search_domains ( const TunBuilderCapture settings)
inlinestaticprivate

Definition at line 129 of file macdns.hpp.

Here is the caller graph for this function:

◆ get_server_addresses()

static CF::Array openvpn::MacDNS::Config::get_server_addresses ( const DnsServer server)
inlinestaticprivate

Definition at line 109 of file macdns.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::MacDNS::Config::to_string ( ) const
inline

Definition at line 91 of file macdns.hpp.

Member Data Documentation

◆ redirect_dns

bool openvpn::MacDNS::Config::redirect_dns = false

Definition at line 102 of file macdns.hpp.

◆ resolve_domains

CF::Array openvpn::MacDNS::Config::resolve_domains

Definition at line 105 of file macdns.hpp.

◆ search_domains

CF::Array openvpn::MacDNS::Config::search_domains

Definition at line 106 of file macdns.hpp.

◆ search_order

int openvpn::MacDNS::Config::search_order = 5000

Definition at line 103 of file macdns.hpp.

◆ server_addresses

CF::Array openvpn::MacDNS::Config::server_addresses

Definition at line 104 of file macdns.hpp.


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