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

#include <capture.hpp>

Inheritance diagram for openvpn::TunBuilderCapture:
[legend]
Collaboration diagram for openvpn::TunBuilderCapture:
[legend]

Classes

class  ProxyAutoConfigURL
 Class for handling Proxy Auto-Configuration (PAC) URLs. More...
 
class  ProxyBypass
 Class for managing proxy bypass host configurations. More...
 
class  ProxyHostPort
 Host and port configuration for proxy connections. More...
 
class  RemoteAddress
 Represents a remote IP address with IPv4/IPv6 designation. More...
 
class  RerouteGW
 Class for handling gateway rerouting configuration. More...
 
class  Route
 Route class that must use canonical form. More...
 
class  RouteAddress
 Route address class that may use non-canonical form. More...
 
class  RouteBase
 Base class for route-related functionality representing a network route. More...
 
class  WINSServer
 Windows Internet Name Service (WINS) server configuration. More...
 

Public Types

using Ptr = RCPtr< TunBuilderCapture >
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

bool tun_builder_set_remote_address (const std::string &address, bool ipv6) override
 Sets the remote address for the TUN interface.
 
bool tun_builder_add_address (const std::string &address, int prefix_length, const std::string &gateway, bool ipv6, bool net30) override
 Adds a local address to the TUN interface.
 
bool tun_builder_reroute_gw (bool ipv4, bool ipv6, unsigned int flags) override
 Configures global gateway rerouting through the VPN tunnel.
 
bool tun_builder_set_route_metric_default (int metric) override
 Sets the default route metric for VPN routes.
 
bool tun_builder_add_route (const std::string &address, int prefix_length, int metric, bool ipv6) override
 Adds a route to the tunnel.
 
bool tun_builder_exclude_route (const std::string &address, int prefix_length, int metric, bool ipv6) override
 Excludes a route from the tunnel.
 
bool tun_builder_set_dns_options (const DnsOptions &dns) override
 Set DNS options for use with tun builder.
 
bool tun_builder_set_layer (int layer) override
 Sets the tunnel's network layer.
 
bool tun_builder_set_mtu (int mtu) override
 Sets the Maximum Transmission Unit (MTU) for the tunnel.
 
bool tun_builder_set_session_name (const std::string &name) override
 Sets a descriptive name for the VPN session.
 
bool tun_builder_add_proxy_bypass (const std::string &bypass_host) override
 Adds a host to bypass proxy settings.
 
bool tun_builder_set_proxy_auto_config_url (const std::string &url) override
 Sets the URL for a proxy auto-configuration (PAC) file.
 
bool tun_builder_set_proxy_http (const std::string &host, int port) override
 Sets the HTTP proxy for the tunnel.
 
bool tun_builder_set_proxy_https (const std::string &host, int port) override
 Sets the HTTPS proxy for the tunnel.
 
bool tun_builder_add_wins_server (const std::string &address) override
 Adds a WINS server to the tunnel configuration.
 
bool tun_builder_set_allow_family (int af, bool allow) override
 Sets whether to allow a specific address family in the tunnel.
 
bool tun_builder_set_allow_local_dns (bool allow) override
 Sets whether to allow local DNS resolution.
 
void reset_tunnel_addresses ()
 Resets all tunnel addresses.
 
void reset_dns_options ()
 Resets DNS options to default values.
 
const RouteAddressvpn_ipv4 () const
 Gets the IPv4 tunnel address.
 
const RouteAddressvpn_ipv6 () const
 Gets the IPv6 tunnel address.
 
const RouteAddressvpn_ip (const IP::Addr::Version v) const
 Gets the tunnel address for the specified IP version.
 
void validate () const
 Validates the configuration of the tunnel.
 
std::string to_string () const
 Converts the tunnel configuration to a human-readable string representation.
 
Json::Value to_json () const
 Serializes the tunnel configuration to a JSON object.
 
- Public Member Functions inherited from openvpn::TunBuilderBase
virtual bool tun_builder_new ()
 Callback to construct a new TunBuilder. This function should be called first.
 
