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

#include <layer.hpp>

Public Types

enum  Type { NONE , OSI_LAYER_2 , OSI_LAYER_3 }
 

Public Member Functions

 Layer ()
 
 Layer (const Type t)
 
Type operator() () const
 
bool defined () const
 
const char * dev_type () const
 
const char * str () const
 
int value () const
 
bool operator== (const Layer &other) const
 
bool operator!= (const Layer &other) const
 

Static Public Member Functions

static Layer from_str (const std::string &str)
 
static Layer from_value (const int value)
 

Private Attributes

Type type_
 

Detailed Description

Definition at line 20 of file layer.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
NONE 
OSI_LAYER_2 
OSI_LAYER_3 

Definition at line 23 of file layer.hpp.

Constructor & Destructor Documentation

◆ Layer() [1/2]

openvpn::Layer::Layer ( )
inline

Definition at line 30 of file layer.hpp.

Here is the caller graph for this function:

◆ Layer() [2/2]

openvpn::Layer::Layer ( const Type  t)
inlineexplicit

Definition at line 34 of file layer.hpp.

Member Function Documentation

◆ defined()

bool openvpn::Layer::defined ( ) const
inline

Definition at line 43 of file layer.hpp.

Here is the caller graph for this function:

◆ dev_type()

const char * openvpn::Layer::dev_type ( ) const
inline

Definition at line 48 of file layer.hpp.

Here is the caller graph for this function:

◆ from_str()

static Layer openvpn::Layer::from_str ( const std::string &  str)
inlinestatic

Definition at line 91 of file layer.hpp.

◆ from_value()

static Layer openvpn::Layer::from_value ( const int  value)
inlinestatic

Definition at line 103 of file layer.hpp.

Here is the caller graph for this function:

◆ operator!=()

bool openvpn::Layer::operator!= ( const Layer other) const
inline

Definition at line 120 of file layer.hpp.

◆ operator()()

Type openvpn::Layer::operator() ( ) const
inline

Definition at line 38 of file layer.hpp.

◆ operator==()

bool openvpn::Layer::operator== ( const Layer other) const
inline

Definition at line 115 of file layer.hpp.

◆ str()

const char * openvpn::Layer::str ( ) const
inline

Definition at line 61 of file layer.hpp.

Here is the caller graph for this function:

◆ value()

int openvpn::Layer::value ( ) const
inline

Definition at line 76 of file layer.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ type_

Type openvpn::Layer::type_
private

Definition at line 126 of file layer.hpp.


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