|
OpenVPN 3 Core Library
|
#include <tunsetup.hpp>
Classes | |
| struct | Config |
Public Types | |
| using | Ptr = RCPtr< Setup > |
Public Types inherited from openvpn::TunBuilderSetup::Base | |
| using | Ptr = RCPtr< Base > |
Public Types inherited from openvpn::DestructorBase | |
| using | Ptr = RCPtr< DestructorBase > |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| using | Ptr = RCPtr< RC > |
Public Member Functions | |
| Setup ()=default | |
| void | destroy (std::ostream &os) override |
| bool | add_bypass_route (const std::string &address, bool ipv6, std::ostream &os) |
| int | establish (const TunBuilderCapture &pull, TunBuilderSetup::Config *config, Stop *stop, std::ostream &os) override |
Public Member Functions inherited from openvpn::DestructorBase | |
| virtual | ~DestructorBase ()=default |
Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount > | |
| RC () noexcept=default | |
| RC (const RC &)=delete | |
| virtual | ~RC ()=default |
| RC & | operator= (const RC &)=delete |
| olong | use_count () const noexcept |
| Delegates call to RCImpl and returns the result. | |
Private Member Functions | |
| int | open_tun (Config *conf) |
| void | open_unit (const std::string &name, struct ifreq &ifr, ScopedFD &fd) |
Private Attributes | |
| ActionList::Ptr | remove_cmds_bypass_gw = new ActionList() |
| ActionListReversed::Ptr | remove_cmds = new ActionListReversed() |
| std::string | connected_gw |
| std::string | tun_iface_name |
Additional Inherited Members | |
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. | |
Definition at line 52 of file tunsetup.hpp.
| using openvpn::TunLinuxSetup::Setup< TUNMETHODS >::Ptr = RCPtr<Setup> |
Definition at line 55 of file tunsetup.hpp.
|
default |
|
inline |
Definition at line 106 of file tunsetup.hpp.
|
inlineoverridevirtual |
Implements openvpn::DestructorBase.
Definition at line 97 of file tunsetup.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunBuilderSetup::Base.
Definition at line 126 of file tunsetup.hpp.
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 250 of file tunsetup.hpp.
|
private |
Definition at line 248 of file tunsetup.hpp.
|
private |
Definition at line 247 of file tunsetup.hpp.
|
private |
Definition at line 252 of file tunsetup.hpp.