/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 | 63 in_addr_t selectIpv4Address(const in_addr ip, int16_t prefixlen, in selectIpv4Address() argument 66 return selectIpv4AddressInternal(ip, prefixlen, fn); in selectIpv4Address()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | InternetAddresses.cpp | 141 unsigned long prefixlen = strtoul(prefixString, &endptr, 10); in forString() local 145 if (prefixlen > maxlen) return false; in forString() 147 *prefix = IPPrefix(ip, prefixlen); in forString()
|
/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/staticlibs/device/com/android/net/module/util/netlink/ |
D | RtNetlinkAddressMessage.java | 190 short prefixlen, int flags, byte scope, int ifIndex, long preferred, long valid) { in newRtmNewAddressMessage() argument 204 new StructIfaddrMsg(family, prefixlen, (short) 0 /* flags */, scope, ifIndex); in newRtmNewAddressMessage() 222 short prefixlen, int ifIndex) { in newRtmDelAddressMessage() argument 248 final StructIfaddrMsg ifaddrmsg = new StructIfaddrMsg(family, prefixlen, in newRtmDelAddressMessage()
|
D | NetlinkUtils.java | 193 short prefixlen, int flags, byte scope, long preferred, long valid) { in sendRtmNewAddressRequest() argument 196 prefixlen, flags, scope, ifIndex, preferred, valid); in sendRtmNewAddressRequest() 214 short prefixlen) { in sendRtmDelAddressRequest() argument 217 prefixlen, ifIndex); in sendRtmDelAddressRequest()
|
/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 | 147 jint prefixlen) { in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() argument 160 in_addr v4 = {net::clat::selectIpv4Address(ip, prefixlen)}; in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() 163 address.c_str(), prefixlen); in com_android_server_connectivity_ClatCoordinator_selectIpv4Address()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | ClatCoordinatorTest.java | 210 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in selectIpv4Address() argument 212 if (INIT_V4ADDR_STRING.equals(v4addr) && INIT_V4ADDR_PREFIX_LEN == prefixlen) { in selectIpv4Address() 215 fail("unsupported args: " + v4addr + ", " + prefixlen); in selectIpv4Address() 605 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in testNotStartClatWithNativeFailureSelectIpv4Address() argument
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | ClatCoordinator.java | 181 public String selectIpv4Address(@NonNull String v4addr, int prefixlen) in selectIpv4Address() argument 183 return native_selectIpv4Address(v4addr, prefixlen); in selectIpv4Address() 864 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 | 317 final int prefixlen = ia.getNetworkPrefixLength(); in expectLocalOnlyAddresses() local 318 final LinkAddress la = new LinkAddress(addr, prefixlen); in expectLocalOnlyAddresses()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 245 private static LinkAddress ipv4LinkAddress(String addr, int prefixlen) in ipv4LinkAddress() argument 247 return new LinkAddress(InetAddress.getByName(addr), prefixlen); in ipv4LinkAddress()
|