OpenSDN source code
Inet6Prefix Class Reference

#include <inet6_route.h>

Public Member Functions

 Inet6Prefix ()
 
 Inet6Prefix (Ip6Address addr, int prefixlen)
 
int CompareTo (const Inet6Prefix &rhs) const
 
Ip6Address addr () const
 
Ip6Address ip6_addr () const
 
const Ip6Address::bytes_type ToBytes () const
 
int prefixlen () const
 
std::string ToString () const
 
bool operator== (const Inet6Prefix &rhs) const
 
bool operator!= (const Inet6Prefix &rhs) const
 
bool operator< (const Inet6Prefix &rhs) const
 
bool operator> (const Inet6Prefix &rhs) const
 
bool IsMoreSpecific (const Inet6Prefix &rhs) const
 
Inet6Prefix operator& (const Inet6Prefix &rhs) const
 

Static Public Member Functions

static int FromProtoPrefix (const BgpProtoPrefix &proto_prefix, Inet6Prefix *prefix)
 
static int FromProtoPrefix (BgpServer *server, const BgpProtoPrefix &proto_prefix, const BgpAttr *attr, const Address::Family family, Inet6Prefix *prefix, BgpAttrPtr *new_attr, uint32_t *label, uint32_t *l3_label)
 
static Inet6Prefix FromString (const std::string &str, boost::system::error_code *errorp=NULL)
 

Static Public Attributes

static const uint8_t kMaxV6PrefixLen = Address::kMaxV6PrefixLen
 

Private Member Functions

Ip6Address::bytes_type ToBytes ()
 

Private Attributes

Ip6Address ip6_addr_
 
int prefixlen_
 

Detailed Description

Definition at line 16 of file inet6_route.h.

Constructor & Destructor Documentation

◆ Inet6Prefix() [1/2]

Inet6Prefix::Inet6Prefix ( )
inline

Definition at line 20 of file inet6_route.h.

◆ Inet6Prefix() [2/2]

Inet6Prefix::Inet6Prefix ( Ip6Address  addr,
int  prefixlen 
)
inline

Definition at line 21 of file inet6_route.h.

Member Function Documentation

◆ addr()

Ip6Address Inet6Prefix::addr ( ) const
inline

Definition at line 26 of file inet6_route.h.

◆ CompareTo()

int Inet6Prefix::CompareTo ( const Inet6Prefix rhs) const

Definition at line 42 of file inet6_route.cc.

◆ FromProtoPrefix() [1/2]

int Inet6Prefix::FromProtoPrefix ( BgpServer server,
const BgpProtoPrefix proto_prefix,
const BgpAttr attr,
const Address::Family  family,
Inet6Prefix prefix,
BgpAttrPtr new_attr,
uint32_t *  label,
uint32_t *  l3_label 
)
static

Definition at line 27 of file inet6_route.cc.

Here is the call graph for this function:

◆ FromProtoPrefix() [2/2]

int Inet6Prefix::FromProtoPrefix ( const BgpProtoPrefix proto_prefix,
Inet6Prefix prefix 
)
static

Definition at line 15 of file inet6_route.cc.

◆ FromString()

Inet6Prefix Inet6Prefix::FromString ( const std::string &  str,
boost::system::error_code *  errorp = NULL 
)
static

Definition at line 58 of file inet6_route.cc.

Here is the call graph for this function:

◆ ip6_addr()

Ip6Address Inet6Prefix::ip6_addr ( ) const
inline

Definition at line 27 of file inet6_route.h.

◆ IsMoreSpecific()

bool Inet6Prefix::IsMoreSpecific ( const Inet6Prefix rhs) const

Definition at line 69 of file inet6_route.cc.

Here is the call graph for this function:

◆ operator!=()

bool Inet6Prefix::operator!= ( const Inet6Prefix rhs) const
inline

Definition at line 50 of file inet6_route.h.

Here is the call graph for this function:

◆ operator&()

Inet6Prefix Inet6Prefix::operator& ( const Inet6Prefix rhs) const

Definition at line 81 of file inet6_route.cc.

Here is the call graph for this function:

◆ operator<()

bool Inet6Prefix::operator< ( const Inet6Prefix rhs) const
inline

Definition at line 53 of file inet6_route.h.

Here is the call graph for this function:

◆ operator==()

bool Inet6Prefix::operator== ( const Inet6Prefix rhs) const
inline

Definition at line 47 of file inet6_route.h.

Here is the call graph for this function:

◆ operator>()

bool Inet6Prefix::operator> ( const Inet6Prefix rhs) const
inline

Definition at line 57 of file inet6_route.h.

Here is the call graph for this function:

◆ prefixlen()

int Inet6Prefix::prefixlen ( ) const
inline

Definition at line 33 of file inet6_route.h.

◆ ToBytes() [1/2]

Ip6Address::bytes_type Inet6Prefix::ToBytes ( )
inlineprivate

Definition at line 68 of file inet6_route.h.

◆ ToBytes() [2/2]

const Ip6Address::bytes_type Inet6Prefix::ToBytes ( ) const
inline

Definition at line 29 of file inet6_route.h.

◆ ToString()

string Inet6Prefix::ToString ( ) const

Definition at line 36 of file inet6_route.cc.

Here is the call graph for this function:

Member Data Documentation

◆ ip6_addr_

Ip6Address Inet6Prefix::ip6_addr_
private

Definition at line 70 of file inet6_route.h.

◆ kMaxV6PrefixLen

const uint8_t Inet6Prefix::kMaxV6PrefixLen = Address::kMaxV6PrefixLen
static

Definition at line 18 of file inet6_route.h.

◆ prefixlen_

int Inet6Prefix::prefixlen_
private

Definition at line 71 of file inet6_route.h.


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