/third_party/node/deps/cares/src/lib/ |
D | ares_getnameinfo.c | 51 struct sockaddr_in6 addr6; member 71 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int scopeid, 81 struct sockaddr_in6 *addr6 = NULL; in ares_getnameinfo() local 95 addr6 = CARES_INADDR_CAST(struct sockaddr_in6 *, sa); in ares_getnameinfo() 96 port = addr6->sin6_port; in ares_getnameinfo() 140 ares_inet_ntop(AF_INET6, &addr6->sin6_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo() 143 append_scopeid(addr6, flags, ipbuf, sizeof(ipbuf)); in ares_getnameinfo() 181 memcpy(&niquery->addr.addr6, addr6, sizeof(niquery->addr.addr6)); in ares_getnameinfo() 182 ares_gethostbyaddr(channel, &addr6->sin6_addr, in ares_getnameinfo() 207 service = lookup_service(niquery->addr.addr6.sin6_port, in nameinfo_callback() [all …]
|
D | ares__sortaddrinfo.c | 93 const struct sockaddr_in6 *addr6 = CARES_INADDR_CAST(const struct sockaddr_in6 *, addr); in get_scope() local 94 if (IN6_IS_ADDR_MULTICAST(&addr6->sin6_addr)) in get_scope() 96 return ARES_IPV6_ADDR_MC_SCOPE(&addr6->sin6_addr); in get_scope() 98 else if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr) || in get_scope() 99 IN6_IS_ADDR_LINKLOCAL(&addr6->sin6_addr)) in get_scope() 107 else if (IN6_IS_ADDR_SITELOCAL(&addr6->sin6_addr)) in get_scope() 153 const struct sockaddr_in6 *addr6 = CARES_INADDR_CAST(const struct sockaddr_in6 *, addr); in get_label() local 154 if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr)) in get_label() 158 else if (IN6_IS_ADDR_V4MAPPED(&addr6->sin6_addr)) in get_label() 162 else if (ARES_IN6_IS_ADDR_6TO4(&addr6->sin6_addr)) in get_label() [all …]
|
D | ares__readaddrinfo.c | 189 struct ares_in6_addr addr6; in ares__readaddrinfo() local 190 if (ares_inet_pton(AF_INET6, txtaddr, &addr6) == 1) in ares__readaddrinfo() 192 status = ares_append_ai_node(AF_INET6, port, 0, &addr6, &nodes); in ares__readaddrinfo()
|
D | ares_private.h | 141 struct ares_in6_addr addr6; member 147 #define addrV6 addr.addr6 251 struct ares_in6_addr addr6; member 256 struct ares_in6_addr addr6; member
|
D | ares__addrinfo_localhost.c | 106 struct ares_in6_addr addr6; in ares__default_loopback_addrs() local 107 ares_inet_pton(AF_INET6, "::1", &addr6); in ares__default_loopback_addrs() 108 status = ares_append_ai_node(AF_INET6, port, 0, &addr6, nodes); in ares__default_loopback_addrs()
|
/third_party/lwip/test/unit/ip6/ |
D | test_ip6.c | 148 ip6_addr_t addr6; in START_TEST() local 158 memset(&addr6, 0, sizeof(addr6)); in START_TEST() 159 ret = ip6addr_aton(full_ipv6_addr, &addr6); in START_TEST() 161 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 168 memset(&addr6, 0, sizeof(addr6)); in START_TEST() 169 ret = ip6addr_aton(shortened_ipv6_addr, &addr6); in START_TEST() 171 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 178 memset(&addr6, 0, sizeof(addr6)); in START_TEST() 179 ret = ip6addr_aton(shortened_ipv4_mapped_addr, &addr6); in START_TEST() 181 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() [all …]
|
/third_party/libuv/test/ |
D | test-udp-ipv6.c | 89 const struct sockaddr_in6* addr6; in is_from_client() local 96 addr6 = (struct sockaddr_in6*) addr; in is_from_client() 97 r = uv_inet_ntop(addr->sa_family, &addr6->sin6_addr, dst, sizeof(dst)); in is_from_client() 99 printf("from [%.*s]:%d\n", (int) sizeof(dst), dst, addr6->sin6_port); in is_from_client() 100 if (addr6->sin6_port != client_port) in is_from_client() 146 struct sockaddr_in6 addr6; in do_test() local 154 ASSERT(0 == uv_ip6_addr("::0", TEST_PORT, &addr6)); in do_test() 159 r = uv_udp_bind(&server, (const struct sockaddr*) &addr6, bind_flags); in do_test() 162 addr6_len = sizeof(addr6); in do_test() 163 ASSERT(uv_udp_getsockname(&server, (struct sockaddr*) &addr6, &addr6_len) == 0); in do_test() [all …]
|
D | test-ip-name.c | 31 struct sockaddr_in6 addr6; member 40 struct sockaddr_in6* addr6 = &test_addr.addr6; in TEST_IMPL() local 51 ASSERT_EQ(0, uv_ip6_addr("fe80::2acf:daff:fedd:342a", TEST_PORT, addr6)); in TEST_IMPL() 52 ASSERT_EQ(0, uv_ip6_name(addr6, dst, INET6_ADDRSTRLEN)); in TEST_IMPL()
|
D | test-connect-unspecified.c | 39 struct sockaddr_in6 addr6; in TEST_IMPL() local 53 ASSERT(uv_ip6_addr("::", TEST_PORT, &addr6) == 0); in TEST_IMPL() 56 (const struct sockaddr*) &addr6, in TEST_IMPL()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/lib/ |
D | librpc-tirpc.c | 31 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr; in bound_socket() local 43 addr6->sin6_family = AF_INET6; in bound_socket() 44 addr6->sin6_port = 0; in bound_socket() 45 addr6->sin6_addr = in6addr_any; in bound_socket() 46 slen = sizeof(*addr6); in bound_socket()
|
/third_party/node/test/cctest/ |
D | test_sockaddr.cc | 146 SocketAddress addr6(reinterpret_cast<const sockaddr*>(&storage[5])); in TEST() 182 CHECK_EQ(addr2.compare(addr6), SocketAddress::CompareResult::SAME); in TEST() 183 CHECK_EQ(addr1.compare(addr6), SocketAddress::CompareResult::LESS_THAN); in TEST() 184 CHECK_EQ(addr6.compare(addr1), SocketAddress::CompareResult::GREATER_THAN); in TEST() 186 CHECK(addr1 <= addr6); in TEST() 187 CHECK(addr1 < addr6); in TEST() 188 CHECK(addr6 > addr1); in TEST() 189 CHECK(addr6 >= addr1); in TEST() 190 CHECK(addr2 >= addr6); in TEST()
|
/third_party/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 211 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in lws_interface_to_sa() 229 memset((char *)&addr6->sin6_addr, 0, in lws_interface_to_sa() 231 addr6->sin6_addr.s6_addr[10] = 0xff; in lws_interface_to_sa() 232 addr6->sin6_addr.s6_addr[11] = 0xff; in lws_interface_to_sa() 233 memcpy(&addr6->sin6_addr.s6_addr[12], in lws_interface_to_sa() 244 memcpy(&addr6->sin6_addr, in lws_interface_to_sa() 260 if (inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) in lws_interface_to_sa()
|
/third_party/curl/lib/ |
D | curl_addrinfo.c | 263 struct sockaddr_in6 *addr6; in Curl_he2ai() local 326 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 328 memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr)); in Curl_he2ai() 329 addr6->sin6_family = (CURL_SA_FAMILY_T)(he->h_addrtype); in Curl_he2ai() 330 addr6->sin6_port = htons((unsigned short)port); in Curl_he2ai() 574 struct sockaddr_in6 *addr6; in Curl_addrinfo_set_port() local 585 addr6 = (void *)ca->ai_addr; /* storage area for this info */ in Curl_addrinfo_set_port() 586 addr6->sin6_port = htons((unsigned short)port); in Curl_addrinfo_set_port()
|
/third_party/libuv/src/win/ |
D | udp.c | 650 struct sockaddr_in6 addr6; in uv__udp_set_membership6() local 666 if (uv_ip6_addr(interface_addr, 0, &addr6)) in uv__udp_set_membership6() 668 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() 756 struct sockaddr_in6 addr6; in uv__udp_set_source_membership6() local 777 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6() 780 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6() 812 struct sockaddr_in6 addr6; in uv_udp_set_membership() local 816 else if (uv_ip6_addr(multicast_addr, 0, &addr6) == 0) in uv_udp_set_membership() 817 return uv__udp_set_membership6(handle, &addr6, interface_addr, membership); in uv_udp_set_membership() 870 struct sockaddr_in6* addr6; in uv_udp_set_multicast_interface() local [all …]
|
/third_party/node/deps/uv/src/win/ |
D | udp.c | 650 struct sockaddr_in6 addr6; in uv__udp_set_membership6() local 666 if (uv_ip6_addr(interface_addr, 0, &addr6)) in uv__udp_set_membership6() 668 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() 756 struct sockaddr_in6 addr6; in uv__udp_set_source_membership6() local 777 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6() 780 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6() 812 struct sockaddr_in6 addr6; in uv_udp_set_membership() local 816 else if (uv_ip6_addr(multicast_addr, 0, &addr6) == 0) in uv_udp_set_membership() 817 return uv__udp_set_membership6(handle, &addr6, interface_addr, membership); in uv_udp_set_membership() 870 struct sockaddr_in6* addr6; in uv_udp_set_multicast_interface() local [all …]
|
/third_party/node/deps/cares/src/tools/ |
D | ahost.c | 63 struct ares_in6_addr addr6; in main() local 138 else if (ares_inet_pton(AF_INET6, *argv, &addr6) == 1) in main() 140 ares_gethostbyaddr(channel, &addr6, sizeof(addr6), AF_INET6, callback, in main()
|
D | adig.c | 226 else if (ares_inet_pton(AF_INET6, optarg, &srvr->addr.addr6) > 0) in main() 246 memcpy(&srvr->addr.addr6, hostent->h_addr, in main() 247 sizeof(srvr->addr.addr6)); in main() 843 struct ares_in6_addr addr6; in convert_query() member 859 if (ares_inet_pton(AF_INET6, *name_p, &addr.addr6) == 1) in convert_query() 862 const unsigned char *ip = (const unsigned char*) &addr.addr6; in convert_query() 863 int max_i = (int)sizeof(addr.addr6) - 1; in convert_query()
|
/third_party/node/deps/uv/src/unix/ |
D | udp.c | 895 struct sockaddr_in6 addr6; in uv__udp_set_membership6() local 900 if (uv_ip6_addr(interface_addr, 0, &addr6)) in uv__udp_set_membership6() 902 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() 993 struct sockaddr_in6 addr6; in uv__udp_set_source_membership6() local 1004 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6() 1007 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6() 1106 struct sockaddr_in6 addr6; in uv_udp_set_membership() local 1113 } else if (uv_ip6_addr(multicast_addr, 0, &addr6) == 0) { in uv_udp_set_membership() 1117 return uv__udp_set_membership6(handle, &addr6, interface_addr, membership); in uv_udp_set_membership() 1314 struct sockaddr_in6* addr6; in uv_udp_set_multicast_interface() local [all …]
|
/third_party/libuv/src/unix/ |
D | udp.c | 895 struct sockaddr_in6 addr6; in uv__udp_set_membership6() local 900 if (uv_ip6_addr(interface_addr, 0, &addr6)) in uv__udp_set_membership6() 902 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() 993 struct sockaddr_in6 addr6; in uv__udp_set_source_membership6() local 1004 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6() 1007 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6() 1106 struct sockaddr_in6 addr6; in uv_udp_set_membership() local 1113 } else if (uv_ip6_addr(multicast_addr, 0, &addr6) == 0) { in uv_udp_set_membership() 1117 return uv__udp_set_membership6(handle, &addr6, interface_addr, membership); in uv_udp_set_membership() 1314 struct sockaddr_in6* addr6; in uv_udp_set_multicast_interface() local [all …]
|
/third_party/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 298 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in lws_interface_to_sa() local 338 memset((char *)&addr6->sin6_addr, 0, in lws_interface_to_sa() 340 addr6->sin6_addr.s6_addr[10] = 0xff; in lws_interface_to_sa() 341 addr6->sin6_addr.s6_addr[11] = 0xff; in lws_interface_to_sa() 342 memcpy(&addr6->sin6_addr.s6_addr[12], in lws_interface_to_sa() 369 memcpy(&addr6->sin6_addr, in lws_interface_to_sa()
|
/third_party/ltp/testcases/network/sctp/ |
D | sctp_big_chunk.c | 158 struct sockaddr_in6 addr6; in run() local 159 socklen_t addr_size = sizeof(addr6); in run() 161 if (accept(sfd, (struct sockaddr *)&addr6, &addr_size) < 0) in run()
|
/third_party/ltp/lib/ |
D | safe_net.c | 483 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in tst_get_unused_port() local 494 addr6->sin6_family = AF_INET6; in tst_get_unused_port() 495 addr6->sin6_port = 0; in tst_get_unused_port() 496 addr6->sin6_addr = in6addr_any; in tst_get_unused_port() 497 slen = sizeof(*addr6); in tst_get_unused_port() 531 return addr6->sin6_port; in tst_get_unused_port()
|
/third_party/toybox/toys/pending/ |
D | dhcp6.c | 276 struct sockaddr_in6 addr6; in send_msg() local 279 memset(&addr6, 0, sizeof(addr6)); in send_msg() 280 addr6.sin6_family = AF_INET6; in send_msg() 281 addr6.sin6_port = htons(DHCPC_SERVER_PORT); //SERVER_PORT in send_msg() 282 inet_pton(AF_INET6, "ff02::1:2", &addr6.sin6_addr); in send_msg() 297 sendlength = sendto(TT.sock1, &mesg, sendlength , 0,(struct sockaddr *)&addr6, in send_msg()
|
/third_party/vk-gl-cts/framework/delibs/deutil/ |
D | deSocket.c | 354 struct sockaddr_in6* addr6 = (struct sockaddr_in6*)bsdAddr; in deSocketAddressToBsdAddress() local 362 addr6->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress() 363 addr6->sin6_family = AF_INET6; in deSocketAddressToBsdAddress() 393 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*)bsdAddr; in deBsdAddressToSocketAddress() local 398 deSocketAddress_setPort(address, (int)deNetworkToHostOrder16((deUint16)addr6->sin6_port)); in deBsdAddressToSocketAddress() 402 inet_ntop(AF_INET6, (void*)&addr6->sin6_addr, buf, sizeof(buf)); in deBsdAddressToSocketAddress()
|
/third_party/ffmpeg/libavcodec/mips/ |
D | h264dsp_mmi.c | 2357 [addr6]"=&r"(addr[6]), [addr7]"=&r"(addr[7]) in ff_deblock_h_luma_8_mmi() 2454 [addr6]"=&r"(addr[6]), [addr7]"=&r"(addr[7]) in ff_deblock_h_luma_8_mmi() 2480 MMI_ULDC1(%[ftmp2], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2486 MMI_ULDC1(%[ftmp5], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2533 MMI_ULDC1(%[ftmp2], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2539 MMI_ULDC1(%[ftmp5], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2592 [addr6]"=&r"(addr[6]) in ff_deblock_h_luma_intra_8_mmi() 2643 MMI_USDC1(%[ftmp7], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2646 MMI_ULDC1(%[ftmp8], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() 2658 MMI_USDC1(%[ftmp5], %[addr6], 0x00) in ff_deblock_h_luma_intra_8_mmi() [all …]
|