/packages/modules/Connectivity/service/native/libs/libclat/ |
D | clatutils.cpp | 63 in_addr_t selectIpv4Address(const in_addr ip, const int16_t prefixlen) { in selectIpv4Address() argument 64 return selectIpv4AddressInternal(ip, prefixlen, isIpv4AddressFree); in selectIpv4Address() 69 in_addr_t selectIpv4AddressInternal(const in_addr ip, const int16_t prefixlen, in selectIpv4AddressInternal() argument 75 if (prefixlen < 16 || prefixlen > 32) return INADDR_NONE; in selectIpv4AddressInternal() 78 const uint32_t mask = 0xffffffff >> (32 - prefixlen) << (32 - prefixlen); in selectIpv4AddressInternal()
|
D | clatutils_test.cpp | 59 in_addr_t selectIpv4Address(const in_addr ip, int16_t prefixlen, in selectIpv4Address() argument 62 return selectIpv4AddressInternal(ip, prefixlen, fn); in selectIpv4Address()
|
/packages/modules/Connectivity/service/native/libs/libclat/include/libclat/ |
D | clatutils.h | 24 in_addr_t selectIpv4Address(const in_addr ip, const int16_t prefixlen); 34 in_addr_t selectIpv4AddressInternal(const in_addr ip, const int16_t prefixlen,
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinator.java | 291 private static IpPrefix makeUniqueLocalPrefix(byte[] in6addr, short subnetId, int prefixlen) { in makeUniqueLocalPrefix() argument 301 return new IpPrefix(addr, prefixlen); in makeUniqueLocalPrefix()
|
/packages/modules/Connectivity/service/jni/ |
D | com_android_server_connectivity_ClatCoordinator.cpp | 158 jint prefixlen) { in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() argument 171 in_addr v4 = {net::clat::selectIpv4Address(ip, prefixlen)}; in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() 174 address.c_str(), prefixlen); in com_android_server_connectivity_ClatCoordinator_selectIpv4Address()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | ClatCoordinatorTest.java | 209 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in selectIpv4Address() argument 211 if (INIT_V4ADDR_STRING.equals(v4addr) && INIT_V4ADDR_PREFIX_LEN == prefixlen) { in selectIpv4Address() 214 fail("unsupported args: " + v4addr + ", " + prefixlen); in selectIpv4Address() 606 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in testNotStartClatWithNativeFailureSelectIpv4Address() argument
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | ClatCoordinator.java | 176 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in selectIpv4Address() argument 178 return native_selectIpv4Address(v4addr, prefixlen); in selectIpv4Address() 931 private static native String native_selectIpv4Address(String v4addr, int prefixlen) in native_selectIpv4Address() argument
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 296 final int prefixlen = ia.getNetworkPrefixLength(); in expectLocalOnlyAddresses() local 297 final LinkAddress la = new LinkAddress(addr, prefixlen); in expectLocalOnlyAddresses()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 241 private static LinkAddress ipv4LinkAddress(String addr, int prefixlen) in ipv4LinkAddress() argument 243 return new LinkAddress(InetAddress.getByName(addr), prefixlen); in ipv4LinkAddress()
|