/third_party/ltp/testcases/network/stress/route/ |
D | route-change-netlink.c | 164 hints.ai_addr = INADDR_ANY; in setup() 223 dst_in6 = ((struct sockaddr_in6 *)dst->ai_addr)->sin6_addr; in rtnl_route() 226 dst_ip = ((struct sockaddr_in *)dst->ai_addr)->sin_addr.s_addr; in rtnl_route() 234 gw_in6 = ((struct sockaddr_in6 *)gw->ai_addr)->sin6_addr; in rtnl_route() 237 gw_ip = ((struct sockaddr_in *)gw->ai_addr)->sin_addr.s_addr; in rtnl_route() 244 brk_on_route_error("mnl_socket_open", iface, dst->ai_addr, gw ? in rtnl_route() 245 gw->ai_addr : NULL, type); in rtnl_route() 248 brk_on_route_error("mnl_socket_bind", iface, dst->ai_addr, gw ? in rtnl_route() 249 gw->ai_addr : NULL, type); in rtnl_route() 254 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 | 141 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex() 162 ca->ai_addr = NULL; in Curl_getaddrinfo_ex() 166 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in Curl_getaddrinfo_ex() 167 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex() 170 ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size); in Curl_getaddrinfo_ex() 292 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_he2ai() 294 ai->ai_canonname = (char *)ai->ai_addr + ss_size; in Curl_he2ai() 317 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 326 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 479 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_unix2addr() [all …]
|
D | asyn-thread.c | 336 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in query_complete() 356 ca->ai_addr = NULL; in query_complete() 360 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in query_complete() 361 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in query_complete() 365 ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size); in query_complete()
|
D | hostip.c | 142 const struct sockaddr_in *sa4 = (const void *)ai->ai_addr; in Curl_printable_address() 149 const struct sockaddr_in6 *sa6 = (const void *)ai->ai_addr; in Curl_printable_address() 554 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost6() 555 memcpy(ca->ai_addr, &sa6, ss_size); in get_localhost6() 556 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost6() 591 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in get_localhost() 592 memcpy(ca->ai_addr, &sa, ss_size); in get_localhost() 593 ca->ai_canonname = (char *)ca->ai_addr + ss_size; in get_localhost()
|
D | asyn-ares.c | 695 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in ares2addr() 716 ca->ai_addr = NULL; in ares2addr() 720 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in ares2addr() 721 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in ares2addr()
|
/third_party/node/deps/cares/src/lib/ |
D | ares__sortaddrinfo.c | 266 scope_dst1 = get_scope(a1->ai->ai_addr); in rfc6724_compare() 273 scope_dst2 = get_scope(a2->ai->ai_addr); in rfc6724_compare() 289 label_dst1 = get_label(a1->ai->ai_addr); in rfc6724_compare() 296 label_dst2 = get_label(a2->ai->ai_addr); in rfc6724_compare() 304 precedence1 = get_precedence(a1->ai->ai_addr); in rfc6724_compare() 305 precedence2 = get_precedence(a2->ai->ai_addr); in rfc6724_compare() 318 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in rfc6724_compare() 319 a2->has_src_addr && a2->ai->ai_addr->sa_family == AF_INET6) { in rfc6724_compare() 322 CARES_INADDR_CAST(const struct sockaddr_in6 *, a1->ai->ai_addr); in rfc6724_compare() 325 CARES_INADDR_CAST(const struct sockaddr_in6 *, a2->ai->ai_addr); in rfc6724_compare() [all …]
|
D | ares__addrinfo_localhost.c | 81 node->ai_addr = (struct sockaddr *)sin; in ares_append_ai_node() 84 node->ai_addr = (struct sockaddr *)sin; in ares_append_ai_node() 99 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node() 102 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node()
|
D | ares__addrinfo2hostent.c | 172 &(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr), in ares__addrinfo2hostent() 178 &(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr)->sin_addr), in ares__addrinfo2hostent() 261 &(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr), in ares__addrinfo2addrttl() 271 &(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/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/musl/libc-test/src/functionalext/supplement/network/ |
D | getaddrinfo.c | 44 EXPECT_TRUE("getaddrinfo_0100", result->ai_addr != NULL); in getaddrinfo_0100() 61 EXPECT_TRUE("getaddrinfo_0200", result->ai_addr != NULL); in getaddrinfo_0200() 80 EXPECT_TRUE("getaddrinfo_0300", result->ai_addr != NULL); in getaddrinfo_0300() 97 EXPECT_TRUE("getaddrinfo_0400", result->ai_addr != NULL); in getaddrinfo_0400() 114 EXPECT_TRUE("getaddrinfo_0500", result->ai_addr != NULL); in getaddrinfo_0500() 132 EXPECT_TRUE("getaddrinfo_0600", result->ai_addr != NULL); in getaddrinfo_0600() 150 EXPECT_TRUE("getaddrinfo_0700", result->ai_addr != NULL); in getaddrinfo_0700() 165 EXPECT_TRUE("getaddrinfo_0800", result->ai_addr != NULL); in getaddrinfo_0800()
|
/third_party/musl/Benchmark/musl/ |
D | socket_test.cpp | 268 if (connect(sfd, rp->ai_addr, rp->ai_addrlen) != -1) { in ConnectTo() 270 struct sockaddr *aiAddr = addr->ai_addr; in ConnectTo() 272 *aiAddr = *rp->ai_addr; in ConnectTo() 273 addr->ai_addr = aiAddr; in ConnectTo() 320 if (bind(sfd, rp->ai_addr, rp->ai_addrlen) != -1) { in BindAt() 491 addr.ai_addr = (struct sockaddr*)&aiAddr; in Bm_function_connect_local_dgram() 497 if (connect(sfd, addr.ai_addr, addr.ai_addrlen) == -1) { in Bm_function_connect_local_dgram() 517 addr.ai_addr = (struct sockaddr*)&aiAddr; in Bm_function_connect_accept() 535 if (connect(sfd2, addr.ai_addr, addr.ai_addrlen) == -1) { in Bm_function_connect_accept()
|
/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/node/deps/uv/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/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 | 85 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in fake_ai() 86 ai->ai_canonname = (void *)((char *)ai->ai_addr + in fake_ai()
|
/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/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/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/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/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/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()
|