virtual int tun_builder_establish ()
 Callback to establish the VPN tunnel.
 
virtual bool tun_builder_persist ()
 Determines if the TUN interface can be persisted.
 
virtual std::vector< std::string > tun_builder_get_local_networks (bool ipv6)
 Retrieves a list of local networks to exclude from the VPN network.
 
virtual void tun_builder_establish_lite ()
 Indicates a reconnection with persisted TUN state.
 
virtual void tun_builder_teardown (bool disconnect)
 Indicates that tunnel is being torn down.
 
virtual ~TunBuilderBase ()=default
 Virtual destructor for the TunBuilderBase class.
 
- 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 TunBuilderCapture::Ptr from_json (const Json::Value &root)
 Creates a TunBuilderCapture instance from a JSON representation.
 
- 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

std::string session_name
 
int mtu = 0
 
Layer layer {Layer::OSI_LAYER_3}
 
RemoteAddress remote_address
 
std::vector< RouteAddresstunnel_addresses
 
int tunnel_address_index_ipv4 = -1
 
int tunnel_address_index_ipv6 = -1
 
RerouteGW reroute_gw
 
bool block_ipv4 = false
 
bool block_ipv6 = false
 
bool block_outside_dns = false
 
int route_metric_default = -1
 
std::vector< Routeadd_routes
 
std::vector< Routeexclude_routes
 
DnsOptions dns_options
 
std::vector< ProxyBypassproxy_bypass
 
ProxyAutoConfigURL proxy_auto_config_url
 
ProxyHostPort http_proxy
 
ProxyHostPort https_proxy
 
std::vector< WINSServerwins_servers
 

Static Public Attributes

static constexpr int mtu_ipv4_maximum = 65'535
 

Private Member Functions

bool validate_tunnel_index (const int index) const
 Checks if a tunnel index is valid.
 
void validate_tunnel_address_indices (const std::string &title) const
 Validates tunnel address indices for both IPv4 and IPv6.
 
void validate_mtu (const std::string &title) const
 Validates that the MTU value is within an acceptable range.
 
void validate_layer (const std::string &title) const
 Validates that the network layer is defined.
 

Static Private Member Functions

template<typename LIST >
static void render_list (std::ostream &os, const std::string &title, const LIST &list)
 Renders a list of elements to an output stream with a title.
 
template<typename LIST >
static void validate_list (const LIST &list, const std::string &title)
 Validates each element in a list.
 

Detailed Description

Definition at line 41 of file capture.hpp.

Member Typedef Documentation

◆ Ptr

Member Function Documentation

◆ from_json()

static TunBuilderCapture::Ptr openvpn::TunBuilderCapture::from_json ( const Json::Value &  root)
inlinestatic

Creates a TunBuilderCapture instance from a JSON representation.

Parses a JSON object to reconstruct a complete tunnel configuration, validating required fields and populating all configuration parameters. Uses helper methods from the json namespace to ensure proper type conversion and validation.

Parameters
rootThe JSON object containing the tunnel configuration.
Returns
A shared pointer to a newly created TunBuilderCapture instance.

Definition at line 1049 of file capture.hpp.

Here is the caller graph for this function:

◆ render_list()

template<typename LIST >
static void openvpn::TunBuilderCapture::render_list ( std::ostream &  os,
const std::string &  title,
const LIST &  list 
)
inlinestaticprivate

Renders a list of elements to an output stream with a title.

Outputs the title followed by each element in the list on a new line with indentation. Each element is rendered using its to_string() method.

Parameters
osThe output stream to write to.
titleThe title to display before the list.
listThe list of elements to render.
Template Parameters
LISTThe list type which must contain elements with a to_string() method.

Definition at line 1115 of file capture.hpp.

Here is the caller graph for this function:

◆ reset_dns_options()

void openvpn::TunBuilderCapture::reset_dns_options ( )
inline

Resets DNS options to default values.

Clears all DNS configuration options.

Definition at line 892 of file capture.hpp.

