OpenSDN source code
|
#include <origin_vn.h>
Public Types | |
typedef boost::array< uint8_t, kSize > | bytes_type |
Public Member Functions | |
OriginVn () | |
OriginVn (as_t asn, uint32_t vn_idx) | |
OriginVn (const bytes_type &data) | |
bool | IsNull () |
bool | IsGlobal () const |
as_t | as_number () const |
int | vn_index () const |
const bytes_type & | GetExtCommunity () const |
const uint64_t | GetExtCommunityValue () const |
bool | operator< (const OriginVn &rhs) const |
bool | operator== (const OriginVn &rhs) const |
std::string | ToString () |
Static Public Member Functions | |
static OriginVn | FromString (const std::string &str, boost::system::error_code *error=NULL) |
Static Public Attributes | |
static const int | kSize = 8 |
static const int | kMinGlobalId = 8000000 |
static OriginVn | null_originvn |
Private Attributes | |
bytes_type | data_ |
Definition at line 16 of file origin_vn.h.
typedef boost::array<uint8_t, kSize> OriginVn::bytes_type |
Definition at line 21 of file origin_vn.h.
OriginVn::OriginVn | ( | ) |
Definition at line 18 of file origin_vn.cc.
OriginVn::OriginVn | ( | as_t | asn, |
uint32_t | vn_idx | ||
) |
|
explicit |
Definition at line 35 of file origin_vn.cc.
as_t OriginVn::as_number | ( | ) | const |
|
static |
|
inline |
Definition at line 33 of file origin_vn.h.
|
inline |
bool OriginVn::IsGlobal | ( | ) | const |
|
inline |
|
inline |
Definition at line 41 of file origin_vn.h.
|
inline |
Definition at line 44 of file origin_vn.h.
string OriginVn::ToString | ( | ) |
int OriginVn::vn_index | ( | ) | const |
|
private |
Definition at line 53 of file origin_vn.h.
|
static |
Definition at line 19 of file origin_vn.h.
|
static |
Definition at line 18 of file origin_vn.h.
|
static |
Definition at line 20 of file origin_vn.h.