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

#include <route.hpp>

Collaboration diagram for openvpn::LinuxRoute:
[legend]

Public Member Functions

 OPENVPN_EXCEPTION (linux_route_error)
 
 LinuxRoute ()
 
void add_delete (const bool add, const IP::Route &route, const int if_index, const int table=RT_TABLE_MAIN)
 

Static Public Member Functions

static int if_index (const std::string &iface)
 

Private Attributes

ScopedFD fd
 

Detailed Description

Definition at line 35 of file route.hpp.

Constructor & Destructor Documentation

◆ LinuxRoute()

openvpn::LinuxRoute::LinuxRoute ( )
inline

Definition at line 40 of file route.hpp.

Member Function Documentation

◆ add_delete()

void openvpn::LinuxRoute::add_delete ( const bool  add,
const IP::Route route,
const int  if_index,
const int  table = RT_TABLE_MAIN 
)
inline

Definition at line 56 of file route.hpp.

◆ if_index()

static int openvpn::LinuxRoute::if_index ( const std::string &  iface)
inlinestatic

Definition at line 137 of file route.hpp.

Here is the caller graph for this function:

◆ OPENVPN_EXCEPTION()

openvpn::LinuxRoute::OPENVPN_EXCEPTION ( linux_route_error  )

Member Data Documentation

◆ fd

ScopedFD openvpn::LinuxRoute::fd
private

Definition at line 146 of file route.hpp.


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