mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d). This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
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
|