Here is the caller graph for this function:

◆ reset_tunnel_addresses()

void openvpn::TunBuilderCapture::reset_tunnel_addresses ( )
inline

Resets all tunnel addresses.

Clears the list of tunnel addresses and resets IPv4 and IPv6 address indices to invalid values.

Definition at line 881 of file capture.hpp.

Here is the caller graph for this function:

◆ to_json()

Json::Value openvpn::TunBuilderCapture::to_json ( ) const
inline

Serializes the tunnel configuration to a JSON object.

Converts all tunnel parameters into a JSON representation, including session details, network configuration, routing options, and proxy settings. Optional settings are only included in the JSON if they are defined.

Returns
A Json::Value object containing the serialized tunnel configuration.

Definition at line 1011 of file capture.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::TunBuilderCapture::to_string ( ) const
inline

Converts the tunnel configuration to a human-readable string representation.

Creates a formatted multi-line string containing all configured tunnel parameters including session name, layer, MTU, addresses, routing options, DNS settings, and proxy configurations. Only displays optional settings if they are defined.

Returns
A string representation of the tunnel configuration.

Definition at line 968 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_add_address()

bool openvpn::TunBuilderCapture::tun_builder_add_address ( const std::string &  address,
int  prefix_length,
const std::string &  gateway,
bool  ipv6,
bool  net30 
)
inlineoverridevirtual

Adds a local address to the TUN interface.

Configures a local IP address for the virtual network interface with specified prefix length and gateway. Maintains separate indices for IPv4 and IPv6 addresses.

Parameters
addressThe local IP address to assign to the TUN interface.
prefix_lengthThe subnet prefix length (e.g., 24 for a /24 subnet).
gatewayThe gateway address for this network.
ipv6If true, indicates this is an IPv6 address; if false, it's an IPv4 address.
net30If true, indicates this is a net30 topology (point-to-point with 4 addresses).
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 644 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_add_proxy_bypass()

bool openvpn::TunBuilderCapture::tun_builder_add_proxy_bypass ( const std::string &  bypass_host)
inlineoverridevirtual

Adds a host to bypass proxy settings.

Configures a host that should connect directly, bypassing any proxy settings when the VPN is active.

Parameters
bypass_hostThe hostname or address that should bypass the proxy.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 786 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_add_route()

bool openvpn::TunBuilderCapture::tun_builder_add_route ( const std::string &  address,
int  prefix_length,
int  metric,
bool  ipv6 
)
inlineoverridevirtual

Adds a route to the tunnel.

Configures a new route to be added to the routing table when the tunnel is established.

Parameters
addressThe destination network address.
prefix_lengthThe subnet prefix length (netmask).
metricThe route metric/priority value. If negative, a default metric will be used.
ipv6Whether this is an IPv6 true or IPv4 false route.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 699 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_add_wins_server()

bool openvpn::TunBuilderCapture::tun_builder_add_wins_server ( const std::string &  address)
inlineoverridevirtual

Adds a WINS server to the tunnel configuration.

Creates a new WINS server entry with the provided address and adds it to the list of WINS servers.

Parameters
addressThe IP address of the WINS server.
Returns
Always returns true to indicate successful addition.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 841 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_exclude_route()

bool openvpn::TunBuilderCapture::tun_builder_exclude_route ( const std::string &  address,
int  prefix_length,
int  metric,
bool  ipv6 
)
inlineoverridevirtual

Excludes a route from the tunnel.

Configures a route to be excluded from the tunnel routing, allowing traffic to that destination to bypass the VPN tunnel.

Parameters
addressThe destination network address to exclude.
prefix_lengthThe subnet prefix length (netmask).
metricThe route metric/priority value.
ipv6Whether this is an IPv6 (true ) or IPv4 (false ) route.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 720 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_reroute_gw()

bool openvpn::TunBuilderCapture::tun_builder_reroute_gw ( bool  ipv4,
bool  ipv6,
unsigned int  flags 
)
inlineoverridevirtual

Configures global gateway rerouting through the VPN tunnel.

