|
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. | |
Public Member Functions inherited from openvpn::TunClient | |
| virtual void | adjust_mss (int mss) |
| virtual std::uint32_t | vpn_interface_index () const |
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 Types | |
| using | TunImpl = Tun< Client * > |
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 | |
Public Types inherited from openvpn::TunClient | |
| using | Ptr = RCPtr< TunClient > |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| using | Ptr = RCPtr< RC > |
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 123 of file tuncli.hpp.
|
private |
Definition at line 128 of file tuncli.hpp.
|
inlinevirtual |
Definition at line 294 of file tuncli.hpp.
|
inlineprivate |
Definition at line 317 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 299 of file tuncli.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 286 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 290 of file tuncli.hpp.
|
inlineprivate |
|
inlineprivate |
Definition at line 340 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 246 of file tuncli.hpp.
|
inlineprivate |
Definition at line 335 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 241 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 131 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 267 of file tuncli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::TunClient.
Definition at line 274 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 253 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 260 of file tuncli.hpp.
|
inlineoverridevirtual |
Implements openvpn::TunClient.
Definition at line 281 of file tuncli.hpp.
|
friend |
Definition at line 125 of file tuncli.hpp.
|
friend |
Definition at line 125 of file tuncli.hpp.
|
private |
Definition at line 361 of file tuncli.hpp.
|
private |
Definition at line 366 of file tuncli.hpp.
|
private |
Definition at line 363 of file tuncli.hpp.
|
private |
Definition at line 359 of file tuncli.hpp.
|
private |
Definition at line 362 of file tuncli.hpp.
|
private |
Definition at line 364 of file tuncli.hpp.
|
private |
Definition at line 360 of file tuncli.hpp.
|
private |
Definition at line 365 of file tuncli.hpp.