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

#include <vpnservnetblock.hpp>

Inheritance diagram for openvpn::VPNServerNetblock::Netblock:
[legend]
Collaboration diagram for openvpn::VPNServerNetblock::Netblock:
[legend]

Public Member Functions

 Netblock ()
 
 Netblock (const IP::Route &route)
 
void override_server_gw (const IP::Addr &gw)
 
bool defined () const
 
IP::Addr netmask () const
 
bool contains (const IP::Addr &a) const
 
IP::Route route () const
 
std::string to_string () const
 

Public Attributes

IP::Addr net
 
IP::Addr server_gw
 
unsigned int prefix_len = 0
 

Detailed Description

Definition at line 30 of file vpnservnetblock.hpp.

Constructor & Destructor Documentation

◆ Netblock() [1/2]

openvpn::VPNServerNetblock::Netblock::Netblock ( )
inline

Definition at line 32 of file vpnservnetblock.hpp.

◆ Netblock() [2/2]

openvpn::VPNServerNetblock::Netblock::Netblock ( const IP::Route route)
inline

Definition at line 36 of file vpnservnetblock.hpp.

Member Function Documentation

◆ contains()

bool openvpn::VPNServerNetblock::Netblock::contains ( const IP::Addr a) const
inline

Definition at line 67 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ defined()

bool openvpn::VPNServerNetblock::Netblock::defined ( ) const
inline

Definition at line 57 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ netmask()

IP::Addr openvpn::VPNServerNetblock::Netblock::netmask ( ) const
inline

Definition at line 62 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ override_server_gw()

void openvpn::VPNServerNetblock::Netblock::override_server_gw ( const IP::Addr gw)
inline

Definition at line 50 of file vpnservnetblock.hpp.

◆ route()

IP::Route openvpn::VPNServerNetblock::Netblock::route ( ) const
inline

Definition at line 75 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::VPNServerNetblock::Netblock::to_string ( ) const
inline

Definition at line 80 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ net

IP::Addr openvpn::VPNServerNetblock::Netblock::net

Definition at line 85 of file vpnservnetblock.hpp.

◆ prefix_len

unsigned int openvpn::VPNServerNetblock::Netblock::prefix_len = 0

Definition at line 87 of file vpnservnetblock.hpp.

◆ server_gw

IP::Addr openvpn::VPNServerNetblock::Netblock::server_gw

Definition at line 86 of file vpnservnetblock.hpp.


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