FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
VOM::route::mprefix_t Class Reference

A prefix defintion. More...

+ Collaboration diagram for VOM::route::mprefix_t:

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::addressgrp_address () const
 Get the address. More...
 
const boost::asio::ip::addresssrc_address () const
 
uint8_t mask_width () const
 Get the network mask width. More...
 
mprefix_toperator= (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...
 

Detailed Description

A prefix defintion.

Address + length

Definition at line 213 of file prefix.hpp.

Constructor & Destructor Documentation

◆ mprefix_t() [1/6]

VOM::route::mprefix_t::mprefix_t ( )

Default Constructor - creates ::/0.

Definition at line 466 of file prefix.cpp.

◆ mprefix_t() [2/6]

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.

◆ mprefix_t() [3/6]

VOM::route::mprefix_t::mprefix_t ( const boost::asio::ip::address gaddr)

Definition at line 436 of file prefix.cpp.

◆ mprefix_t() [4/6]

VOM::route::mprefix_t::mprefix_t ( const boost::asio::ip::address gaddr,
uint8_t  len 
)

Definition at line 429 of file prefix.cpp.

◆ mprefix_t() [5/6]

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.

◆ mprefix_t() [6/6]

VOM::route::mprefix_t::mprefix_t ( const mprefix_t o)

Copy Constructor.

Definition at line 460 of file prefix.cpp.

◆ ~mprefix_t()

VOM::route::mprefix_t::~mprefix_t ( )

Destructor.

Definition at line 473 of file prefix.cpp.

Member Function Documentation

◆ grp_address()

const boost::asio::ip::address & VOM::route::mprefix_t::grp_address ( ) const

Get the address.

Definition at line 478 of file prefix.cpp.

+ Here is the caller graph for this function:

◆ l3_proto()

l3_proto_t VOM::route::mprefix_t::l3_proto ( ) const

Get the L3 protocol.

◆ mask_width()

uint8_t VOM::route::mprefix_t::mask_width ( ) const

Get the network mask width.

Definition at line 490 of file prefix.cpp.

+ Here is the caller graph for this function:

◆ operator!=()

bool VOM::route::mprefix_t::operator!= ( const mprefix_t o) const

not equal opartor

Definition at line 536 of file prefix.cpp.

◆ operator<()

bool VOM::route::mprefix_t::operator< ( const mprefix_t o) const

Less than operator.

Definition at line 517 of file prefix.cpp.

◆ operator=()

route::mprefix_t & VOM::route::mprefix_t::operator= ( const mprefix_t o)

Assignement.

Definition at line 507 of file prefix.cpp.

◆ operator==()

bool VOM::route::mprefix_t::operator== ( const mprefix_t o) const

equals operator

Definition at line 530 of file prefix.cpp.

◆ src_address()

const boost::asio::ip::address & VOM::route::mprefix_t::src_address ( ) const

Definition at line 484 of file prefix.cpp.

+ Here is the caller graph for this function:

◆ to_string()

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.

+ Here is the caller graph for this function:

◆ to_vpp()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ ZERO

const route::mprefix_t VOM::route::mprefix_t::ZERO
static

The all Zeros prefix.

Definition at line 291 of file prefix.hpp.

◆ ZEROv6

const route::mprefix_t VOM::route::mprefix_t::ZEROv6
static

The all Zeros v6 prefix.

Definition at line 296 of file prefix.hpp.


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