OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::LinuxGW Class Reference

#include <gw.hpp>

Collaboration diagram for openvpn::LinuxGW:
[legend]

Public Member Functions

 OPENVPN_EXCEPTION (linux_gw_error)
 
 LinuxGW (const std::string &ip_route_show_txt, const bool ignore_errors)
 
const std::string & dev () const
 
const IP::Addraddr () const
 
bool defined () const
 
std::string to_string () const
 

Static Public Member Functions

static std::string ip_route_show (const bool ipv6)
 

Private Member Functions

std::string validate_dev (const std::string &dev)
 

Private Attributes

std::string dev_
 
IP::Addr addr_
 

Detailed Description

Definition at line 28 of file gw.hpp.

Constructor & Destructor Documentation

◆ LinuxGW()

openvpn::LinuxGW::LinuxGW ( const std::string &  ip_route_show_txt,
const bool  ignore_errors 
)
inline

Definition at line 33 of file gw.hpp.

Member Function Documentation

◆ addr()

const IP::Addr & openvpn::LinuxGW::addr ( ) const
inline

Definition at line 134 of file gw.hpp.

Here is the caller graph for this function:

◆ defined()

bool openvpn::LinuxGW::defined ( ) const
inline

Definition at line 139 of file gw.hpp.

Here is the caller graph for this function:

◆ dev()

const std::string & openvpn::LinuxGW::dev ( ) const
inline

Definition at line 129 of file gw.hpp.

Here is the caller graph for this function:

◆ ip_route_show()

static std::string openvpn::LinuxGW::ip_route_show ( const bool  ipv6)
inlinestatic

Definition at line 114 of file gw.hpp.

◆ OPENVPN_EXCEPTION()

openvpn::LinuxGW::OPENVPN_EXCEPTION ( linux_gw_error  )

◆ to_string()

std::string openvpn::LinuxGW::to_string ( ) const
inline

Definition at line 144 of file gw.hpp.

Here is the caller graph for this function:

◆ validate_dev()

std::string openvpn::LinuxGW::validate_dev ( const std::string &  dev)
inlineprivate

Definition at line 150 of file gw.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ addr_

IP::Addr openvpn::LinuxGW::addr_
private

Definition at line 158 of file gw.hpp.

◆ dev_

std::string openvpn::LinuxGW::dev_
private

Definition at line 157 of file gw.hpp.


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