/packages/modules/Connectivity/service/native/libs/libclat/ |
D | clatutils.cpp | 94 void makeChecksumNeutral(in6_addr* const v6, const in_addr v4, const in6_addr& nat64Prefix) { in makeChecksumNeutral() argument 96 arc4random_buf(&v6->s6_addr[8], 8); in makeChecksumNeutral() 104 uint16_t middlebytes = (v6->s6_addr[11] << 8) + v6->s6_addr[12]; in makeChecksumNeutral() 108 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral() 111 v6->s6_addr[11] = delta >> 8; in makeChecksumNeutral() 112 v6->s6_addr[12] = delta & 0xff; in makeChecksumNeutral() 117 in6_addr* const v6, const uint32_t mark) { in generateIpv6Address() argument 149 *v6 = sin6.sin6_addr; in generateIpv6Address() 151 if (IN6_IS_ADDR_UNSPECIFIED(v6) || IN6_IS_ADDR_LOOPBACK(v6) || IN6_IS_ADDR_LINKLOCAL(v6) || in generateIpv6Address() 152 IN6_IS_ADDR_SITELOCAL(v6) || IN6_IS_ADDR_ULA(v6)) { in generateIpv6Address() [all …]
|
D | clatutils_test.cpp | 127 in6_addr v6 = v6InterfaceAddr; in TEST_F() local 128 makeChecksumNeutral(&v6, v4, nat64Prefix); in TEST_F() 131 EXPECT_EQ(0, memcmp(&v6, &v6InterfaceAddr, 8)); in TEST_F() 134 uint64_t iid = *(uint64_t*)(&v6.s6_addr[8]); in TEST_F() 144 ip_checksum_add(0, &v6, sizeof(v6))); in TEST_F() 148 inet_ntop(AF_INET6, &v6, v6Str, sizeof(v6Str)); in TEST_F() 206 in6_addr v6; in TEST_F() local 207 EXPECT_EQ(1, inet_pton(AF_INET6, "::", &v6)); // initialize as zero in TEST_F() 210 EXPECT_EQ(-ENETUNREACH, generateIpv6Address(tun.name().c_str(), v4, nat64Prefix, &v6, 0u)); in TEST_F() 211 EXPECT_TRUE(IN6_IS_ADDR_ULA(&v6)); in TEST_F()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | ClatCoordinator.java | 220 public void addAnycastSetsockopt(@NonNull FileDescriptor sock, String v6, int ifindex) in addAnycastSetsockopt() argument 222 native_addAnycastSetsockopt(sock, v6, ifindex); in addAnycastSetsockopt() 228 public void configurePacketSocket(@NonNull FileDescriptor sock, String v6, int ifindex) in configurePacketSocket() argument 230 native_configurePacketSocket(sock, v6, ifindex); in configurePacketSocket() 238 @NonNull String v4, @NonNull String v6) throws IOException { in startClatd() argument 239 return native_startClatd(tunfd, readsock6, writesock6, iface, pfx96, v4, v6); in startClatd() 327 public final Inet6Address v6; field in ClatCoordinator.ClatdTracker 334 int v4ifIndex, @NonNull Inet4Address v4, @NonNull Inet6Address v6, in ClatdTracker() argument 341 this.v6 = v6; in ClatdTracker() 356 && Objects.equals(this.v6, that.v6) in equals() [all …]
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 43 in6_addr v6; member 44 } ip{.v6 = IN6ADDR_ANY_INIT}; // written and read in network-byte order 64 const in6_addr v6a = a.ip.v6; 65 const in6_addr v6b = b.ip.v6; 88 const in6_addr v6a = a.ip.v6; 89 const in6_addr v6b = b.ip.v6; 141 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress() 148 {.v6 = ipv6}}) {} in IPAddress() 150 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress() 185 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetdEventListenerServiceTest.java | 97 final int v6 = 0x86dd; in testWakeupEventLogging() local 107 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 108 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 110 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 112 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 113 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 114 wakeupEvent("rmnet0", uids[8], v6, udp, EmptyArray.BYTE, srcIp6, dstIp6, sport, dport, now, in testWakeupEventLogging() 178 final int v6 = 0x86dd; in testWakeupStatsLogging() local 189 wakeupEvent("wlan0", -1, v6, icmp6, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupStatsLogging() 194 wakeupEvent("wlan0", 1000, v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupStatsLogging() [all …]
|
D | ClatCoordinatorTest.java | 272 public void addAnycastSetsockopt(@NonNull FileDescriptor sock, String v6, int ifindex) in addAnycastSetsockopt() argument 275 && XLAT_LOCAL_IPV6ADDR_STRING.equals(v6) in addAnycastSetsockopt() 277 fail("unsupported args: " + sock + ", " + v6 + ", " + ifindex); in addAnycastSetsockopt() 284 public void configurePacketSocket(@NonNull FileDescriptor sock, String v6, int ifindex) in configurePacketSocket() argument 287 && XLAT_LOCAL_IPV6ADDR_STRING.equals(v6) in configurePacketSocket() 289 fail("unsupported args: " + sock + ", " + v6 + ", " + ifindex); in configurePacketSocket() 298 @NonNull String v4, @NonNull String v6) throws IOException { in startClatd() argument 305 && XLAT_LOCAL_IPV6ADDR_STRING.equals(v6)) { in startClatd() 309 + ", " + iface + ", " + v4 + ", " + v6); in startClatd() 689 public void addAnycastSetsockopt(@NonNull FileDescriptor sock, String v6, in testNotStartClatWithNativeFailureAddAnycastSetsockopt() argument [all …]
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | InternetAddresses.cpp | 46 const in6_addr v6 = mData.ip.v6; in toString() local 47 inet_ntop(AF_INET6, &v6, repr, sizeof(repr)); in toString() 111 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix() 113 mData.ip.v6.s6_addr[i] = 0U; in IPPrefix()
|
/packages/modules/Connectivity/service/native/libs/libclat/include/libclat/ |
D | clatutils.h | 25 void makeChecksumNeutral(in6_addr* const v6, const in_addr v4, const in6_addr& nat64Prefix); 27 in6_addr* const v6, const uint32_t mark);
|
/packages/modules/Connectivity/service/jni/ |
D | com_android_server_connectivity_ClatCoordinator.cpp | 201 in6_addr v6; in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() local 202 if (net::clat::generateIpv6Address(iface.c_str(), v4, nat64Prefix, &v6, mark)) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 210 if (!inet_ntop(AF_INET6, (void*)&v6, addrstr, sizeof(addrstr))) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 362 jobject writeSockJavaFd, jstring iface, jstring pfx96, jstring v4, jstring v6) { in com_android_server_connectivity_ClatCoordinator_startClatd() argument 366 ScopedUtfChars v6Str(env, v6); in com_android_server_connectivity_ClatCoordinator_startClatd()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | LinkPropertiesTest.java | 1275 final IpPrefix v6 = new IpPrefix("64:ff9b::/96"); in testRouteAddWithSameKey() local 1276 lp.addRoute(new RouteInfo(v6, address("fe80::1"), "wlan0", RTN_UNICAST, 1280)); in testRouteAddWithSameKey() 1278 lp.addRoute(new RouteInfo(v6, address("fe80::1"), "wlan0", RTN_UNICAST, 1500)); in testRouteAddWithSameKey()
|
/packages/modules/DnsResolver/ |
D | Android.bp | 179 // networkCreatePhysical and networkCreateVpn were deprecated from netd_aidl_interface v6.
|
/packages/modules/Virtualization/zipfuse/testdata/dir/ |
D | file2 | 260 v6//amXFhPmH72jNUXRrfcoWbckxxEMZuPn9VJP3/WFJmtOK2O/witG7mFDv+Lg7kgS3Kw9jUUJf
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfNewTest.kt | 2325 "${if (version == APF_VERSION_6) "--v6" else "" } --trace | less \n"
|
/packages/apps/DocumentsUI/tests/res/raw/ |
D | images_tar | 794 �+�Q�i�0���xZ�1��R�;��P�s]������2�1��͌���Z�Ҭ��wJ10�m�S�˜��ۑ�+WK��4a<v6�(H�:N��S�H�����ַ�/}… 935 …�Z��&d����=}���e� M��L��SF��p�ϡ��#kX���0K�iz�<��<Ե�I܆m6;��[���{��v6�|B�v�xS[���̬r9�k�:… 1276 …��sk1��2I=q["�l�$�62=}ksOH��oPOz嬵Xe�7$n����Z�Kw�zTI˗�C(Y�&zpz~]-�v6ܷ5+4�����;��L�Tg<… 1289 …mȻ'D����<�5�[����4Z�%%���>>���c��?�t�[bX��9'�߿Њ�C#m۰X�ֽ_�Ի[��?PV�v6�3�~L��5��E�o,z�k�6�7… 2941 ������[�b�%)���;���i���+��%N~��OS�v6 4409 …����$��3�:�i����3�� ��T���Q�H��iZX��c�a8U�SJ��A�����ݎI�0x&�Ť���<��v6�僳���2����"������… 6333 �� �%�������Mbw��(�Fy��X���5�[� �x���#�E���jʝJ���v6�(Ij|�����爭n��@��2���-�\q�y��|5��_�… 7555 …N�L��ZV�o;"�ܱ@������}�� �Mw̞���]�D������=��~"�T��S�I�Y��8��O��z��z��N;�1�v6|}��>�m�4岻�w6�89]�8… 9547 ${UB7ؖ���]\K���:� �9�x��v6^ d��2;=���?�5�U"��;��T���_��Kq2D��ܳ6s����IN��7ͨ�l��Xg�n�z,��G… 9861 ��P��.II_c������we��Uf�v6���7��۸���{�g�v�WQ��x���1WW�k˓0�:�*�\jQ�r�#>����2��8㩩)*��Wֽ��… [all …]
|