1#include <xrpl/beast/net/IPAddressV4.h>
9 return ((addr.to_uint() & 0xff000000) ==
11 ((addr.to_uint() & 0xfff00000) ==
13 ((addr.to_uint() & 0xffff0000) ==
21 return !
is_private(addr) && !addr.is_multicast();
27 static char const* table =
"AAAABBCD";
28 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.