5 #ifndef SRC_BGP_ORIGIN_VN_ORIGIN_VN_H_
6 #define SRC_BGP_ORIGIN_VN_ORIGIN_VN_H_
8 #include <boost/array.hpp>
9 #include <boost/system/error_code.hpp>
50 boost::system::error_code *error = NULL);
90 boost::system::error_code *error = NULL);
static OriginVn4ByteAs null_originvn
boost::array< uint8_t, kSize > bytes_type
const uint64_t GetExtCommunityValue() const
OriginVn4ByteAs(const bytes_type &data)
static const int kMinGlobalId
bool operator<(const OriginVn4ByteAs &rhs) const
const bytes_type & GetExtCommunity() const
static OriginVn4ByteAs FromString(const std::string &str, boost::system::error_code *error=NULL)
OriginVn4ByteAs(as_t asn, uint32_t vn_idx)
bool operator==(const OriginVn4ByteAs &rhs) const
bool operator<(const OriginVn &rhs) const
const uint64_t GetExtCommunityValue() const
bool operator==(const OriginVn &rhs) const
const bytes_type & GetExtCommunity() const
static const int kMinGlobalId
static OriginVn null_originvn
static OriginVn FromString(const std::string &str, boost::system::error_code *error=NULL)
boost::array< uint8_t, kSize > bytes_type
static uint64_t get_value(const uint8_t *data, int size)