Home
last modified time | relevance | path

Searched refs:prefixlen (Results 1 – 12 of 12) 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.cpp63 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/
DInternetAddresses.cpp141 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/
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/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkAddressMessage.java190 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()
DNetlinkUtils.java193 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/
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.cpp147 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/
DClatCoordinatorTest.java210 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/
DClatCoordinator.java181 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/
DEthernetTetheringTest.java317 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/
DWifiDetailPreferenceController2Test.java245 private static LinkAddress ipv4LinkAddress(String addr, int prefixlen) in ipv4LinkAddress() argument
247 return new LinkAddress(InetAddress.getByName(addr), prefixlen); in ipv4LinkAddress()