FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
VOM::ethertype_t Struct Reference

Feature Ethertype. More...

+ Inheritance diagram for VOM::ethertype_t:
+ Collaboration diagram for VOM::ethertype_t:

Public Member Functions

 ethertype_t (int v, const std::string s)
 Constructor. More...
 
 ~ethertype_t ()=default
 Destructor. More...
 
- Public Member Functions inherited from VOM::enum_base< ethertype_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...
 

Static Public Member Functions

static const ethertype_tfrom_numeric_val (uint16_t numeric)
 Get the ethertype from the numeric value. More...
 

Static Public Attributes

static const ethertype_t ARP
 Ethertype Arp. More...
 
static const ethertype_t FCOE
 Ethertype FCoE. More...
 
static const ethertype_t IPV4
 Ethertype IPv4. More...
 
static const ethertype_t IPV6
 Ethertype Ipv6. More...
 
static const ethertype_t MAC_SECURITY
 Ethertype MAC Security. More...
 
static const ethertype_t MPLS_UNICAST
 Ethertype MPLS unicast. More...
 
static const ethertype_t TRILL
 Ethertype TRILL. More...
 
static const ethertype_t UNSPECIFIED
 Ethertype Unspecified. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VOM::enum_base< ethertype_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

Feature Ethertype.

Definition at line 170 of file types.hpp.

Constructor & Destructor Documentation

VOM::ethertype_t::ethertype_t ( int  v,
const std::string  s 
)

Constructor.

Definition at line 290 of file types.cpp.

VOM::ethertype_t::~ethertype_t ( )
default

Destructor.

Member Function Documentation

const ethertype_t & VOM::ethertype_t::from_numeric_val ( uint16_t  numeric)
static

Get the ethertype from the numeric value.

Definition at line 303 of file types.cpp.

+ Here is the caller graph for this function:

Field Documentation

const ethertype_t VOM::ethertype_t::ARP
static

Ethertype Arp.

Definition at line 185 of file types.hpp.

const ethertype_t VOM::ethertype_t::FCOE
static

Ethertype FCoE.

Definition at line 190 of file types.hpp.

const ethertype_t VOM::ethertype_t::IPV4
static

Ethertype IPv4.

Definition at line 195 of file types.hpp.

const ethertype_t VOM::ethertype_t::IPV6
static

Ethertype Ipv6.

Definition at line 200 of file types.hpp.

const ethertype_t VOM::ethertype_t::MAC_SECURITY
static

Ethertype MAC Security.

Definition at line 205 of file types.hpp.

const ethertype_t VOM::ethertype_t::MPLS_UNICAST
static

Ethertype MPLS unicast.

Definition at line 210 of file types.hpp.

const ethertype_t VOM::ethertype_t::TRILL
static

Ethertype TRILL.

Definition at line 215 of file types.hpp.

const ethertype_t VOM::ethertype_t::UNSPECIFIED
static

Ethertype Unspecified.

Definition at line 220 of file types.hpp.


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