mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
25 lines
522 B
C++
25 lines
522 B
C++
#ifndef BEAST_NET_IPADDRESSV6_H_INCLUDED
|
|
#define BEAST_NET_IPADDRESSV6_H_INCLUDED
|
|
|
|
#include <xrpl/beast/utility/instrumentation.h>
|
|
|
|
#include <boost/asio/ip/address_v6.hpp>
|
|
|
|
namespace beast {
|
|
namespace IP {
|
|
|
|
using AddressV6 = boost::asio::ip::address_v6;
|
|
|
|
/** Returns `true` if the address is a private unroutable address. */
|
|
bool
|
|
is_private(AddressV6 const& addr);
|
|
|
|
/** Returns `true` if the address is a public routable address. */
|
|
bool
|
|
is_public(AddressV6 const& addr);
|
|
|
|
} // namespace IP
|
|
} // namespace beast
|
|
|
|
#endif
|