OpenSDN source code
|
#include <address.h>
Public Types | |
enum | Family { UNSPEC = 0, INET = 1, INET6 = 2, INETVPN = 3, INET6VPN = 4, RTARGET = 5, EVPN = 6, ERMVPN = 7, MVPN = 8, INETMPLS = 9, NUM_FAMILIES } |
Public Member Functions | |
Address () | |
Static Public Member Functions | |
static Family | FamilyFromString (const std::string &family) |
static std::string | FamilyToString (Family fmly) |
static std::string | FamilyToTableString (Family family) |
static Family | VpnFamilyFromFamily (Family family) |
static Ip4Address | V4FromV4MappedV6 (const Ip6Address &v6_address) |
static Ip4Address | GetIp4SubnetAddress (const Ip4Address &prefix, uint16_t plen) |
static Ip6Address | GetIp6SubnetAddress (const Ip6Address &prefix, uint16_t plen) |
Static Public Attributes | |
static const uint8_t | kMaxV4Bytes = 4 |
static const uint8_t | kMaxV4PrefixLen = 32 |
static const uint8_t | kMaxV6Bytes = 16 |
static const uint8_t | kMaxV6PrefixLen = 128 |
Private Attributes | |
IpAddress | addr_ |
enum Address::Family |
Address::Address | ( | ) |
Definition at line 12 of file address.cc.
|
static |
Definition at line 54 of file address.cc.
|
static |
Definition at line 63 of file address.cc.
|
static |
Definition at line 67 of file address.cc.
|
static |
Definition at line 179 of file address.cc.
|
static |
Definition at line 200 of file address.cc.
|
static |
Definition at line 291 of file address.cc.
|
static |
Definition at line 71 of file address.cc.