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

#include <gwnetlink.hpp>

Collaboration diagram for openvpn::LinuxGWNetlink:
[legend]

Public Member Functions

 OPENVPN_EXCEPTION (linux_gw_netlink_error)
 
 LinuxGWNetlink (const std::string &addr, const std::string &iface_to_ignore, bool ipv6)
 
const std::string & dev () const
 
const IP::Addraddr () const
 
bool defined () const
 
std::string to_string () const
 

Private Attributes

IP::Addr addr_
 
std::string dev_
 

Detailed Description

Definition at line 25 of file gwnetlink.hpp.

Constructor & Destructor Documentation

◆ LinuxGWNetlink()

openvpn::LinuxGWNetlink::LinuxGWNetlink ( const std::string &  addr,
const std::string &  iface_to_ignore,
bool  ipv6 
)
inline

Provides gateway which is used to reach given address

Parameters
addraddress which we want to reach
iface_to_ignorethis allows to exclude certain interface from discovered gateways. Used when we want to exclude VPN interface when there is active VPN connection with redirected default gateway
ipv6true if address is IPv6

Definition at line 40 of file gwnetlink.hpp.

Member Function Documentation

◆ addr()

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

Definition at line 88 of file gwnetlink.hpp.

Here is the caller graph for this function:

◆ defined()

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

Definition at line 93 of file gwnetlink.hpp.

Here is the caller graph for this function:

◆ dev()

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

Definition at line 83 of file gwnetlink.hpp.

Here is the caller graph for this function:

◆ OPENVPN_EXCEPTION()

openvpn::LinuxGWNetlink::OPENVPN_EXCEPTION ( linux_gw_netlink_error  )

◆ to_string()

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

Definition at line 98 of file gwnetlink.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ addr_

IP::Addr openvpn::LinuxGWNetlink::addr_
private

Definition at line 104 of file gwnetlink.hpp.

◆ dev_

std::string openvpn::LinuxGWNetlink::dev_
private

Definition at line 105 of file gwnetlink.hpp.


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