OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
address.cc File Reference
#include <base/address.h>
#include <map>
#include <boost/assign/list_of.hpp>
Include dependency graph for address.cc:

Go to the source code of this file.

Functions

static int CountDots (const string &str)
 
boost::system::error_code Ip4PrefixParse (const string &str, Ip4Address *addr, int *plen)
 
boost::system::error_code Ip4SubnetParse (const string &str, Ip4Address *addr, int *plen)
 
boost::system::error_code Inet6PrefixParse (const string &str, Ip6Address *addr, int *plen)
 
boost::system::error_code Inet6SubnetParse (const string &str, Ip6Address *addr, int *plen)
 

Variables

static const std::map< string,
Address::Family
fromString
 
static const std::map
< Address::Family, string > 
toString
 
static const std::map
< Address::Family, string > 
toTableName
 

Function Documentation

static int CountDots ( const string &  str)
static

Definition at line 91 of file address.cc.

boost::system::error_code Inet6PrefixParse ( const string &  str,
Ip6Address addr,
int *  plen 
)

Definition at line 144 of file address.cc.

boost::system::error_code Inet6SubnetParse ( const string &  str,
Ip6Address addr,
int *  plen 
)

Definition at line 162 of file address.cc.

Here is the call graph for this function:

boost::system::error_code Ip4PrefixParse ( const string &  str,
Ip4Address addr,
int *  plen 
)

Definition at line 107 of file address.cc.

Here is the call graph for this function:

boost::system::error_code Ip4SubnetParse ( const string &  str,
Ip4Address addr,
int *  plen 
)

Definition at line 131 of file address.cc.

Here is the call graph for this function:

Variable Documentation

const std::map<string, Address::Family> fromString
static
Initial value:
= boost::assign::map_list_of
("unspecified", Address::UNSPEC)
("inet", Address::INET)
("inet-labeled", Address::INETMPLS)
("inet6", Address::INET6)
("inet-vpn", Address::INETVPN)
("inet6-vpn", Address::INET6VPN)
("route-target", Address::RTARGET)
("e-vpn", Address::EVPN)
("inet-mvpn", Address::MVPN)
("erm-vpn", Address::ERMVPN)

Definition at line 16 of file address.cc.

const std::map<Address::Family, string> toString
static
Initial value:
= boost::assign::map_list_of
(Address::UNSPEC, "unspecified")
(Address::INET, "inet")
(Address::INETMPLS, "inet-labeled")
(Address::INET6, "inet6")
(Address::INETVPN, "inet-vpn")
(Address::INET6VPN, "inet6-vpn")
(Address::RTARGET, "route-target")
(Address::EVPN, "e-vpn")
(Address::MVPN, "inet-mvpn")
(Address::ERMVPN, "erm-vpn")

Definition at line 29 of file address.cc.

const std::map<Address::Family, string> toTableName
static
Initial value:
= boost::assign::map_list_of
(Address::UNSPEC, "unspecified")
(Address::INET, "inet")
(Address::INET6, "inet6")
(Address::INETVPN, "l3vpn")
(Address::INET6VPN, "l3vpn-inet6")
(Address::RTARGET, "rtarget")
(Address::EVPN, "evpn")
(Address::MVPN, "mvpn")
(Address::ERMVPN, "ermvpn")

Definition at line 42 of file address.cc.