#include <mvpn_route.h>
|
| MvpnPrefix () |
|
| MvpnPrefix (uint8_t type, const RouteDistinguisher &rd, const Ip4Address &originator) |
|
| MvpnPrefix (uint8_t type, const RouteDistinguisher &rd, const uint32_t asn) |
|
| MvpnPrefix (uint8_t type, const RouteDistinguisher &rd, const Ip4Address &group, const Ip4Address &source) |
|
| MvpnPrefix (uint8_t type, const Ip4Address &originator) |
|
| MvpnPrefix (uint8_t type, const RouteDistinguisher &rd, const Ip4Address &originator, const Ip4Address &group, const Ip4Address &source) |
|
| MvpnPrefix (uint8_t type, const RouteDistinguisher &rd, const uint32_t asn, const Ip4Address &group, const Ip4Address &source) |
|
Ip4Address | GetType3OriginatorFromType4Route () const |
|
void | SetLeafADPrefixFromSPMSIPrefix (const MvpnPrefix &prefix) |
|
void | SetSPMSIPrefixFromLeafADPrefix (const MvpnPrefix &prefix) |
|
std::string | ToString () const |
|
std::string | ToXmppIdString () const |
|
bool | operator== (const MvpnPrefix &rhs) const |
|
int | CompareTo (const MvpnPrefix &rhs) const |
|
uint8_t | type () const |
|
const RouteDistinguisher & | route_distinguisher () const |
|
Ip4Address | group () const |
|
Ip4Address | source () const |
|
Ip4Address | originator () const |
|
IpAddress | groupIpAddress () const |
|
IpAddress | sourceIpAddress () const |
|
IpAddress | originatorIpAddress () const |
|
void | set_originator (const Ip4Address &originator) |
|
uint32_t | asn () const |
|
void | set_route_distinguisher (const RouteDistinguisher &rd) |
|
uint8_t | ip_prefix_length () const |
|
void | BuildProtoPrefix (BgpProtoPrefix *prefix) const |
|
const std::string | GetType () const |
|
|
static bool | GetTypeFromString (MvpnPrefix *prefix, const std::string &str, boost::system::error_code *errorp, size_t *pos1) |
|
static bool | GetRDFromString (MvpnPrefix *prefix, const std::string &str, size_t pos1, size_t *pos2, boost::system::error_code *ec) |
|
static bool | GetOriginatorFromString (MvpnPrefix *prefix, const std::string &str, size_t pos1, boost::system::error_code *errorp) |
|
static bool | GetAsnFromString (MvpnPrefix *prefix, const std::string &str, size_t pos1, size_t *pos2, boost::system::error_code *ec) |
|
static bool | GetSourceFromString (MvpnPrefix *prefix, const std::string &str, size_t pos1, size_t *pos2, boost::system::error_code *ec) |
|
static bool | GetGroupFromString (MvpnPrefix *prefix, const std::string &str, size_t pos1, size_t *pos2, boost::system::error_code *ec, bool last=false) |
|
static int | SpmsiAdRouteFromProtoPrefix (const BgpProtoPrefix &proto_prefix, MvpnPrefix *prefix, size_t rd_offset) |
|
Definition at line 23 of file mvpn_route.h.
Enumerator |
---|
Unspecified |
|
IntraASPMSIADRoute |
|
InterASPMSIADRoute |
|
SPMSIADRoute |
|
LeafADRoute |
|
SourceActiveADRoute |
|
SharedTreeJoinRoute |
|
SourceTreeJoinRoute |
|
Definition at line 38 of file mvpn_route.h.
MvpnPrefix::MvpnPrefix |
( |
| ) |
|
MvpnPrefix::MvpnPrefix |
( |
uint8_t |
type, |
|
|
const RouteDistinguisher & |
rd, |
|
|
const uint32_t |
asn |
|
) |
| |
MvpnPrefix::MvpnPrefix |
( |
uint8_t |
type, |
|
|
const Ip4Address & |
originator |
|
) |
| |
uint32_t MvpnPrefix::asn |
( |
| ) |
const |
|
inline |
int MvpnPrefix::CompareTo |
( |
const MvpnPrefix & |
rhs | ) |
const |
MvpnPrefix MvpnPrefix::FromString |
( |
const std::string & |
str, |
|
|
boost::system::error_code * |
errorp = NULL |
|
) |
| |
|
static |
bool MvpnPrefix::GetAsnFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
size_t |
pos1, |
|
|
size_t * |
pos2, |
|
|
boost::system::error_code * |
ec |
|
) |
| |
|
staticprivate |
bool MvpnPrefix::GetGroupFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
size_t |
pos1, |
|
|
size_t * |
pos2, |
|
|
boost::system::error_code * |
ec, |
|
|
bool |
last = false |
|
) |
| |
|
staticprivate |
bool MvpnPrefix::GetOriginatorFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
size_t |
pos1, |
|
|
boost::system::error_code * |
errorp |
|
) |
| |
|
staticprivate |
bool MvpnPrefix::GetRDFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
size_t |
pos1, |
|
|
size_t * |
pos2, |
|
|
boost::system::error_code * |
ec |
|
) |
| |
|
staticprivate |
bool MvpnPrefix::GetSourceFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
size_t |
pos1, |
|
|
size_t * |
pos2, |
|
|
boost::system::error_code * |
ec |
|
) |
| |
|
staticprivate |
const string MvpnPrefix::GetType |
( |
| ) |
const |
Ip4Address MvpnPrefix::GetType3OriginatorFromType4Route |
( |
| ) |
const |
bool MvpnPrefix::GetTypeFromString |
( |
MvpnPrefix * |
prefix, |
|
|
const std::string & |
str, |
|
|
boost::system::error_code * |
errorp, |
|
|
size_t * |
pos1 |
|
) |
| |
|
staticprivate |
IpAddress MvpnPrefix::groupIpAddress |
( |
| ) |
const |
|
inline |
uint8_t MvpnPrefix::ip_prefix_length |
( |
| ) |
const |
|
inline |
bool MvpnPrefix::IsValid |
( |
uint8_t |
type | ) |
|
|
static |
bool MvpnPrefix::operator== |
( |
const MvpnPrefix & |
rhs | ) |
const |
IpAddress MvpnPrefix::originatorIpAddress |
( |
| ) |
const |
|
inline |
void MvpnPrefix::set_originator |
( |
const Ip4Address & |
originator | ) |
|
void MvpnPrefix::SetLeafADPrefixFromSPMSIPrefix |
( |
const MvpnPrefix & |
prefix | ) |
|
void MvpnPrefix::SetSPMSIPrefixFromLeafADPrefix |
( |
const MvpnPrefix & |
prefix | ) |
|
IpAddress MvpnPrefix::sourceIpAddress |
( |
| ) |
const |
|
inline |
int MvpnPrefix::SpmsiAdRouteFromProtoPrefix |
( |
const BgpProtoPrefix & |
proto_prefix, |
|
|
MvpnPrefix * |
prefix, |
|
|
size_t |
rd_offset |
|
) |
| |
|
staticprivate |
string MvpnPrefix::ToString |
( |
| ) |
const |
string MvpnPrefix::ToXmppIdString |
( |
| ) |
const |
uint8_t MvpnPrefix::type |
( |
| ) |
const |
|
inline |
uint32_t MvpnPrefix::asn_ |
|
private |
uint8_t MvpnPrefix::ip_prefixlen_ |
|
private |
const size_t MvpnPrefix::kAsnSize = 4 |
|
static |
const size_t MvpnPrefix::kLeafADRouteSize |
|
static |
const size_t MvpnPrefix::kPrefixBytes = 2 |
|
static |
const size_t MvpnPrefix::kSourceActiveADRouteSize |
|
static |
const size_t MvpnPrefix::kSourceTreeJoinRouteSize |
|
static |
const size_t MvpnPrefix::kSPMSIADRouteSize |
|
static |
std::vector<uint8_t> MvpnPrefix::rt_key_ |
|
private |
uint8_t MvpnPrefix::type_ |
|
private |
The documentation for this class was generated from the following files: