OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::LinuxGW46Netlink Struct Reference

#include <gwnetlink.hpp>

Collaboration diagram for openvpn::LinuxGW46Netlink:
[legend]

Public Member Functions

 LinuxGW46Netlink (const std::string &iface_to_ignore, const std::string &addr="")
 
std::string to_string () const
 
std::string dev () const
 

Public Attributes

LinuxGWNetlink v4
 
LinuxGWNetlink v6
 

Detailed Description

Provides IPv4/6 gateway which is used to reach given address

Parameters
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
addraddress which we want to reach

Definition at line 116 of file gwnetlink.hpp.

Constructor & Destructor Documentation

◆ LinuxGW46Netlink()

openvpn::LinuxGW46Netlink::LinuxGW46Netlink ( const std::string &  iface_to_ignore,
const std::string &  addr = "" 
)
inline

Definition at line 118 of file gwnetlink.hpp.

Member Function Documentation

◆ dev()

std::string openvpn::LinuxGW46Netlink::dev ( ) const
inline

Definition at line 143 of file gwnetlink.hpp.

Here is the caller graph for this function:

◆ to_string()

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

Definition at line 124 of file gwnetlink.hpp.

Member Data Documentation

◆ v4

LinuxGWNetlink openvpn::LinuxGW46Netlink::v4

Definition at line 153 of file gwnetlink.hpp.

◆ v6

LinuxGWNetlink openvpn::LinuxGW46Netlink::v6

Definition at line 154 of file gwnetlink.hpp.


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