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 &cli) 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 *, TunPersist > | 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 |
bool | halt |
TunProp::State::Ptr | state |
TunBuilderSetup::Base::Ptr | tun_setup |
Friends | |
class | ClientConfig |
class | TunIO< Client *, PacketFrom, TunWrapAsioStream< TunPersist > > |
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 136 of file tuncli.hpp.
|
private |
Definition at line 141 of file tuncli.hpp.
|
inlinevirtual |
Definition at line 319 of file tuncli.hpp.
|
inlineprivate |
Definition at line 344 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 324 of file tuncli.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 311 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 315 of file tuncli.hpp.
|
inlineprivate |
|
inlineprivate |
Definition at line 368 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 266 of file tuncli.hpp.
|
inlineprivate |
Definition at line 363 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 261 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 144 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 290 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 298 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 274 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 282 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 306 of file tuncli.hpp.
|
friend |
Definition at line 138 of file tuncli.hpp.
|
friend |
Definition at line 138 of file tuncli.hpp.
|
private |
Definition at line 389 of file tuncli.hpp.
|
private |
Definition at line 392 of file tuncli.hpp.
|
private |
Definition at line 391 of file tuncli.hpp.
|
private |
Definition at line 387 of file tuncli.hpp.
|
private |
Definition at line 390 of file tuncli.hpp.
|
private |
Definition at line 393 of file tuncli.hpp.
|
private |
Definition at line 388 of file tuncli.hpp.
|
private |
Definition at line 394 of file tuncli.hpp.