Sets up redirection of default traffic routes through the VPN tunnel for IPv4 and/or IPv6 traffic according to the specified flags.

Parameters
ipv4If true, reroute IPv4 default gateway.
ipv6If true, reroute IPv6 default gateway.
flagsSpecial routing flags that modify the routing behavior.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 669 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_allow_family()

bool openvpn::TunBuilderCapture::tun_builder_set_allow_family ( int  af,
bool  allow 
)
inlineoverridevirtual

Sets whether to allow a specific address family in the tunnel.

Controls whether IPv4 or IPv6 traffic is allowed or blocked in the tunnel.

Parameters
afThe address family to configure (AF_INET for IPv4 or AF_INET6 for IPv6).
allowWhether to allow true or block false the specified address family.
Returns
Always returns true to indicate successful configuration.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 856 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_allow_local_dns()

bool openvpn::TunBuilderCapture::tun_builder_set_allow_local_dns ( bool  allow)
inlineoverridevirtual

Sets whether to allow local DNS resolution.

Controls whether DNS requests can be resolved locally or must go through the VPN.

Parameters
allowWhether to allow true or block false local DNS resolution.
Returns
Always returns true to indicate successful configuration.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 871 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_dns_options()

bool openvpn::TunBuilderCapture::tun_builder_set_dns_options ( const DnsOptions dns)
inlineoverridevirtual

Set DNS options for use with tun builder.

Calling this invalidates any DNS related --dhcp-options previously added.

Parameters
dnsThe --dns options to be set.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 737 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_layer()

bool openvpn::TunBuilderCapture::tun_builder_set_layer ( int  layer)
inlineoverridevirtual

Sets the tunnel's network layer.

Configures which OSI layer the tunnel will operate at (typically layer 2 or 3).

Parameters
layerThe network layer value to set.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 749 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_mtu()

bool openvpn::TunBuilderCapture::tun_builder_set_mtu ( int  mtu)
inlineoverridevirtual

Sets the Maximum Transmission Unit (MTU) for the tunnel.

Configures the maximum packet size that can be transmitted through the tunnel.

Parameters
mtuThe MTU value in bytes.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 761 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_proxy_auto_config_url()

bool openvpn::TunBuilderCapture::tun_builder_set_proxy_auto_config_url ( const std::string &  url)
inlineoverridevirtual

Sets the URL for a proxy auto-configuration (PAC) file.

Configures the VPN to use a PAC file at the specified URL for determining proxy settings.

Parameters
urlThe URL where the PAC file is located.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 801 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_proxy_http()

bool openvpn::TunBuilderCapture::tun_builder_set_proxy_http ( const std::string &  host,
int  port 
)
inlineoverridevirtual

Sets the HTTP proxy for the tunnel.

Configures the HTTP proxy with the specified host and port.

Parameters
hostThe hostname or IP address of the HTTP proxy server.
portThe port number of the HTTP proxy server.
Returns
Always returns true to indicate successful configuration.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 814 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_proxy_https()

bool openvpn::TunBuilderCapture::tun_builder_set_proxy_https ( const std::string &  host,
int  port 
)
inlineoverridevirtual

Sets the HTTPS proxy for the tunnel.

Configures the HTTPS proxy with the specified host and port.

Parameters
hostThe hostname or IP address of the HTTPS proxy server.
portThe port number of the HTTPS proxy server.
Returns
Always returns true to indicate successful configuration.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 828 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_remote_address()

bool openvpn::TunBuilderCapture::tun_builder_set_remote_address ( const std::string &  address,
bool  ipv6 
)
inlineoverridevirtual

Sets the remote address for the TUN interface.

Stores the remote endpoint address for the VPN tunnel connection.

Parameters
addressThe remote address string to set.
ipv6If true, indicates this is an IPv6 address; if false, it's an IPv4 address.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 626 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_route_metric_default()

bool openvpn::TunBuilderCapture::tun_builder_set_route_metric_default ( int  metric)
inlineoverridevirtual

