OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Ip4Prefix Class Reference

#include <inet_route.h>

Public Member Functions

 Ip4Prefix ()
 
 Ip4Prefix (Ip4Address addr, int prefixlen)
 
int CompareTo (const Ip4Prefix &rhs) const
 
Ip4Address addr () const
 
Ip4Address ip4_addr () const
 
int prefixlen () const
 
std::string ToString () const
 
bool operator== (const Ip4Prefix &rhs) const
 
bool operator!= (const Ip4Prefix &rhs) const
 
bool operator< (const Ip4Prefix &rhs) const
 
bool operator> (const Ip4Prefix &rhs) const
 
bool IsMoreSpecific (const Ip4Prefix &rhs) const
 

Static Public Member Functions

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

Private Attributes

Ip4Address ip4_addr_
 
int prefixlen_
 

Detailed Description

Definition at line 16 of file inet_route.h.

Constructor & Destructor Documentation

Ip4Prefix::Ip4Prefix ( )
inline

Definition at line 18 of file inet_route.h.

Ip4Prefix::Ip4Prefix ( Ip4Address  addr,
int  prefixlen 
)
inline

Definition at line 19 of file inet_route.h.

Member Function Documentation

Ip4Address Ip4Prefix::addr ( ) const
inline

Definition at line 24 of file inet_route.h.

int Ip4Prefix::CompareTo ( const Ip4Prefix rhs) const

Definition at line 68 of file inet_route.cc.

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

Definition at line 15 of file inet_route.cc.

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

Definition at line 27 of file inet_route.cc.

Here is the call graph for this function:

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

Definition at line 84 of file inet_route.cc.

Here is the call graph for this function:

Ip4Address Ip4Prefix::ip4_addr ( ) const
inline

Definition at line 25 of file inet_route.h.

bool Ip4Prefix::IsMoreSpecific ( const Ip4Prefix rhs) const

Definition at line 96 of file inet_route.cc.

Here is the call graph for this function:

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

Definition at line 45 of file inet_route.h.

Here is the call graph for this function:

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

Definition at line 48 of file inet_route.h.

Here is the call graph for this function:

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

Definition at line 42 of file inet_route.h.

Here is the call graph for this function:

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

Definition at line 52 of file inet_route.h.

Here is the call graph for this function:

int Ip4Prefix::prefixlen ( ) const
inline

Definition at line 27 of file inet_route.h.

string Ip4Prefix::ToString ( ) const

Definition at line 60 of file inet_route.cc.

Here is the call graph for this function:

Member Data Documentation

Ip4Address Ip4Prefix::ip4_addr_
private

Definition at line 61 of file inet_route.h.

int Ip4Prefix::prefixlen_
private

Definition at line 62 of file inet_route.h.


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