|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_TYPES_H__
17 #define __VOM_TYPES_H__
22 #include <boost/asio/ip/address.hpp>
29 #define VAPI_CALL(_stmt) \
34 } while (VAPI_OK != _rv); \
273 uint32_t
value()
const;
const static ethertype_t MPLS_UNICAST
Ethertype MPLS unicast.
~ethertype_t()=default
Destructor.
const static l2_address_t ZERO
An all 0's L2 address.
@ VIRTUAL_TABLE
virtual tables - tables with a dependency on another table
mac_address_t to_mac() const
MAC address conversion.
~direction_t()=default
Destructor.
The VPP Object Model (VOM) library.
const static mac_address_t ZERO
An all 0's MAC address.
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
bool operator<(const mac_address_t &m) const
less than operator
std::vector< uint8_t > bytes
Underlying bytes array - filled from least to most significant.
const static rc_t OK
The HW write was successfull.
static const rc_t & from_vpp_retval(int32_t rv)
Get the rc_t from the VPP API value.
void to_bytes(uint8_t *array, uint8_t len) const
Convert to byte array.
void reset()
reset the value of the handle to ~0
uint32_t value() const
get the value of the handle
ethertype_t(int v, const std::string s)
Constructor.
const static ethertype_t UNSPECIFIED
Ethertype Unspecified.
@ ENTRY
Entries in Tables.
bool operator==(const handle_t &other) const
Comparison operator.
const static rc_t UNSET
The value un-set.
bool operator==(const mac_address_t &m) const
Comparison operator.
static const ethertype_t & from_numeric_val(uint16_t numeric)
Get the ethertype from the numeric value.
bool operator<(const handle_t &other) const
less than operator
const static ethertype_t IPV6
Ethertype Ipv6.
void to_bytes(uint8_t *array, uint8_t len) const
Convert to byte array.
A template base class for all enum types.
const static direction_t OUTPUT
Deny Direction.
std::string to_string() const
String conversion.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
const static rc_t TIMEOUT
HW write timedout - VPP did not respond within a timely manner.
const static ethertype_t IPV4
Ethertype IPv4.
const static direction_t INPUT
Permit Direction.
A type declaration of an interface handle in VPP.
const static rc_t INVALID
HW write reported invalid input.
bool operator!=(const l2_address_t &m) const
Comparison operator.
@ TABLE
Tables in which entries are added, e.g bridge/route-domains.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
const static ethertype_t FCOE
Ethertype FCoE.
const static mac_address_t ONE
An all 1's MAC address.
mac_address_t(const uint8_t bytes[6])
const static l2_address_t ONE
An all 1's L2 address.
l2_address_t(const uint8_t bytes[8], uint8_t n_bytes)
Type def of a L2 address as read from VPP.
std::string to_string() const
convert to string format for debug purposes
@ VIRTUAL_INTERFACE
virtual interfaces - those that depend on some real interface
@ INTERFACE
interfaces are the root of the dependency graph
std::string to_string() const
String conversion.
Type def of a Ethernet address.
const static handle_t INVALID
A value of an interface handle_t that means the itf does not exist.
bool operator==(const l2_address_t &m) const
Comparison operator.
const static ethertype_t ARP
Ethertype Arp.
@ BINDING
Then L2/objects that bind to interfaces, BD, ACLS, etc.
Error codes that VPP will return during a HW write.
bool operator!=(const handle_t &other) const
Comparison operator.
counter_t(const counter_t &c)
const static ethertype_t TRILL
Ethertype TRILL.
~rc_t()=default
Destructor.
direction_t(int v, const std::string s)
Constructor.
@ GLOBAL
Global Configuration has no dependency.
std::array< uint8_t, 6 > bytes
Underlying bytes array.
const static ethertype_t MAC_SECURITY
Ethertype MAC Security.