FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
VOM::l3_proto_t Class Reference

An L3 protocol can be used to construct a prefix that is used to match packets are part of a route. More...

+ Inheritance diagram for VOM::l3_proto_t:
+ Collaboration diagram for VOM::l3_proto_t:

Public Member Functions

bool is_ipv4 () const
 
bool is_ipv6 () const
 
const nh_proto_tto_nh_proto () const
 
- Public Member Functions inherited from VOM::enum_base< l3_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...
 
enum_baseoperator|= (const enum_base &e)
 bitwise or assignemnt More...
 
enum_base operator| (const enum_base &e1) const
 bitwise or 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 l3_proto_tfrom_address (const boost::asio::ip::address &addr)
 

Static Public Attributes

static const l3_proto_t IPV4
 
static const l3_proto_t IPV6
 
static const l3_proto_t MPLS
 

Additional Inherited Members

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

An L3 protocol can be used to construct a prefix that is used to match packets are part of a route.

Definition at line 52 of file prefix.hpp.

Member Function Documentation

◆ from_address()

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

Definition at line 47 of file prefix.cpp.

◆ is_ipv4()

bool VOM::l3_proto_t::is_ipv4 ( ) const

Definition at line 41 of file prefix.cpp.

◆ is_ipv6()

bool VOM::l3_proto_t::is_ipv6 ( ) const

Definition at line 35 of file prefix.cpp.

+ Here is the caller graph for this function:

◆ to_nh_proto()

const nh_proto_t & VOM::l3_proto_t::to_nh_proto ( ) const

Definition at line 57 of file prefix.cpp.

Field Documentation

◆ IPV4

const l3_proto_t VOM::l3_proto_t::IPV4
static

Definition at line 55 of file prefix.hpp.

◆ IPV6

const l3_proto_t VOM::l3_proto_t::IPV6
static

Definition at line 56 of file prefix.hpp.

◆ MPLS

const l3_proto_t VOM::l3_proto_t::MPLS
static

Definition at line 57 of file prefix.hpp.


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