1#include <xrpl/beast/net/IPAddressV4.h>
9 return ((addr.to_uint() & 0xff000000) == 0x0a000000) ||
10 ((addr.to_uint() & 0xfff00000) == 0xac100000) ||
11 ((addr.to_uint() & 0xffff0000) == 0xc0a80000) ||
18 return !
is_private(addr) && !addr.is_multicast();
24 static char const* table =
"AAAABBCD";
25 return table[(addr.to_uint() & 0xE0000000) >> 29];
char get_class(AddressV4 const &address)
Returns the address class for the given address.
bool is_public(Address const &addr)
Returns true if the address is a public routable address.
boost::asio::ip::address_v4 AddressV4
bool is_private(Address const &addr)
Returns true if the address is a private unroutable address.