OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::Inet6Prefix ( )
inline

Definition at line 20 of file inet6_route.h.

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

Definition at line 21 of file inet6_route.h.

Member Function Documentation

Ip6Address Inet6Prefix::addr ( ) const
inline

Definition at line 26 of file inet6_route.h.

int Inet6Prefix::CompareTo ( const Inet6Prefix rhs) const

Definition at line 42 of file inet6_route.cc.

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

Definition at line 15 of file inet6_route.cc.

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:

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:

Ip6Address Inet6Prefix::ip6_addr ( ) const
inline

Definition at line 27 of file inet6_route.h.

bool Inet6Prefix::IsMoreSpecific ( const Inet6Prefix rhs) const

Definition at line 69 of file inet6_route.cc.

Here is the call graph for this function:

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:

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

Definition at line 81 of file inet6_route.cc.

Here is the call graph for this function:

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:

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:

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:

int Inet6Prefix::prefixlen ( ) const
inline

Definition at line 33 of file inet6_route.h.

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

Definition at line 29 of file inet6_route.h.

Ip6Address::bytes_type Inet6Prefix::ToBytes ( )
inlineprivate

Definition at line 68 of file inet6_route.h.

string Inet6Prefix::ToString ( ) const

Definition at line 36 of file inet6_route.cc.

Here is the call graph for this function:

Member Data Documentation

Ip6Address Inet6Prefix::ip6_addr_
private

Definition at line 70 of file inet6_route.h.

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

Definition at line 18 of file inet6_route.h.

int Inet6Prefix::prefixlen_
private

Definition at line 71 of file inet6_route.h.


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