/third_party/ltp/testcases/network/stress/route/ |
D | route-change-netlink.c | 166 hints.ai_addr = INADDR_ANY; in setup() 225 dst_in6 = ((struct sockaddr_in6 *)dst->ai_addr)->sin6_addr; in rtnl_route() 228 dst_ip = ((struct sockaddr_in *)dst->ai_addr)->sin_addr.s_addr; in rtnl_route() 236 gw_in6 = ((struct sockaddr_in6 *)gw->ai_addr)->sin6_addr; in rtnl_route() 239 gw_ip = ((struct sockaddr_in *)gw->ai_addr)->sin_addr.s_addr; in rtnl_route() 246 brk_on_route_error("mnl_socket_open", iface, dst->ai_addr, gw ? in rtnl_route() 247 gw->ai_addr : NULL, type); in rtnl_route() 250 brk_on_route_error("mnl_socket_bind", iface, dst->ai_addr, gw ? in rtnl_route() 251 gw->ai_addr : NULL, type); in rtnl_route() 256 brk_on_route_error("mnl_socket_sendto", iface, dst->ai_addr, gw in rtnl_route() [all …]
|
/third_party/libwebsockets/lib/core-net/client/ |
D | conmon.c | 68 ((struct sockaddr_in *)ai->ai_addr)-> in lws_conmon_append_copy_new_dns_results() 70 ((struct sockaddr_in *)cai->ai_addr)-> in lws_conmon_append_copy_new_dns_results() 75 !memcmp(((struct sockaddr_in6 *)ai->ai_addr)-> in lws_conmon_append_copy_new_dns_results() 77 ((struct sockaddr_in6 *)cai->ai_addr)-> in lws_conmon_append_copy_new_dns_results() 105 ai->ai_addr = (struct sockaddr *)&ai[1]; in lws_conmon_append_copy_new_dns_results() 106 memcpy(ai->ai_addr, cai->ai_addr, (size_t)cai->ai_addrlen); in lws_conmon_append_copy_new_dns_results() 109 ai->ai_canonname = ((char *)ai->ai_addr) + in lws_conmon_append_copy_new_dns_results()
|
/third_party/curl/lib/ |
D | curl_addrinfo.c | 144 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex() 165 ca->ai_addr = NULL; in Curl_getaddrinfo_ex() 169 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in Curl_getaddrinfo_ex() 170 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex() 173 ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size); in Curl_getaddrinfo_ex() 295 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_he2ai() 297 ai->ai_canonname = (char *)ai->ai_addr + ss_size; in Curl_he2ai() 320 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 329 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 482 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_unix2addr() [all …]
|
D | hostip.c | 158 const struct sockaddr_in *sa4 = (const void *)ai->ai_addr; in Curl_printable_address() 165 const struct sockaddr_in6 *sa6 = (const void *)ai->ai_addr; in Curl_printable_address() 498 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost6() 499 memcpy(ca->ai_addr, &sa6, ss_size); in get_localhost6() 500 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost6() 534 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost() 535 memcpy(ca->ai_addr, &sa, ss_size); in get_localhost() 536 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost()
|
/third_party/node/deps/cares/src/lib/ |
D | ares__sortaddrinfo.c | 307 scope_dst1 = get_scope(a1->ai->ai_addr); in rfc6724_compare() 313 scope_dst2 = get_scope(a2->ai->ai_addr); in rfc6724_compare() 329 label_dst1 = get_label(a1->ai->ai_addr); in rfc6724_compare() 335 label_dst2 = get_label(a2->ai->ai_addr); in rfc6724_compare() 344 precedence1 = get_precedence(a1->ai->ai_addr); in rfc6724_compare() 345 precedence2 = get_precedence(a2->ai->ai_addr); in rfc6724_compare() 360 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in rfc6724_compare() 361 a2->has_src_addr && a2->ai->ai_addr->sa_family == AF_INET6) in rfc6724_compare() 365 CARES_INADDR_CAST(const struct sockaddr_in6 *, a1->ai->ai_addr); in rfc6724_compare() 368 CARES_INADDR_CAST(const struct sockaddr_in6 *, a2->ai->ai_addr); in rfc6724_compare() [all …]
|
D | ares__addrinfo_localhost.c | 67 node->ai_addr = (struct sockaddr *)sin; in ares_append_ai_node() 70 node->ai_addr = (struct sockaddr *)sin; in ares_append_ai_node() 87 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node() 90 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node()
|
D | ares__addrinfo2hostent.c | 161 &(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr), in ares__addrinfo2hostent() 167 &(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr)->sin_addr), in ares__addrinfo2hostent() 245 &(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr), in ares__addrinfo2addrttl() 255 &(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr)->sin_addr), in ares__addrinfo2addrttl()
|
/third_party/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 58 ret |= p->ai_addr == 0; in verify_res() 62 if (p->ai_addr) { in verify_res() 70 psin = (struct sockaddr_in *)p->ai_addr; in verify_res() 76 psin6 = (struct sockaddr_in6 *)p->ai_addr; in verify_res() 177 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_loopback() 181 struct sockaddr_in6 *psin6 = (struct sockaddr_in6 *)p->ai_addr; in test_loopback() 191 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive() 195 struct sockaddr_in6 *psin6 = (struct sockaddr_in6 *)p->ai_addr; in test_passive() 205 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive_no_host() 209 struct sockaddr_in6 *psin6 = (struct sockaddr_in6 *)p->ai_addr; in test_passive_no_host()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | getaddrinfo.c | 41 EXPECT_TRUE("getaddrinfo_0100", result->ai_addr != NULL); in getaddrinfo_0100() 58 EXPECT_TRUE("getaddrinfo_0200", result->ai_addr != NULL); in getaddrinfo_0200() 77 EXPECT_TRUE("getaddrinfo_0300", result->ai_addr != NULL); in getaddrinfo_0300() 94 EXPECT_TRUE("getaddrinfo_0400", result->ai_addr != NULL); in getaddrinfo_0400() 111 EXPECT_TRUE("getaddrinfo_0500", result->ai_addr != NULL); in getaddrinfo_0500() 129 EXPECT_TRUE("getaddrinfo_0600", result->ai_addr != NULL); in getaddrinfo_0600() 147 EXPECT_TRUE("getaddrinfo_0700", result->ai_addr != NULL); in getaddrinfo_0700() 162 EXPECT_TRUE("getaddrinfo_0800", result->ai_addr != NULL); in getaddrinfo_0800()
|
/third_party/python/Modules/ |
D | getaddrinfo.c | 174 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 175 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\ 177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 178 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ 179 p = (char *)((ai)->ai_addr);\ 189 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 190 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 192 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 193 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ [all …]
|
/third_party/boost/boost/asio/ip/ |
D | basic_resolver_query.hpp | 76 hints_.ai_addr = 0; in basic_resolver_query() 113 hints_.ai_addr = 0; in basic_resolver_query() 161 hints_.ai_addr = 0; in basic_resolver_query() 212 hints_.ai_addr = 0; in basic_resolver_query()
|
/third_party/boost/libs/asio/include/boost/asio/ip/ |
D | basic_resolver_query.hpp | 76 hints_.ai_addr = 0; in basic_resolver_query() 113 hints_.ai_addr = 0; in basic_resolver_query() 161 hints_.ai_addr = 0; in basic_resolver_query() 212 hints_.ai_addr = 0; in basic_resolver_query()
|
/third_party/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_c.c | 77 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main() 83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
|
D | testsf_s.c | 62 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main() 67 memcpy(&sa, hp->ai_addr, hp->ai_addrlen); in main()
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-async-dns/ |
D | main.c | 140 ac->ai_addr)->sin_addr.s_addr); in cb1() 144 ac->ai_addr)->sin6_addr.s6_addr); in cb1() 159 ac->ai_addr)->sin_addr.s_addr); in cb1() 164 ac->ai_addr)->sin6_addr.s6_addr); in cb1()
|
/third_party/libuv/src/win/ |
D | getaddrinfo.c | 62 struct sockaddr* ai_addr; member 169 addrinfo_ptr->ai_addr = NULL; in uv__getaddrinfo_done() 178 memcpy(cur_ptr, addrinfow_ptr->ai_addr, addrinfo_ptr->ai_addrlen); in uv__getaddrinfo_done() 179 addrinfo_ptr->ai_addr = (struct sockaddr*)cur_ptr; in uv__getaddrinfo_done() 370 req->addrinfow->ai_addr = NULL; in uv_getaddrinfo()
|
/third_party/curl/tests/unit/ |
D | unit1305.c | 89 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in fake_ai() 90 ai->ai_canonname = (void *)((char *)ai->ai_addr + in fake_ai()
|
/third_party/libuv/docs/code/dns/ |
D | main.c | 50 uv_ip4_name((struct sockaddr_in*) res->ai_addr, addr, 16); in on_resolved() 57 uv_tcp_connect(connect_req, socket, (const struct sockaddr*) res->ai_addr, on_connect); in on_resolved()
|
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/ |
D | minimal-raw-adopt-tcp.c | 165 if (connect(sock.sockfd, rp->ai_addr, sizeof(*rp->ai_addr)) < 0) { in main()
|
/third_party/musl/src/network/ |
D | res_cache.c | 103 .ai_addr = (void *) &out[i].sa, in dns_get_addr_info_from_netsys_cache() 106 memcpy(&out[i].sa, &addr_info[i].ai_addr, addr_info[i].ai_addrLen); in dns_get_addr_info_from_netsys_cache()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/remote-compile/ |
D | socket.cc | 243 if (bind(socket, info->ai_addr, static_cast<int>(info->ai_addrlen)) != 0) { in Listen() 271 if (::connect(socket, info->ai_addr, in Connect() 283 ::connect(socket, info->ai_addr, static_cast<int>(info->ai_addrlen)); in Connect()
|
/third_party/ffmpeg/libavformat/ |
D | network.c | 340 getnameinfo(addr->ai_addr, addr->ai_addrlen, in print_address_list() 377 while ((ret = connect(attempt->fd, ai->ai_addr, ai->ai_addrlen))) { in start_connect_attempt() 428 getnameinfo(addrs->ai_addr, addrs->ai_addrlen, in ff_connect_parallel() 485 getnameinfo(attempts[i].addr->ai_addr, attempts[i].addr->ai_addrlen, in ff_connect_parallel() 500 getnameinfo(attempts[i].addr->ai_addr, attempts[i].addr->ai_addrlen, in ff_connect_parallel()
|
/third_party/toybox/toys/pending/ |
D | host.c | 89 a = (void *)&((struct sockaddr_in *)ai->ai_addr)->sin_addr; in host_main() 93 a = (void *)&((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr; in host_main() 128 xconnect(s, ai->ai_addr, ai->ai_addrlen); in host_main()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
D | getnameinfo.c | 63 …res = getnameinfo(result->ai_addr, result->ai_addrlen, host, sizeof(host), server, sizeof(server),… in getnameinfo_0200() 145 res = getnameinfo(result->ai_addr, 4, host, sizeof(host), server, sizeof(server), 0); in getnameinfo_0600()
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-common.c | 488 memcpy(&greq->gr_group, mainfo_p->ai_addr, mainfo_p->ai_addrlen); in create_group_info() 537 memcpy(&gsf->gf_group, mainfo_p->ai_addr, mainfo_p->ai_addrlen); in create_source_filter() 570 memcpy(&gsf->gf_slist[idx], res->ai_addr, res->ai_addrlen); in create_source_filter()
|