FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
VOM::interface_span::state_t Struct Reference

The state of the interface - rx/tx or both to be mirrored. More...

+ Inheritance diagram for VOM::interface_span::state_t:
+ Collaboration diagram for VOM::interface_span::state_t:

Static Public Member Functions

static state_t from_int (uint8_t val)
 Convert VPP's numerical value to enum type. More...
 

Static Public Attributes

static const state_t DISABLED
 DISABLED state. More...
 
static const state_t RX_ENABLED
 RX enable state. More...
 
static const state_t TX_ENABLED
 TX enable state. More...
 
static const state_t TX_RX_ENABLED
 TX and RX enable state. More...
 

Additional Inherited Members

- Public Member Functions inherited from VOM::enum_base< state_t >
const std::string & to_string () const
 convert to string format for debug purposes More...
 
bool operator== (const enum_base &e) const
 Comparison operator. More...
 
enum_baseoperator= (const enum_base &e)
 Assignment. More...
 
bool operator!= (const enum_base &e) const
 Comparison operator. More...
 
 operator int () const
 integer conversion operator More...
 
int value () const
 Return the value of the enum - same as integer conversion. More...
 
- Protected Member Functions inherited from VOM::enum_base< state_t >
 enum_base (int value, const std::string desc)
 Constructor of an enum - takes value and string description. More...
 
virtual ~enum_base ()
 Constructor. More...
 

Detailed Description

The state of the interface - rx/tx or both to be mirrored.

Definition at line 36 of file interface_span.hpp.

Member Function Documentation

interface_span::state_t VOM::interface_span::state_t::from_int ( uint8_t  val)
static

Convert VPP's numerical value to enum type.

Definition at line 192 of file interface_span.cpp.

+ Here is the caller graph for this function:

Field Documentation

const interface_span::state_t VOM::interface_span::state_t::DISABLED
static

DISABLED state.

Definition at line 41 of file interface_span.hpp.

const interface_span::state_t VOM::interface_span::state_t::RX_ENABLED
static

RX enable state.

Definition at line 45 of file interface_span.hpp.

const interface_span::state_t VOM::interface_span::state_t::TX_ENABLED
static

TX enable state.

Definition at line 49 of file interface_span.hpp.

const interface_span::state_t VOM::interface_span::state_t::TX_RX_ENABLED
static

TX and RX enable state.

Definition at line 53 of file interface_span.hpp.


The documentation for this struct was generated from the following files: