#include <tunsetup.hpp>
|
void | register_rings (HANDLE handle, RingBuffer::Ptr ring_buffer) |
|
void | adapter_config (HANDLE th, const std::wstring &openvpn_app_path, const Util::TapNameGuidPair &tap, const TunBuilderCapture &pull, const bool l2_post, ActionList &create, ActionList &destroy, std::ostream &os) |
|
void | adapter_config_l2 (HANDLE th, const std::wstring &openvpn_app_path, const Util::TapNameGuidPair &tap, const TunBuilderCapture &pull, ActionList &create, ActionList &destroy, std::ostream &os) |
|
Definition at line 57 of file tunsetup.hpp.
◆ Ptr
◆ MetricType
Enumerator |
---|
MT_ROUTE | |
MT_NETSH | |
MT_IFACE | |
Definition at line 893 of file tunsetup.hpp.
◆ Setup()
openvpn::TunWin::Setup::Setup |
( |
openvpn_io::io_context & |
io_context_arg, |
|
|
const Type |
tun_type, |
|
|
bool |
allow_local_dns_resolvers_arg |
|
) |
| |
|
inline |
◆ ~Setup()
virtual openvpn::TunWin::Setup::~Setup |
( |
| ) |
|
|
inlinevirtual |
◆ adapter_config()
◆ adapter_config_l2()
◆ add_bypass_route()
◆ destroy()
void openvpn::TunWin::Setup::destroy |
( |
std::ostream & |
os | ) |
|
|
inlineoverridevirtual |
◆ establish()
◆ get_adapter_state()
◆ get_handle()
HANDLE openvpn::TunWin::Setup::get_handle |
( |
std::ostream & |
os | ) |
|
|
inlineoverridevirtual |
◆ l2_finish()
void openvpn::TunWin::Setup::l2_finish |
( |
const TunBuilderCapture & |
pull, |
|
|
Stop * |
stop, |
|
|
std::ostream & |
os |
|
) |
| |
|
inlineoverridevirtual |
◆ l2_ready()
◆ register_rings()
void openvpn::TunWin::Setup::register_rings |
( |
HANDLE |
handle, |
|
|
RingBuffer::Ptr |
ring_buffer |
|
) |
| |
|
inlineprivate |
◆ route_metric_opt()
◆ set_adapter_state()
◆ set_process_id()
void openvpn::TunWin::Setup::set_process_id |
( |
DWORD |
process_id | ) |
|
|
inline |
Set the process id to be used with the NPRT rules.
The NRPT c'tor expects a process id parameter, which is used internally. This function can be used if you want that pid to be different from the current process id, e.g. if you are doing the setup for a different process, like in the agent.
- Parameters
-
process_id | The process id used with the NRPT class |
Definition at line 89 of file tunsetup.hpp.
◆ vpn_interface_index()
DWORD openvpn::TunWin::Setup::vpn_interface_index |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ allow_local_dns_resolvers
bool openvpn::TunWin::Setup::allow_local_dns_resolvers = false |
|
private |
◆ delete_route_timer
AsioTimer openvpn::TunWin::Setup::delete_route_timer |
|
private |
◆ l2_state
std::unique_ptr<L2State> openvpn::TunWin::Setup::l2_state |
|
private |
◆ l2_thread
std::unique_ptr<std::thread> openvpn::TunWin::Setup::l2_thread |
|
private |
◆ process_id_
DWORD openvpn::TunWin::Setup::process_id_ = 0 |
|
private |
◆ remove_cmds
◆ tap_
◆ tun_type_
const Type openvpn::TunWin::Setup::tun_type_ |
|
private |
◆ vpn_interface_index_
The documentation for this class was generated from the following file: