20 #include <ripple/beast/net/IPAddressV4.h>
31 return ((addr.to_ulong() & 0xff000000) ==
33 ((addr.to_ulong() & 0xfff00000) ==
35 ((addr.to_ulong() & 0xffff0000) ==
43 return !
is_private(addr) && !addr.is_multicast();
49 static char const* table =
"AAAABBCD";
50 return table[(addr.to_ulong() & 0xE0000000) >> 29];