FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
VOM::gbp_rule::next_hop_t Struct Reference

Representation of next hop. More...

Public Member Functions

 next_hop_t (const boost::asio::ip::address &ip, const mac_address_t &mac, uint32_t bd_id, uint32_t rd_id)
 Constructor for next_hop_t. More...
 
 ~next_hop_t ()=default
 default destructor More...
 
std::string to_string () const
 convert to string More...
 
bool operator< (const next_hop_t &nh) const
 less-than operator More...
 
bool operator== (const next_hop_t &nh) const
 comparison operator (for testing) More...
 
const boost::asio::ip::addressgetIp (void) const
 get the IP address More...
 
const mac_address_tgetMac (void) const
 get the mac address More...
 
const uint32_t getBdId (void) const
 get the bridge domain Id More...
 
const uint32_t getRdId (void) const
 get the route domain Id More...
 

Detailed Description

Representation of next hop.

Definition at line 30 of file gbp_rule.hpp.

Constructor & Destructor Documentation

◆ next_hop_t()

VOM::gbp_rule::next_hop_t::next_hop_t ( const boost::asio::ip::address ip,
const mac_address_t mac,
uint32_t  bd_id,
uint32_t  rd_id 
)

Constructor for next_hop_t.

Definition at line 21 of file gbp_rule.cpp.

◆ ~next_hop_t()

VOM::gbp_rule::next_hop_t::~next_hop_t ( )
default

default destructor

Member Function Documentation

◆ getBdId()

const uint32_t VOM::gbp_rule::next_hop_t::getBdId ( void  ) const

get the bridge domain Id

Definition at line 70 of file gbp_rule.cpp.

◆ getIp()

const boost::asio::ip::address & VOM::gbp_rule::next_hop_t::getIp ( void  ) const

get the IP address

Definition at line 58 of file gbp_rule.cpp.

◆ getMac()

const mac_address_t & VOM::gbp_rule::next_hop_t::getMac ( void  ) const

get the mac address

Definition at line 64 of file gbp_rule.cpp.

◆ getRdId()

const uint32_t VOM::gbp_rule::next_hop_t::getRdId ( void  ) const

get the route domain Id

Definition at line 76 of file gbp_rule.cpp.

◆ operator<()

bool VOM::gbp_rule::next_hop_t::operator< ( const next_hop_t nh) const

less-than operator

Definition at line 45 of file gbp_rule.cpp.

◆ operator==()

bool VOM::gbp_rule::next_hop_t::operator== ( const next_hop_t nh) const

comparison operator (for testing)

Definition at line 51 of file gbp_rule.cpp.

◆ to_string()

std::string VOM::gbp_rule::next_hop_t::to_string ( ) const

convert to string

Definition at line 33 of file gbp_rule.cpp.


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