FD.io VPP  v20.05.1-6-gf53edbc3b
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...
 

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 252 of file prefix.hpp.

Constructor & Destructor Documentation

◆ mprefix_t() [1/6]

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

Default Constructor - creates ::/0.

Definition at line 497 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 474 of file prefix.cpp.

◆ mprefix_t() [3/6]

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

Definition at line 467 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 460 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 482 of file prefix.cpp.

◆ mprefix_t() [6/6]

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

Copy Constructor.

Definition at line 491 of file prefix.cpp.

◆ ~mprefix_t()

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

Destructor.

Definition at line 504 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 509 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.

Definition at line 527 of file prefix.cpp.

◆ mask_width()

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

Get the network mask width.

Definition at line 521 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 568 of file prefix.cpp.

◆ operator<()

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

Less than operator.

Definition at line 549 of file prefix.cpp.

◆ operator=()

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

Assignement.

Definition at line 539 of file prefix.cpp.

◆ operator==()

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

equals operator

Definition at line 562 of file prefix.cpp.

◆ src_address()

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

Definition at line 515 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 574 of file prefix.cpp.

+ 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 330 of file prefix.hpp.

◆ ZEROv6

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

The all Zeros v6 prefix.

Definition at line 335 of file prefix.hpp.


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