#include "base/address_util.h"
#include <endian.h>
#include <boost/algorithm/string.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ip/host_name.hpp>
#include <boost/foreach.hpp>
Go to the source code of this file.
|
bool | IsIp4SubnetMember (const Ip4Address &ip, const Ip4Address &prefix_ip, uint16_t plen) |
|
bool | IsIp6SubnetMember (const Ip6Address &ip, const Ip6Address &subnet, uint8_t plen) |
|
std::string | ResolveCanonicalName () |
|
std::string | ResolveCanonicalName (const std::string &ipv4) |
|
std::string | ResolveCanonicalNameIPv6 (const std::string &ipv6) |
|
IpAddress | AddressFromString (const std::string &ip_address_str, boost::system::error_code *ec) |
|
Ip4Address | GetIp4SubnetBroadcastAddress (const Ip4Address &ip_prefix, uint16_t plen) |
|
bool | ValidateIPAddressString (std::string ip_address_str, std::string *error_msg) |
|
IpAddress | PrefixToIpNetmask (uint32_t prefix_len) |
|
uint32_t | NetmaskToPrefix (uint32_t netmask) |
|
IpAddress | PrefixToIp6Netmask (uint32_t plen) |
|
bool | ValidateServerEndpoints (std::vector< std::string > list, std::string *error_msg) |
|
std::string | GetHostIp (boost::asio::io_context *io_service, const std::string &hostname) |
|
std::string | GetVNFromRoutingInstance (const std::string &vn) |
|
void | IpToU64 (const IpAddress &sip, const IpAddress &dip, uint64_t *sip_u, uint64_t *sip_l, uint64_t *dip_u, uint64_t *dip_l) |
|
void | U64ToIpv6 (uint64_t upper, uint64_t lower, IpAddress *ip) |
|
void | U64ToIp (uint64_t sip_u, uint64_t sip_l, uint64_t dip_u, uint64_t dip_l, int family, IpAddress *sip, IpAddress *dip) |
|
void | Ip6AddressToU64Array (const Ip6Address &addr, uint64_t *arr, int size) |
|
std::string | VectorIpv6ToString (const std::vector< signed char > &ipv6) |
|
IpAddress AddressFromString |
( |
const std::string & |
ip_address_str, |
|
|
boost::system::error_code * |
ec |
|
) |
| |
std::string GetHostIp |
( |
boost::asio::io_context * |
io_service, |
|
|
const std::string & |
hostname |
|
) |
| |
std::string GetVNFromRoutingInstance |
( |
const std::string & |
vn | ) |
|
void Ip6AddressToU64Array |
( |
const Ip6Address & |
addr, |
|
|
uint64_t * |
arr, |
|
|
int |
size |
|
) |
| |
void IpToU64 |
( |
const IpAddress & |
sip, |
|
|
const IpAddress & |
dip, |
|
|
uint64_t * |
sip_u, |
|
|
uint64_t * |
sip_l, |
|
|
uint64_t * |
dip_u, |
|
|
uint64_t * |
dip_l |
|
) |
| |
uint32_t NetmaskToPrefix |
( |
uint32_t |
netmask | ) |
|
IpAddress PrefixToIp6Netmask |
( |
uint32_t |
plen | ) |
|
IpAddress PrefixToIpNetmask |
( |
uint32_t |
prefix_len | ) |
|
std::string ResolveCanonicalName |
( |
| ) |
|
std::string ResolveCanonicalName |
( |
const std::string & |
ipv4 | ) |
|
std::string ResolveCanonicalNameIPv6 |
( |
const std::string & |
ipv6 | ) |
|
void U64ToIp |
( |
uint64_t |
sip_u, |
|
|
uint64_t |
sip_l, |
|
|
uint64_t |
dip_u, |
|
|
uint64_t |
dip_l, |
|
|
int |
family, |
|
|
IpAddress * |
sip, |
|
|
IpAddress * |
dip |
|
) |
| |
void U64ToIpv6 |
( |
uint64_t |
upper, |
|
|
uint64_t |
lower, |
|
|
IpAddress * |
ip |
|
) |
| |
bool ValidateIPAddressString |
( |
std::string |
ip_address_str, |
|
|
std::string * |
error_msg |
|
) |
| |
bool ValidateServerEndpoints |
( |
std::vector< std::string > |
list, |
|
|
std::string * |
error_msg |
|
) |
| |
std::string VectorIpv6ToString |
( |
const std::vector< signed char > & |
ipv6 | ) |
|