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

#include <rgopt.hpp>

Public Types

enum  Flags {
  RG_ENABLE = (1 << 0) , RG_REROUTE_GW = (1 << 1) , RG_LOCAL = (1 << 2) , RG_AUTO_LOCAL = (1 << 3) ,
  RG_DEF1 = (1 << 4) , RG_BYPASS_DHCP = (1 << 5) , RG_BYPASS_DNS = (1 << 6) , RG_BLOCK_LOCAL = (1 << 7) ,
  RG_IPv4 = (1 << 8) , RG_IPv6 = (1 << 9) , RG_DEFAULT = (RG_IPv4)
}
 

Public Member Functions

 RedirectGatewayFlags ()
 
 RedirectGatewayFlags (unsigned int flags)
 
 RedirectGatewayFlags (const OptionList &opt)
 
void init (const OptionList &opt)
 
unsigned int operator() () const
 
bool redirect_gateway_ipv4_enabled () const
 
bool redirect_gateway_ipv6_enabled () const
 
bool redirect_gateway_local () const
 
std::string to_string () const
 

Private Member Functions

bool rg_enabled () const
 
void doinit (const OptionList &opt, const std::string &directive, const bool redirect_gateway)
 
void add_flags (const OptionList &opt, const OptionList::IndexList &idx, const bool redirect_gateway)
 

Private Attributes

unsigned int flags_
 

Detailed Description

Definition at line 21 of file rgopt.hpp.

Member Enumeration Documentation

◆ Flags

Enumerator
RG_ENABLE 
RG_REROUTE_GW 
RG_LOCAL 
RG_AUTO_LOCAL 
RG_DEF1 
RG_BYPASS_DHCP 
RG_BYPASS_DNS 
RG_BLOCK_LOCAL 
RG_IPv4 
RG_IPv6 
RG_DEFAULT 

Definition at line 24 of file rgopt.hpp.

Constructor & Destructor Documentation

◆ RedirectGatewayFlags() [1/3]

openvpn::RedirectGatewayFlags::RedirectGatewayFlags ( )
inline

Definition at line 40 of file rgopt.hpp.

◆ RedirectGatewayFlags() [2/3]

openvpn::RedirectGatewayFlags::RedirectGatewayFlags ( unsigned int  flags)
inline

Definition at line 45 of file rgopt.hpp.

◆ RedirectGatewayFlags() [3/3]

openvpn::RedirectGatewayFlags::RedirectGatewayFlags ( const OptionList opt)
inlineexplicit

Definition at line 50 of file rgopt.hpp.

Member Function Documentation

◆ add_flags()

void openvpn::RedirectGatewayFlags::add_flags ( const OptionList opt,
const OptionList::IndexList idx,
const bool  redirect_gateway 
)
inlineprivate

Definition at line 123 of file rgopt.hpp.

Here is the caller graph for this function:

◆ doinit()

void openvpn::RedirectGatewayFlags::doinit ( const OptionList opt,
const std::string &  directive,
const bool  redirect_gateway 
)
inlineprivate

Definition at line 116 of file rgopt.hpp.

Here is the caller graph for this function:

◆ init()

void openvpn::RedirectGatewayFlags::init ( const OptionList opt)
inline

Definition at line 55 of file rgopt.hpp.

Here is the caller graph for this function:

◆ operator()()

unsigned int openvpn::RedirectGatewayFlags::operator() ( ) const
inline

Definition at line 62 of file rgopt.hpp.

◆ redirect_gateway_ipv4_enabled()

bool openvpn::RedirectGatewayFlags::redirect_gateway_ipv4_enabled ( ) const
inline

Definition at line 67 of file rgopt.hpp.

Here is the caller graph for this function:

◆ redirect_gateway_ipv6_enabled()

bool openvpn::RedirectGatewayFlags::redirect_gateway_ipv6_enabled ( ) const
inline

Definition at line 72 of file rgopt.hpp.

Here is the caller graph for this function:

◆ redirect_gateway_local()

bool openvpn::RedirectGatewayFlags::redirect_gateway_local ( ) const
inline

Definition at line 77 of file rgopt.hpp.

◆ rg_enabled()

bool openvpn::RedirectGatewayFlags::rg_enabled ( ) const
inlineprivate

Definition at line 111 of file rgopt.hpp.

Here is the caller graph for this function:

◆ to_string()

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

Definition at line 82 of file rgopt.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ flags_

unsigned int openvpn::RedirectGatewayFlags::flags_
private

Definition at line 160 of file rgopt.hpp.


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