| OpenSDN source code
    | 
#include <ermvpn_route.h>

| Public Types | |
| enum | RouteType { NativeRoute = 0 , LocalTreeRoute = 1 , GlobalTreeRoute = 2 , Invalid = 255 } | 
| Public Member Functions | |
| ErmVpnPrefix () | |
| ErmVpnPrefix (uint8_t type, const RouteDistinguisher &rd, const Ip4Address &group, const Ip4Address &source) | |
| ErmVpnPrefix (uint8_t type, const RouteDistinguisher &rd, const Ip4Address &router_id, const Ip4Address &group, const Ip4Address &source) | |
| const std::string | GetType () const | 
| std::string | ToString () const | 
| std::string | ToXmppIdString () const | 
| bool | operator== (const ErmVpnPrefix &rhs) const | 
| uint8_t | type () const | 
| const RouteDistinguisher & | route_distinguisher () const | 
| Ip4Address | router_id () const | 
| Ip4Address | group () const | 
| Ip4Address | source () const | 
| void | set_route_distinguisher (const RouteDistinguisher &rd) | 
| void | BuildProtoPrefix (BgpProtoPrefix *prefix) const | 
| Static Public Member Functions | |
| static int | FromProtoPrefix (const BgpProtoPrefix &proto_prefix, ErmVpnPrefix *prefix) | 
| static int | FromProtoPrefix (BgpServer *server, const BgpProtoPrefix &proto_prefix, const BgpAttr *attr, const Address::Family family, ErmVpnPrefix *prefix, BgpAttrPtr *new_attr, uint32_t *label, uint32_t *l3_label) | 
| static ErmVpnPrefix | FromString (const std::string &str, boost::system::error_code *errorp=NULL) | 
| static bool | IsValidForBgp (uint8_t type) | 
| static bool | IsValid (uint8_t type) | 
| Private Attributes | |
| uint8_t | type_ | 
| RouteDistinguisher | rd_ | 
| Ip4Address | router_id_ | 
| Ip4Address | group_ | 
| Ip4Address | source_ | 
Definition at line 22 of file ermvpn_route.h.
| Enumerator | |
|---|---|
| NativeRoute | |
| LocalTreeRoute | |
| GlobalTreeRoute | |
| Invalid | |
Definition at line 24 of file ermvpn_route.h.
| ErmVpnPrefix::ErmVpnPrefix | ( | ) | 
Definition at line 34 of file ermvpn_route.cc.
| ErmVpnPrefix::ErmVpnPrefix | ( | uint8_t | type, | 
| const RouteDistinguisher & | rd, | ||
| const Ip4Address & | group, | ||
| const Ip4Address & | source | ||
| ) | 
Definition at line 37 of file ermvpn_route.cc.
| ErmVpnPrefix::ErmVpnPrefix | ( | uint8_t | type, | 
| const RouteDistinguisher & | rd, | ||
| const Ip4Address & | router_id, | ||
| const Ip4Address & | group, | ||
| const Ip4Address & | source | ||
| ) | 
Definition at line 42 of file ermvpn_route.cc.
| void ErmVpnPrefix::BuildProtoPrefix | ( | BgpProtoPrefix * | prefix | ) | const | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| const std::string ErmVpnPrefix::GetType | ( | ) | const | 
Definition at line 319 of file ermvpn_route.cc.
| 
 | inline | 
Definition at line 59 of file ermvpn_route.h.
| 
 | static | 
| 
 | static | 
| bool ErmVpnPrefix::operator== | ( | const ErmVpnPrefix & | rhs | ) | const | 
Definition at line 243 of file ermvpn_route.cc.
| 
 | inline | 
Definition at line 57 of file ermvpn_route.h.
| 
 | inline | 
Definition at line 58 of file ermvpn_route.h.
| 
 | inline | 
Definition at line 61 of file ermvpn_route.h.
| 
 | inline | 
Definition at line 60 of file ermvpn_route.h.
| string ErmVpnPrefix::ToString | ( | ) | const | 
| string ErmVpnPrefix::ToXmppIdString | ( | ) | const | 
| 
 | inline | 
Definition at line 56 of file ermvpn_route.h.
| 
 | private | 
Definition at line 69 of file ermvpn_route.h.
| 
 | private | 
Definition at line 67 of file ermvpn_route.h.
| 
 | private | 
Definition at line 68 of file ermvpn_route.h.
| 
 | private | 
Definition at line 70 of file ermvpn_route.h.
| 
 | private | 
Definition at line 66 of file ermvpn_route.h.