FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
VOM::nh_proto_t Class Reference

A next-hop protocol describes the protocol of a peer to which packets are sent after matching a route. More...

+ Inheritance diagram for VOM::nh_proto_t:
+ Collaboration diagram for VOM::nh_proto_t:

Static Public Member Functions

static const nh_proto_tfrom_address (const boost::asio::ip::address &addr)
 

Static Public Attributes

static const nh_proto_t IPV4
 
static const nh_proto_t IPV6
 
static const nh_proto_t MPLS
 
static const nh_proto_t ETHERNET
 

Additional Inherited Members

- Public Member Functions inherited from VOM::enum_base< nh_proto_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< nh_proto_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

A next-hop protocol describes the protocol of a peer to which packets are sent after matching a route.

Definition at line 60 of file prefix.hpp.

Member Function Documentation

const nh_proto_t & VOM::nh_proto_t::from_address ( const boost::asio::ip::address &  addr)
static

Definition at line 77 of file prefix.cpp.

Field Documentation

const nh_proto_t VOM::nh_proto_t::ETHERNET
static

Definition at line 66 of file prefix.hpp.

const nh_proto_t VOM::nh_proto_t::IPV4
static

Definition at line 63 of file prefix.hpp.

const nh_proto_t VOM::nh_proto_t::IPV6
static

Definition at line 64 of file prefix.hpp.

const nh_proto_t VOM::nh_proto_t::MPLS
static

Definition at line 65 of file prefix.hpp.


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