Sets the default route metric for VPN routes.

Configures the priority of routes added by the VPN, where lower metric values indicate higher priority routes.

Parameters
metricThe metric value to assign to routes.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 684 of file capture.hpp.

Here is the caller graph for this function:

◆ tun_builder_set_session_name()

bool openvpn::TunBuilderCapture::tun_builder_set_session_name ( const std::string &  name)
inlineoverridevirtual

Sets a descriptive name for the VPN session.

This name may be displayed in network connection UIs or logs.

Parameters
nameThe session name to set.
Returns
Always returns true to indicate successful operation.

Reimplemented from openvpn::TunBuilderBase.

Definition at line 773 of file capture.hpp.

Here is the caller graph for this function:

◆ validate()

void openvpn::TunBuilderCapture::validate ( ) const
inline

Validates the configuration of the tunnel.

Performs validation on all components of the tunnel configuration, including layer settings, MTU, addresses, routes, and proxy settings. Each component's validate method is called with an appropriate context string.

Definition at line 946 of file capture.hpp.

Here is the caller graph for this function:

◆ validate_layer()

void openvpn::TunBuilderCapture::validate_layer ( const std::string &  title) const
inlineprivate

Validates that the network layer is defined.

Checks that the layer property has been properly initialized. Throws an exception if the layer is undefined.

Parameters
titleThe title to use in exception messages.
Exceptions
Exceptionif the layer is undefined.

Definition at line 1199 of file capture.hpp.

Here is the caller graph for this function:

◆ validate_list()

template<typename LIST >
static void openvpn::TunBuilderCapture::validate_list ( const LIST &  list,
const std::string &  title 
)
inlinestaticprivate

Validates each element in a list.

Iterates through each element in the list and calls its validate() method with a title argument that includes the element's index.

Parameters
listThe list of elements to validate.
titleThe base title to use for validation messages.
Template Parameters
LISTThe list type which must contain elements with a validate() method.

Definition at line 1133 of file capture.hpp.

Here is the caller graph for this function:

◆ validate_mtu()

void openvpn::TunBuilderCapture::validate_mtu ( const std::string &  title) const
inlineprivate

Validates that the MTU value is within an acceptable range.

Checks that the MTU is not negative and does not exceed mtu_ipv4_maximum. Throws an exception if validation fails.

Parameters
titleThe title to use in exception messages.
Exceptions
Exceptionif the MTU is out of range.

Definition at line 1186 of file capture.hpp.

Here is the caller graph for this function:

◆ validate_tunnel_address_indices()

void openvpn::TunBuilderCapture::validate_tunnel_address_indices ( const std::string &  title) const
inlineprivate

Validates tunnel address indices for both IPv4 and IPv6.

Checks that both tunnel_address_index_ipv4 and tunnel_address_index_ipv6 are valid, and that they point to the correct address types (IPv4 and IPv6 respectively). Throws an exception if any validation fails.

Parameters
titleThe title to use in exception messages.
Exceptions
Exceptionif any validation fails, with a descriptive error message.

Definition at line 1165 of file capture.hpp.

Here is the caller graph for this function:

◆ validate_tunnel_index()

bool openvpn::TunBuilderCapture::validate_tunnel_index ( const int  index) const
inlineprivate

Checks if a tunnel index is valid.

An index is considered valid if it's -1 (special value) or if it's within the range of available tunnel addresses (0 to tunnel_addresses.size() ).

Parameters
indexThe tunnel index to validate.
Returns
true if the index is valid, false otherwise.

Definition at line 1150 of file capture.hpp.

Here is the caller graph for this function:

◆ vpn_ip()

const RouteAddress * openvpn::TunBuilderCapture::vpn_ip ( const IP::Addr::Version  v) const
inline

Gets the tunnel address for the specified IP version.

Returns a pointer to the RouteAddress structure for the specified IP version.

Parameters
vThe IP address version (V4 or V6).
Returns
Pointer to the tunnel address for the specified version or nullptr if not configured.

Definition at line 927 of file capture.hpp.

