Home
last modified time | relevance | path

Searched refs:prefixlen (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils.cpp63 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()
Dclatutils_test.cpp59 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/
Dclatutils.h24 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/
DIPv6TetheringCoordinator.java291 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/
Dcom_android_server_connectivity_ClatCoordinator.cpp158 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/
DClatCoordinatorTest.java209 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/
DClatCoordinator.java176 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/
DEthernetTetheringTest.java296 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/
DWifiDetailPreferenceController2Test.java241 private static LinkAddress ipv4LinkAddress(String addr, int prefixlen) in ipv4LinkAddress() argument
243 return new LinkAddress(InetAddress.getByName(addr), prefixlen); in ipv4LinkAddress()