FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
A prefix defintion. More...
Public Member Functions | |
mprefix_t () | |
Default Constructor - creates ::/0. More... | |
mprefix_t (const boost::asio::ip::address &saddr, const boost::asio::ip::address &gaddr) | |
Constructor for (S,G) More... | |
mprefix_t (const boost::asio::ip::address &gaddr) | |
mprefix_t (const boost::asio::ip::address &gaddr, uint8_t len) | |
mprefix_t (const boost::asio::ip::address &saddr, const boost::asio::ip::address &gaddr, uint16_t len) | |
Constructor for (S,G) More... | |
mprefix_t (const mprefix_t &) | |
Copy Constructor. More... | |
~mprefix_t () | |
Destructor. More... | |
const boost::asio::ip::address & | grp_address () const |
Get the address. More... | |
const boost::asio::ip::address & | src_address () const |
uint8_t | mask_width () const |
Get the network mask width. More... | |
mprefix_t & | operator= (const mprefix_t &) |
Assignement. More... | |
bool | operator< (const mprefix_t &o) const |
Less than operator. More... | |
bool | operator== (const mprefix_t &o) const |
equals operator More... | |
bool | operator!= (const mprefix_t &o) const |
not equal opartor More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
l3_proto_t | l3_proto () const |
Get the L3 protocol. More... | |
void | to_vpp (uint8_t *is_ip6, uint8_t *saddr, uint8_t *gaddr, uint16_t *len) const |
Static Public Attributes | |
static const mprefix_t | ZERO |
The all Zeros prefix. More... | |
static const mprefix_t | ZEROv6 |
The all Zeros v6 prefix. More... | |
VOM::route::mprefix_t::mprefix_t | ( | ) |
Default Constructor - creates ::/0.
Definition at line 466 of file prefix.cpp.
VOM::route::mprefix_t::mprefix_t | ( | const boost::asio::ip::address & | saddr, |
const boost::asio::ip::address & | gaddr | ||
) |
Constructor for (S,G)
Definition at line 443 of file prefix.cpp.
VOM::route::mprefix_t::mprefix_t | ( | const boost::asio::ip::address & | gaddr | ) |
Definition at line 436 of file prefix.cpp.
VOM::route::mprefix_t::mprefix_t | ( | const boost::asio::ip::address & | gaddr, |
uint8_t | len | ||
) |
Definition at line 429 of file prefix.cpp.
VOM::route::mprefix_t::mprefix_t | ( | const boost::asio::ip::address & | saddr, |
const boost::asio::ip::address & | gaddr, | ||
uint16_t | len | ||
) |
Constructor for (S,G)
Definition at line 451 of file prefix.cpp.
VOM::route::mprefix_t::mprefix_t | ( | const mprefix_t & | o | ) |
Copy Constructor.
Definition at line 460 of file prefix.cpp.
VOM::route::mprefix_t::~mprefix_t | ( | ) |
Destructor.
Definition at line 473 of file prefix.cpp.
const boost::asio::ip::address & VOM::route::mprefix_t::grp_address | ( | ) | const |
Get the address.
Definition at line 478 of file prefix.cpp.
l3_proto_t VOM::route::mprefix_t::l3_proto | ( | ) | const |
Get the L3 protocol.
uint8_t VOM::route::mprefix_t::mask_width | ( | ) | const |
Get the network mask width.
Definition at line 490 of file prefix.cpp.
not equal opartor
Definition at line 536 of file prefix.cpp.
Less than operator.
Definition at line 517 of file prefix.cpp.
route::mprefix_t & VOM::route::mprefix_t::operator= | ( | const mprefix_t & | o | ) |
Assignement.
Definition at line 507 of file prefix.cpp.
equals operator
Definition at line 530 of file prefix.cpp.
const boost::asio::ip::address & VOM::route::mprefix_t::src_address | ( | ) | const |
std::string VOM::route::mprefix_t::to_string | ( | void | ) | const |
convert to string format for debug purposes
Definition at line 542 of file prefix.cpp.
void VOM::route::mprefix_t::to_vpp | ( | uint8_t * | is_ip6, |
uint8_t * | saddr, | ||
uint8_t * | gaddr, | ||
uint16_t * | len | ||
) | const |
Definition at line 496 of file prefix.cpp.
|
static |
The all Zeros prefix.
Definition at line 291 of file prefix.hpp.
|
static |
The all Zeros v6 prefix.
Definition at line 296 of file prefix.hpp.