/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | DscpPolicyValue.java | 75 final byte[] addr6 = new byte[16]; in toIpv4MappedAddressBytes() 78 addr6[10] = (byte) 0xff; in toIpv4MappedAddressBytes() 79 addr6[11] = (byte) 0xff; in toIpv4MappedAddressBytes() 80 addr6[12] = addr4[0]; in toIpv4MappedAddressBytes() 81 addr6[13] = addr4[1]; in toIpv4MappedAddressBytes() 82 addr6[14] = addr4[2]; in toIpv4MappedAddressBytes() 83 addr6[15] = addr4[3]; in toIpv4MappedAddressBytes() 85 return addr6; in toIpv4MappedAddressBytes()
|
/packages/modules/Connectivity/clatd/ |
D | translate.c | 66 int is_in_plat_subnet(const struct in6_addr *addr6) { in is_in_plat_subnet() argument 68 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0); in is_in_plat_subnet() 76 uint32_t ipv6_addr_to_ipv4_addr(const struct in6_addr *addr6) { in ipv6_addr_to_ipv4_addr() argument 77 if (is_in_plat_subnet(addr6)) { in ipv6_addr_to_ipv4_addr() 79 return addr6->s6_addr32[3]; in ipv6_addr_to_ipv4_addr() 80 } else if (IN6_ARE_ADDR_EQUAL(addr6, &Global_Clatd_Config.ipv6_local_subnet)) { in ipv6_addr_to_ipv4_addr() 94 struct in6_addr addr6; in ipv4_addr_to_ipv6_addr() local 101 addr6 = Global_Clatd_Config.plat_subnet; in ipv4_addr_to_ipv6_addr() 102 addr6.s6_addr32[3] = addr4; in ipv4_addr_to_ipv6_addr() 103 return addr6; in ipv4_addr_to_ipv6_addr()
|
D | translate.h | 43 int is_in_plat_subnet(const struct in6_addr *addr6);
|
/packages/modules/adb/sysdeps/posix/ |
D | network.cpp | 49 struct sockaddr_in6* addr6 = reinterpret_cast<sockaddr_in6*>(addr); in loopback_addr6() local 50 *addrlen = sizeof(*addr6); in loopback_addr6() 52 addr6->sin6_family = AF_INET6; in loopback_addr6() 53 addr6->sin6_addr = in6addr_loopback; in loopback_addr6() 54 addr6->sin6_port = htons(port); in loopback_addr6()
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 1011 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*) addr; in _get_scope() local 1012 if (IN6_IS_ADDR_MULTICAST(&addr6->sin6_addr)) { in _get_scope() 1013 return IPV6_ADDR_MC_SCOPE(&addr6->sin6_addr); in _get_scope() 1014 } else if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr) || in _get_scope() 1015 IN6_IS_ADDR_LINKLOCAL(&addr6->sin6_addr)) { in _get_scope() 1021 } else if (IN6_IS_ADDR_SITELOCAL(&addr6->sin6_addr)) { in _get_scope() 1070 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*) addr; in _get_label() local 1071 if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr)) { in _get_label() 1073 } else if (IN6_IS_ADDR_V4MAPPED(&addr6->sin6_addr)) { in _get_label() 1075 } else if (IN6_IS_ADDR_6TO4(&addr6->sin6_addr)) { in _get_label() [all …]
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 168 char addr6[16]; in Java_android_net_cts_DnsTest_testNativeDns() local 169 inet_pton(AF_INET6, GoogleDNSIpV6Address, addr6); in Java_android_net_cts_DnsTest_testNativeDns() 170 my_hostent = gethostbyaddr(addr6, sizeof(addr6), AF_INET6); in Java_android_net_cts_DnsTest_testNativeDns()
|
/packages/modules/Connectivity/service/native/libs/libclat/ |
D | clatutils_test.cpp | 174 struct in6_addr addr6; in TEST_F() local 175 EXPECT_EQ(1, inet_pton(AF_INET6, "2001:db8::f00", &addr6)); in TEST_F() 176 EXPECT_EQ(0, configure_packet_socket(s, &addr6, v6Iface.ifindex())); in TEST_F()
|
/packages/modules/Connectivity/tests/native/connectivity_native_test/ |
D | connectivity_native_test.cpp | 135 struct sockaddr_in6 addr6 = { .sin6_family = family, .sin6_port = htons(*port) }; in openSocket() local 136 ret = bind(sock, (struct sockaddr*) &addr6, sizeof(addr6)); in openSocket()
|
/packages/modules/Connectivity/service/jni/ |
D | com_android_server_connectivity_ClatCoordinator.cpp | 311 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt() argument 318 ScopedUtfChars addrStr(env, addr6); in com_android_server_connectivity_ClatCoordinator_addAnycastSetsockopt() 337 JNIEnv* env, jclass clazz, jobject javaFd, jstring addr6, jint ifindex) { in com_android_server_connectivity_ClatCoordinator_configurePacketSocket() argument 338 ScopedUtfChars addrStr(env, addr6); in com_android_server_connectivity_ClatCoordinator_configurePacketSocket()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 65 private static final Inet6Address IPV6_SRC_ADDR = addr6("2001:db8::1"); 66 private static final Inet6Address IPV6_DST_ADDR = addr6("2001:db8::2"); 932 private static Inet6Address addr6(String addr) { in addr6() method in PacketBuilderTest
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 1877 final byte[] addr6 = new byte[16]; in toIpv4MappedAddressBytes() 1878 addr6[10] = (byte) 0xff; in toIpv4MappedAddressBytes() 1879 addr6[11] = (byte) 0xff; in toIpv4MappedAddressBytes() 1880 addr6[12] = addr4[0]; in toIpv4MappedAddressBytes() 1881 addr6[13] = addr4[1]; in toIpv4MappedAddressBytes() 1882 addr6[14] = addr4[2]; in toIpv4MappedAddressBytes() 1883 addr6[15] = addr4[3]; in toIpv4MappedAddressBytes() 1884 return addr6; in toIpv4MappedAddressBytes()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinatorTest.java | 412 final LinkAddress addr6 = requestDownstreamAddress(mHotspotIpServer, in testChooseAvailablePrefix() local 414 assertEquals("Wrong prefix: ", new LinkAddress("192.168.8.5/24"), addr6); in testChooseAvailablePrefix()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 223 in6_addr addr6() const noexcept { return mData.ip.v6; } in addr6() function
|