OpenVPN 3 Core Library
|
#include <tuncli.hpp>
Public Member Functions | |
void | tun_start (const OptionList &opt, TransportClient &transcli, CryptoDCSettings &) override |
bool | tun_send (BufferAllocated &buf) override |
std::string | tun_name () const override |
std::string | vpn_ip4 () const override |
std::string | vpn_ip6 () const override |
std::string | vpn_gw4 () const override |
std::string | vpn_gw6 () const override |
int | vpn_mtu () const override |
void | set_disconnect () override |
void | stop () override |
virtual | ~Client () |
void | apply_push_update (const OptionList &opt, TransportClient &transcli) override |
Notifies tun client about received PUSH_UPDATE control channel message. | |
![]() | |
virtual void | adjust_mss (int mss) |
virtual std::uint32_t | vpn_interface_index () const |
![]() | |
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 Types | |
typedef Tun< Client * > | TunImpl |
Private Member Functions | |
Client (openvpn_io::io_context &io_context_arg, ClientConfig *config_arg, TunClientParent &parent_arg) | |
bool | send (Buffer &buf) |
void | tun_read_handler (PacketFrom::SPtr &pfp) |
void | tun_error_handler (const Error::Type errtype, const openvpn_io::error_code *error) |
void | stop_ () |
Private Attributes | |
openvpn_io::io_context & | io_context |
TunPersist::Ptr | tun_persist |
ClientConfig::Ptr | config |
TunClientParent & | parent |
TunImpl::Ptr | impl |
TunProp::State::Ptr | state |
TunBuilderSetup::Base::Ptr | tun_setup |
bool | halt |
Friends | |
class | ClientConfig |
class | TunIO< Client *, PacketFrom, openvpn_io::posix::stream_descriptor > |
Additional Inherited Members | |
![]() | |
typedef RCPtr< TunClient > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 126 of file tuncli.hpp.
|
private |
Definition at line 131 of file tuncli.hpp.
|
inlinevirtual |
Definition at line 302 of file tuncli.hpp.
|
inlineprivate |
Definition at line 325 of file tuncli.hpp.
|
inlineoverridevirtual |
Notifies tun client about received PUSH_UPDATE control channel message.
The merging of exiting and incoming options (including removing options) happens before this call, so implementations are supposed to only undo existing options and apply the new ones, normally by calling stop() and tun_start().
opt | merged options, to be applied by implementation |
cli | transport client, passed to tun_start() call |
Reimplemented from openvpn::TunClient.
Definition at line 307 of file tuncli.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 294 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 298 of file tuncli.hpp.
|
inlineprivate |
|
inlineprivate |
Definition at line 349 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 249 of file tuncli.hpp.
|
inlineprivate |
Definition at line 344 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 244 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 134 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 273 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 281 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 257 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 265 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 289 of file tuncli.hpp.
|
friend |
Definition at line 128 of file tuncli.hpp.
|
friend |
Definition at line 128 of file tuncli.hpp.
|
private |
Definition at line 370 of file tuncli.hpp.
|
private |
Definition at line 375 of file tuncli.hpp.
|
private |
Definition at line 372 of file tuncli.hpp.
|
private |
Definition at line 368 of file tuncli.hpp.
|
private |
Definition at line 371 of file tuncli.hpp.
|
private |
Definition at line 373 of file tuncli.hpp.
|
private |
Definition at line 369 of file tuncli.hpp.
|
private |
Definition at line 374 of file tuncli.hpp.