OpenSDN source code
|
#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_ |
Definition at line 16 of file inet_route.h.
|
inline |
Definition at line 18 of file inet_route.h.
|
inline |
Definition at line 19 of file inet_route.h.
|
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.
|
static |
Definition at line 15 of file inet_route.cc.
|
static |
|
static |
|
inline |
Definition at line 25 of file inet_route.h.
bool Ip4Prefix::IsMoreSpecific | ( | const Ip4Prefix & | rhs | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 27 of file inet_route.h.
string Ip4Prefix::ToString | ( | ) | const |
|
private |
Definition at line 61 of file inet_route.h.
|
private |
Definition at line 62 of file inet_route.h.