OpenSDN source code
|
#include <origin_vn.h>
Public Types | |
typedef boost::array< uint8_t, kSize > | bytes_type |
Public Member Functions | |
OriginVn4ByteAs () | |
OriginVn4ByteAs (as_t asn, uint32_t vn_idx) | |
OriginVn4ByteAs (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 OriginVn4ByteAs &rhs) const |
bool | operator== (const OriginVn4ByteAs &rhs) const |
std::string | ToString () |
Static Public Member Functions | |
static OriginVn4ByteAs | 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 OriginVn4ByteAs | null_originvn |
Private Attributes | |
bytes_type | data_ |
Definition at line 56 of file origin_vn.h.
typedef boost::array<uint8_t, kSize> OriginVn4ByteAs::bytes_type |
Definition at line 61 of file origin_vn.h.
OriginVn4ByteAs::OriginVn4ByteAs | ( | ) |
OriginVn4ByteAs::OriginVn4ByteAs | ( | as_t | asn, |
uint32_t | vn_idx | ||
) |
|
explicit |
as_t OriginVn4ByteAs::as_number | ( | ) | const |
|
static |
|
inline |
Definition at line 73 of file origin_vn.h.
|
inline |
bool OriginVn4ByteAs::IsGlobal | ( | ) | const |
|
inline |
|
inline |
Definition at line 81 of file origin_vn.h.
|
inline |
Definition at line 84 of file origin_vn.h.
std::string OriginVn4ByteAs::ToString | ( | ) |
int OriginVn4ByteAs::vn_index | ( | ) | const |
|
private |
Definition at line 93 of file origin_vn.h.
|
static |
Definition at line 59 of file origin_vn.h.
|
static |
Definition at line 58 of file origin_vn.h.
|
static |
Definition at line 60 of file origin_vn.h.