#include <tunprop.hpp>
|
static void | add_route_metric_default (TunBuilderBase *tb, const OptionList &opt, const bool quiet) |
|
static IP::Addr | route_gateway (const OptionList &opt) |
|
static void | tun_mtu (TunBuilderBase *tb, State *state, const OptionList &opt, int config_mtu, int config_mtu_max) |
|
static IP::Addr::VersionMask | tun_ifconfig (TunBuilderBase *tb, State *state, const OptionList &opt) |
|
static void | add_route_tunbuilder (TunBuilderBase *tb, bool add, const IP::Addr &addr, int prefix_length, int metric, bool ipv6, EmulateExcludeRoute *eer) |
|
static bool | route_target (const Option &o, const size_t target_index) |
|
static void | add_routes (TunBuilderBase *tb, const OptionList &opt, const IPVerFlags &ipv, EmulateExcludeRoute *eer, const bool quiet) |
|
static void | add_remote_bypass_routes (TunBuilderBase *tb, const RemoteList &remote_list, const IP::Addr &server_addr, EmulateExcludeRoute *eer, const bool quiet) |
|
static bool | add_dns_options (TunBuilderBase *tb, const OptionList &opt, bool quiet, bool use_dhcp_search_domains_as_split_domains) |
| Configure tun builder to use DNS related options if defined.
|
|
static void | add_dhcp_options (TunBuilderBase *tb, const OptionList &opt, const bool quiet) |
| Parse options for WINS and HTTP Proxy –dhcp-option(s) and add them to the tunbuilder (tb) passed.
|
|
static bool | search_domains_exist (const OptionList &opt, const bool quiet) |
|
static void | add_google_dns (TunBuilderBase *tb) |
|
Definition at line 33 of file tunprop.hpp.
◆ anonymous enum
Enumerator |
---|
OPT_RENDER_FLAGS | |
Definition at line 36 of file tunprop.hpp.
◆ add_dhcp_options()
Parse options for WINS and HTTP Proxy –dhcp-option(s) and add them to the tunbuilder (tb) passed.
- Parameters
-
tb | pointer to tunbuilder to add setting to |
opt | reference to the (pushed) options |
quiet | boolean to silence log messages about issues processing the options |
Definition at line 568 of file tunprop.hpp.
◆ add_dns_options()
static bool openvpn::TunProp::add_dns_options |
( |
TunBuilderBase * |
tb, |
|
|
const OptionList & |
opt, |
|
|
bool |
quiet, |
|
|
bool |
use_dhcp_search_domains_as_split_domains |
|
) |
| |
|
inlinestaticprivate |
Configure tun builder to use DNS related options if defined.
- Parameters
-
tb | pointer to the tun builder |
opt | the –dns options object |
quiet | boolean to silence log messages about issues processing the options |
use_dhcp_search_domains_as_split_domains | boolean to apply dhcp-option DNS search domains as split domains |
- Returns
- bool flag when there were servers defined in the options
Definition at line 535 of file tunprop.hpp.
◆ add_google_dns()
◆ add_remote_bypass_routes()
◆ add_route_metric_default()
static void openvpn::TunProp::add_route_metric_default |
( |
TunBuilderBase * |
tb, |
|
|
const OptionList & |
opt, |
|
|
const bool |
quiet |
|
) |
| |
|
inlinestaticprivate |
◆ add_route_tunbuilder()
◆ add_routes()
◆ configure_builder()
◆ OPENVPN_EXCEPTION() [1/2]
openvpn::TunProp::OPENVPN_EXCEPTION |
( |
tun_prop_error |
| ) |
|
◆ OPENVPN_EXCEPTION() [2/2]
openvpn::TunProp::OPENVPN_EXCEPTION |
( |
tun_prop_route_error |
| ) |
|
◆ OPENVPN_UNTAGGED_EXCEPTION_INHERIT() [1/2]
openvpn::TunProp::OPENVPN_UNTAGGED_EXCEPTION_INHERIT |
( |
option_error |
, |
|
|
tun_prop_dhcp_option_error |
|
|
) |
| |
◆ OPENVPN_UNTAGGED_EXCEPTION_INHERIT() [2/2]
openvpn::TunProp::OPENVPN_UNTAGGED_EXCEPTION_INHERIT |
( |
option_error |
, |
|
|
tun_prop_dns_option_error |
|
|
) |
| |
◆ route_gateway()
◆ route_target()
static bool openvpn::TunProp::route_target |
( |
const Option & |
o, |
|
|
const size_t |
target_index |
|
) |
| |
|
inlinestaticprivate |
◆ search_domains_exist()
static bool openvpn::TunProp::search_domains_exist |
( |
const OptionList & |
opt, |
|
|
const bool |
quiet |
|
) |
| |
|
inlinestaticprivate |
◆ tun_ifconfig()
◆ tun_mtu()
◆ MAX_ROUTE_METRIC
constexpr int openvpn::TunProp::MAX_ROUTE_METRIC = 1000000 |
|
staticconstexprprivate |
The documentation for this class was generated from the following file: