5 #ifndef SRC_BGP_INET6_INET6_ROUTE_H_
6 #define SRC_BGP_INET6_INET6_ROUTE_H_
29 const Ip6Address::bytes_type
ToBytes()
const {
42 uint32_t *label, uint32_t *l3_label);
44 boost::system::error_code *errorp = NULL);
88 uint32_t l3_label = 0)
const;
120 #endif // SRC_BGP_INET6_INET6_ROUTE_H_
virtual void BuildBgpProtoNextHop(std::vector< uint8_t > &nh, IpAddress nexthop) const
static const uint8_t kMaxV6PrefixLen
virtual bool IsMoreSpecific(const std::string &match) const
virtual bool IsLess(const DBEntry &genrhs) const
boost::asio::ip::address IpAddress
virtual void SetKey(const DBRequestKey *reqkey)
static int FromProtoPrefix(const BgpProtoPrefix &proto_prefix, Inet6Prefix *prefix)
DISALLOW_COPY_AND_ASSIGN(Inet6Route)
static std::vector< Inet6Prefix > masks_
std::unique_ptr< DBRequestKey > KeyPtr
int CompareTo(const Inet6Prefix &rhs) const
Inet6Route(const Inet6Prefix &prefix)
boost::intrusive_ptr< const BgpAttr > BgpAttrPtr
static Inet6Prefix FromString(const std::string &str, boost::system::error_code *errorp=NULL)
Inet6Prefix operator&(const Inet6Prefix &rhs) const
virtual void BuildProtoPrefix(BgpProtoPrefix *prefix, const BgpAttr *attr=NULL, uint32_t label=0, uint32_t l3_label=0) const
boost::asio::ip::address_v6 Ip6Address
std::string ToString() const
Inet6Prefix(Ip6Address addr, int prefixlen)
virtual KeyPtr GetDBRequestKey() const
const Ip6Address::bytes_type ToBytes() const
Ip6Address ip6_addr() const
virtual std::string ToString() const
static const uint8_t kMaxV6PrefixLen
bool operator>(const Inet6Prefix &rhs) const
bool operator!=(const Inet6Prefix &rhs) const
bool operator<(const Inet6Prefix &rhs) const
static Inet6Prefix CalculateMaskFromPrefixlen(int prefixlen)
bool operator==(const Inet6Prefix &rhs) const
const Inet6Prefix & GetPrefix() const
Ip6Address::bytes_type ToBytes()
virtual bool IsLessSpecific(const std::string &match) const
virtual int CompareTo(const Route &rhs) const
bool IsMoreSpecific(const Inet6Prefix &rhs) const
static const Inet6Prefix & PrefixlenToMask(uint8_t prefix_len)