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

#include <vpnservnetblock.hpp>

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

Classes

struct  ClientNetblock
 
struct  Netblock
 
class  PerThread
 

Public Member Functions

 OPENVPN_EXCEPTION (vpn_serv_netblock)
 
 VPNServerNetblock ()
 
 VPNServerNetblock (const OptionList &opt, const std::string &opt_name, const bool ipv4_optional, const unsigned int n_threads)
 
const ClientNetblocknetblock4 () const
 
const ClientNetblocknetblock6 () const
 
bool netblock_contains (const IP::Addr &a) const
 
size_t size () const
 
const PerThreadper_thread (const size_t index) const
 
std::string to_string () const
 

Private Attributes

ClientNetblock snb4
 
ClientNetblock snb6
 
std::vector< PerThreadthr
 

Detailed Description

Definition at line 25 of file vpnservnetblock.hpp.

Constructor & Destructor Documentation

◆ VPNServerNetblock() [1/2]

openvpn::VPNServerNetblock::VPNServerNetblock ( )
inline

Definition at line 139 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ VPNServerNetblock() [2/2]

openvpn::VPNServerNetblock::VPNServerNetblock ( const OptionList opt,
const std::string &  opt_name,
const bool  ipv4_optional,
const unsigned int  n_threads 
)
inline

Definition at line 143 of file vpnservnetblock.hpp.

Member Function Documentation

◆ netblock4()

const ClientNetblock & openvpn::VPNServerNetblock::netblock4 ( ) const
inline

Definition at line 208 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ netblock6()

const ClientNetblock & openvpn::VPNServerNetblock::netblock6 ( ) const
inline

Definition at line 212 of file vpnservnetblock.hpp.

Here is the caller graph for this function:

◆ netblock_contains()

bool openvpn::VPNServerNetblock::netblock_contains ( const IP::Addr a) const
inline

Definition at line 217 of file vpnservnetblock.hpp.

◆ OPENVPN_EXCEPTION()

openvpn::VPNServerNetblock::OPENVPN_EXCEPTION ( vpn_serv_netblock  )

◆ per_thread()

const PerThread & openvpn::VPNServerNetblock::per_thread ( const size_t  index) const
inline

Definition at line 227 of file vpnservnetblock.hpp.

◆ size()

size_t openvpn::VPNServerNetblock::size ( ) const
inline

Definition at line 222 of file vpnservnetblock.hpp.

◆ to_string()

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

Definition at line 232 of file vpnservnetblock.hpp.

Member Data Documentation

◆ snb4

ClientNetblock openvpn::VPNServerNetblock::snb4
private

Definition at line 251 of file vpnservnetblock.hpp.

◆ snb6

ClientNetblock openvpn::VPNServerNetblock::snb6
private

Definition at line 252 of file vpnservnetblock.hpp.

◆ thr

std::vector<PerThread> openvpn::VPNServerNetblock::thr
private

Definition at line 253 of file vpnservnetblock.hpp.


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