OpenSDN source code
|
#include <rtarget_prefix.h>
Public Member Functions | |
RTargetPrefix () | |
RTargetPrefix (const BgpProtoPrefix &prefix) | |
RTargetPrefix (as_t as, RouteTarget rtarget) | |
std::string | ToString () const |
RouteTarget | rtarget () const |
as_t | as () const |
void | BuildProtoPrefix (BgpProtoPrefix *prefix) const |
int | CompareTo (const RTargetPrefix &rhs) const |
bool | operator== (const RTargetPrefix &rhs) const |
Static Public Member Functions | |
static int | FromProtoPrefix (const BgpProtoPrefix &proto_prefix, RTargetPrefix *prefix) |
static int | FromProtoPrefix (BgpServer *server, const BgpProtoPrefix &proto_prefix, const BgpAttr *attr, const Address::Family family, RTargetPrefix *prefix, BgpAttrPtr *new_attr, uint32_t *label, uint32_t *l3_label) |
static RTargetPrefix | FromString (const std::string &str, boost::system::error_code *errorp=NULL) |
Static Public Attributes | |
static const std::string | kDefaultPrefixString = "0:target:0:0" |
Private Attributes | |
as_t | as_ |
RouteTarget | rtarget_ |
Definition at line 16 of file rtarget_prefix.h.
RTargetPrefix::RTargetPrefix | ( | ) |
Definition at line 16 of file rtarget_prefix.cc.
|
explicit |
|
inline |
Definition at line 22 of file rtarget_prefix.h.
|
inline |
Definition at line 40 of file rtarget_prefix.h.
void RTargetPrefix::BuildProtoPrefix | ( | BgpProtoPrefix * | prefix | ) | const |
int RTargetPrefix::CompareTo | ( | const RTargetPrefix & | rhs | ) | const |
Definition at line 107 of file rtarget_prefix.cc.
|
static |
|
static |
|
static |
|
inline |
|
inline |
Definition at line 39 of file rtarget_prefix.h.
string RTargetPrefix::ToString | ( | ) | const |
|
private |
Definition at line 48 of file rtarget_prefix.h.
|
static |
Definition at line 18 of file rtarget_prefix.h.
|
private |
Definition at line 49 of file rtarget_prefix.h.