Here is the caller graph for this function:

◆ vpn_ipv4()

const RouteAddress * openvpn::TunBuilderCapture::vpn_ipv4 ( ) const
inline

Gets the IPv4 tunnel address.

Returns a pointer to the RouteAddress structure for the IPv4 tunnel if configured.

Returns
Pointer to the IPv4 tunnel address or nullptr if not configured.

Definition at line 902 of file capture.hpp.

Here is the caller graph for this function:

◆ vpn_ipv6()

const RouteAddress * openvpn::TunBuilderCapture::vpn_ipv6 ( ) const
inline

Gets the IPv6 tunnel address.

Returns a pointer to the RouteAddress structure for the IPv6 tunnel if configured.

Returns
Pointer to the IPv6 tunnel address or nullptr if not configured.

Definition at line 914 of file capture.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ add_routes

std::vector<Route> openvpn::TunBuilderCapture::add_routes

Definition at line 1091 of file capture.hpp.

◆ block_ipv4

bool openvpn::TunBuilderCapture::block_ipv4 = false

Definition at line 1087 of file capture.hpp.

◆ block_ipv6

bool openvpn::TunBuilderCapture::block_ipv6 = false

Definition at line 1088 of file capture.hpp.

◆ block_outside_dns

bool openvpn::TunBuilderCapture::block_outside_dns = false

Definition at line 1089 of file capture.hpp.

◆ dns_options

DnsOptions openvpn::TunBuilderCapture::dns_options

Definition at line 1093 of file capture.hpp.

◆ exclude_routes

std::vector<Route> openvpn::TunBuilderCapture::exclude_routes

Definition at line 1092 of file capture.hpp.

◆ http_proxy

ProxyHostPort openvpn::TunBuilderCapture::http_proxy

Definition at line 1097 of file capture.hpp.

◆ https_proxy

ProxyHostPort openvpn::TunBuilderCapture::https_proxy

Definition at line 1098 of file capture.hpp.

◆ layer

Layer openvpn::TunBuilderCapture::layer {Layer::OSI_LAYER_3}

Definition at line 1081 of file capture.hpp.

◆ mtu

int openvpn::TunBuilderCapture::mtu = 0

Definition at line 1080 of file capture.hpp.

◆ mtu_ipv4_maximum

constexpr int openvpn::TunBuilderCapture::mtu_ipv4_maximum = 65'535
staticconstexpr

Definition at line 1102 of file capture.hpp.

◆ proxy_auto_config_url

ProxyAutoConfigURL openvpn::TunBuilderCapture::proxy_auto_config_url

Definition at line 1096 of file capture.hpp.

◆ proxy_bypass

std::vector<ProxyBypass> openvpn::TunBuilderCapture::proxy_bypass

Definition at line 1095 of file capture.hpp.

◆ remote_address

RemoteAddress openvpn::TunBuilderCapture::remote_address

Definition at line 1082 of file capture.hpp.

◆ reroute_gw

RerouteGW openvpn::TunBuilderCapture::reroute_gw

Definition at line 1086 of file capture.hpp.

◆ route_metric_default

int openvpn::TunBuilderCapture::route_metric_default = -1

Definition at line 1090 of file capture.hpp.

◆ session_name

std::string openvpn::TunBuilderCapture::session_name

Definition at line 1079 of file capture.hpp.

◆ tunnel_address_index_ipv4

int openvpn::TunBuilderCapture::tunnel_address_index_ipv4 = -1

Definition at line 1084 of file capture.hpp.

◆ tunnel_address_index_ipv6

int openvpn::TunBuilderCapture::tunnel_address_index_ipv6 = -1

Definition at line 1085 of file capture.hpp.

◆ tunnel_addresses

std::vector<RouteAddress> openvpn::TunBuilderCapture::tunnel_addresses

Definition at line 1083 of file capture.hpp.

◆ wins_servers

std::vector<WINSServer> openvpn::TunBuilderCapture::wins_servers

Definition at line 1100 of file capture.hpp.


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