#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) |
| |
◆ AddressFromString()
| IpAddress AddressFromString |
( |
const std::string & |
ip_address_str, |
|
|
boost::system::error_code * |
ec |
|
) |
| |
◆ GetHostIp()
| std::string GetHostIp |
( |
boost::asio::io_context * |
io_service, |
|
|
const std::string & |
hostname |
|
) |
| |
◆ GetIp4SubnetBroadcastAddress()
◆ GetVNFromRoutingInstance()
| std::string GetVNFromRoutingInstance |
( |
const std::string & |
vn | ) |
|
◆ Ip6AddressToU64Array()
| void Ip6AddressToU64Array |
( |
const Ip6Address & |
addr, |
|
|
uint64_t * |
arr, |
|
|
int |
size |
|
) |
| |
◆ IpToU64()
| void IpToU64 |
( |
const IpAddress & |
sip, |
|
|
const IpAddress & |
dip, |
|
|
uint64_t * |
sip_u, |
|
|
uint64_t * |
sip_l, |
|
|
uint64_t * |
dip_u, |
|
|
uint64_t * |
dip_l |
|
) |
| |
◆ IsIp4SubnetMember()
◆ IsIp6SubnetMember()
◆ NetmaskToPrefix()
| uint32_t NetmaskToPrefix |
( |
uint32_t |
netmask | ) |
|
◆ PrefixToIp6Netmask()
| IpAddress PrefixToIp6Netmask |
( |
uint32_t |
plen | ) |
|
◆ PrefixToIpNetmask()
| IpAddress PrefixToIpNetmask |
( |
uint32_t |
prefix_len | ) |
|
◆ ResolveCanonicalName() [1/2]
| std::string ResolveCanonicalName |
( |
| ) |
|
◆ ResolveCanonicalName() [2/2]
| std::string ResolveCanonicalName |
( |
const std::string & |
ipv4 | ) |
|
◆ ResolveCanonicalNameIPv6()
| std::string ResolveCanonicalNameIPv6 |
( |
const std::string & |
ipv6 | ) |
|
◆ U64ToIp()
| void U64ToIp |
( |
uint64_t |
sip_u, |
|
|
uint64_t |
sip_l, |
|
|
uint64_t |
dip_u, |
|
|
uint64_t |
dip_l, |
|
|
int |
family, |
|
|
IpAddress * |
sip, |
|
|
IpAddress * |
dip |
|
) |
| |
◆ U64ToIpv6()
| void U64ToIpv6 |
( |
uint64_t |
upper, |
|
|
uint64_t |
lower, |
|
|
IpAddress * |
ip |
|
) |
| |
◆ ValidateIPAddressString()
| bool ValidateIPAddressString |
( |
std::string |
ip_address_str, |
|
|
std::string * |
error_msg |
|
) |
| |
◆ ValidateServerEndpoints()
| bool ValidateServerEndpoints |
( |
std::vector< std::string > |
list, |
|
|
std::string * |
error_msg |
|
) |
| |
◆ VectorIpv6ToString()
| std::string VectorIpv6ToString |
( |
const std::vector< signed char > & |
ipv6 | ) |
|