FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
VOM::l2_address_t Struct Reference

Type def of a L2 address as read from VPP. More...

+ Collaboration diagram for VOM::l2_address_t:

Public Member Functions

 l2_address_t (const uint8_t bytes[8], uint8_t n_bytes)
 
 l2_address_t (std::initializer_list< uint8_t > bytes)
 
 l2_address_t (const mac_address_t &mac)
 
void to_bytes (uint8_t *array, uint8_t len) const
 Convert to byte array. More...
 
bool operator== (const l2_address_t &m) const
 Comparison operator. More...
 
bool operator!= (const l2_address_t &m) const
 Comparison operator. More...
 
std::string to_string () const
 String conversion. More...
 
mac_address_t to_mac () const
 MAC address conversion. More...
 

Data Fields

std::vector< uint8_t > bytes
 Underlying bytes array - filled from least to most significant. More...
 

Static Public Attributes

static const l2_address_t ONE
 An all 1's L2 address. More...
 
static const l2_address_t ZERO
 An all 0's L2 address. More...
 

Detailed Description

Type def of a L2 address as read from VPP.

Definition at line 265 of file types.hpp.

Constructor & Destructor Documentation

VOM::l2_address_t::l2_address_t ( const uint8_t  bytes[8],
uint8_t  n_bytes 
)

Definition at line 178 of file types.cpp.

VOM::l2_address_t::l2_address_t ( std::initializer_list< uint8_t >  bytes)

Definition at line 184 of file types.cpp.

VOM::l2_address_t::l2_address_t ( const mac_address_t mac)

Definition at line 189 of file types.cpp.

Member Function Documentation

bool VOM::l2_address_t::operator!= ( const l2_address_t m) const

Comparison operator.

Definition at line 244 of file types.cpp.

bool VOM::l2_address_t::operator== ( const l2_address_t m) const

Comparison operator.

Definition at line 238 of file types.cpp.

void VOM::l2_address_t::to_bytes ( uint8_t *  array,
uint8_t  len 
) const

Convert to byte array.

Definition at line 201 of file types.cpp.

+ Here is the caller graph for this function:

mac_address_t VOM::l2_address_t::to_mac ( ) const

MAC address conversion.

Definition at line 209 of file types.cpp.

+ Here is the caller graph for this function:

std::string VOM::l2_address_t::to_string ( void  ) const

String conversion.

Definition at line 219 of file types.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

std::vector<uint8_t> VOM::l2_address_t::bytes

Underlying bytes array - filled from least to most significant.

Definition at line 309 of file types.hpp.

const l2_address_t VOM::l2_address_t::ONE
static

An all 1's L2 address.

Definition at line 279 of file types.hpp.

const l2_address_t VOM::l2_address_t::ZERO
static

An all 0's L2 address.

Definition at line 284 of file types.hpp.


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