OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunIPRoute Namespace Reference

Classes

struct  TunMethods
 

Enumerations

enum  { R_IPv6 = (1 << 0) , R_ADD_SYS = (1 << 1) , R_ADD_DCO = (1 << 2) , R_ADD_ALL = R_ADD_SYS | R_ADD_DCO }
 

Functions

IP::Addr cvt_pnr_ip_v4 (const std::string &hexaddr)
 
void add_del_route (const std::string &addr_str, const int prefix_len, const std::string &gateway_str, const std::string &dev, const unsigned int flags, std::vector< IP::Route > *rtvec, Action::Ptr &create, Action::Ptr &destroy)
 
void add_del_route (const std::string &addr_str, const int prefix_len, const std::string &gateway_str, const std::string &dev, const unsigned int flags, std::vector< IP::Route > *rtvec, ActionList &create, ActionList &destroy)
 
void iface_up (const std::string &iface_name, const int mtu, ActionList &create, ActionList &destroy)
 
void iface_config (const std::string &iface_name, int unit, const TunBuilderCapture &pull, std::vector< IP::Route > *rtvec, ActionList &create, ActionList &destroy)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
R_IPv6 
R_ADD_SYS 
R_ADD_DCO 
R_ADD_ALL 

Definition at line 42 of file tuniproute.hpp.

Function Documentation

◆ add_del_route() [1/2]

void openvpn::TunIPRoute::add_del_route ( const std::string &  addr_str,
const int  prefix_len,
const std::string &  gateway_str,
const std::string &  dev,
const unsigned int  flags,
std::vector< IP::Route > *  rtvec,
Action::Ptr create,
Action::Ptr destroy 
)
inline

Definition at line 60 of file tuniproute.hpp.

Here is the caller graph for this function:

◆ add_del_route() [2/2]

void openvpn::TunIPRoute::add_del_route ( const std::string &  addr_str,
const int  prefix_len,
const std::string &  gateway_str,
const std::string &  dev,
const unsigned int  flags,
std::vector< IP::Route > *  rtvec,
ActionList create,
ActionList destroy 
)
inline

Definition at line 137 of file tuniproute.hpp.

◆ cvt_pnr_ip_v4()

IP::Addr openvpn::TunIPRoute::cvt_pnr_ip_v4 ( const std::string &  hexaddr)
inline

Definition at line 50 of file tuniproute.hpp.

◆ iface_config()

void openvpn::TunIPRoute::iface_config ( const std::string &  iface_name,
int  unit,
const TunBuilderCapture pull,
std::vector< IP::Route > *  rtvec,
ActionList create,
ActionList destroy 
)
inline

Definition at line 178 of file tuniproute.hpp.

Here is the caller graph for this function:

◆ iface_up()

void openvpn::TunIPRoute::iface_up ( const std::string &  iface_name,
const int  mtu,
ActionList create,
ActionList destroy 
)
inline

Definition at line 152 of file tuniproute.hpp.

Here is the caller graph for this function: