OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd Class Reference
Inheritance diagram for openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd:
[legend]
Collaboration diagram for openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd:
[legend]

Public Types

typedef RCPtr< AddRoute4CmdPtr
 
- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 AddRoute4Cmd (const std::string &route_address, int prefix_length, DWORD iface_index, const std::string &iface_name, const std::string &gw_address, int metric, bool add)
 
void execute (std::ostream &os) override
 
std::string to_string () const override
 
- Public Member Functions inherited from openvpn::Action
virtual Json::Value to_json () const
 
virtual ~Action ()=default
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Attributes

WinCmd::Ptr cmd
 

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.
 
- Public Attributes inherited from openvpn::Action
std::string mark
 

Detailed Description

Definition at line 1306 of file tunutil.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ AddRoute4Cmd()

openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd::AddRoute4Cmd ( const std::string &  route_address,
int  prefix_length,
DWORD  iface_index,
const std::string &  iface_name,
const std::string &  gw_address,
int  metric,
bool  add 
)
inline

Definition at line 1311 of file tunutil.hpp.

Member Function Documentation

◆ execute()

void openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd::execute ( std::ostream &  os)
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 1337 of file tunutil.hpp.

◆ to_string()

std::string openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd::to_string ( ) const
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 1342 of file tunutil.hpp.

Member Data Documentation

◆ cmd

WinCmd::Ptr openvpn::TunWin::Util::TunNETSH::AddRoute4Cmd::cmd
private

Definition at line 1348 of file tunutil.hpp.


The documentation for this class was generated from the following file: