|
OpenVPN 3 Core Library
|
#include <tunbase.hpp>
Public Types | |
| typedef RCPtr< TunClient > | Ptr |
Public Types inherited from openvpn::RC< thread_unsafe_refcount > | |
| typedef RCPtr< RC > | Ptr |
Public Member Functions | |
| virtual void | tun_start (const OptionList &, TransportClient &, CryptoDCSettings &)=0 |
| virtual void | stop ()=0 |
| virtual void | set_disconnect ()=0 |
| virtual bool | tun_send (BufferAllocated &buf)=0 |
| virtual std::string | tun_name () const =0 |
| virtual std::string | vpn_ip4 () const =0 |
| virtual std::string | vpn_ip6 () const =0 |
| virtual std::string | vpn_gw4 () const |
| virtual std::string | vpn_gw6 () const |
| virtual int | vpn_mtu () const =0 |
| virtual void | adjust_mss (int mss) |
| virtual void | apply_push_update (const OptionList &opt, TransportClient &cli) |
| Notifies tun client about received PUSH_UPDATE control channel message. | |
| 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. | |
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 32 of file tunbase.hpp.
| typedef RCPtr<TunClient> openvpn::TunClient::Ptr |
Definition at line 34 of file tunbase.hpp.
|
inlinevirtual |
|
inlinevirtual |
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 in openvpn::TunMac::Client, openvpn::TunBuilderClient::Client, openvpn::TunLinux::Client, and openvpn::TunWin::Client.
Definition at line 70 of file tunbase.hpp.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
inlinevirtual |
Reimplemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
Definition at line 46 of file tunbase.hpp.
|
inlinevirtual |
Reimplemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
Definition at line 50 of file tunbase.hpp.
|
inlinevirtual |
Reimplemented in openvpn::TunWin::Client.
Definition at line 72 of file tunbase.hpp.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.
|
pure virtual |
Implemented in openvpn::DCOTransport::Client, openvpn::TunBuilderClient::Client, openvpn::TunNull::Client, openvpn::TunLinux::Client, openvpn::TunMac::Client, openvpn::TunWin::Client, and openvpn::TunWin::WintunClient.