Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 25 of 28) sorted by relevance

12

/curl/lib/
H A Dcurl_addrinfo.c127 for(ai = aihead; ai != NULL; ai = ai->ai_next) { in Curl_getaddrinfo_ex()
141 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex()
288 if(!ai) { in Curl_he2ai()
295 ai->ai_canonname = (char *)ai->ai_addr + ss_size; in Curl_he2ai()
344 prevai = ai; in Curl_he2ai()
391 if(!ai) in Curl_ip2addr()
396 ai->ai_canonname = (char *)ai->ai_addr + addrsize; in Curl_ip2addr()
431 return ai; in Curl_ip2addr()
471 if(!ai) in Curl_unix2addr()
481 free(ai); in Curl_unix2addr()
[all …]
H A Dhostip6.c74 static void dump_addrinfo(const struct Curl_addrinfo *ai) in dump_addrinfo() argument
77 for(; ai; ai = ai->ai_next) { in dump_addrinfo()
80 ai->ai_family, ai->ai_canonname ? ai->ai_canonname : "<none>"); in dump_addrinfo()
81 Curl_printable_address(ai, buf, sizeof(buf)); in dump_addrinfo()
H A Dhostip4.c94 struct Curl_addrinfo *ai = NULL; in Curl_getaddrinfo() local
102 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo()
103 if(!ai) in Curl_getaddrinfo()
106 return ai; in Curl_getaddrinfo()
128 struct Curl_addrinfo *ai = NULL; in Curl_ipv4_resolve_r() local
147 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); in Curl_ipv4_resolve_r()
295 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
302 return ai; in Curl_ipv4_resolve_r()
H A Dcf-socket.h71 const struct Curl_addrinfo *ai,
99 const struct Curl_addrinfo *ai,
112 const struct Curl_addrinfo *ai,
125 const struct Curl_addrinfo *ai,
138 const struct Curl_addrinfo *ai,
H A Dhostasyn.c68 struct Curl_addrinfo *ai) in Curl_addrinfo_callback() argument
76 if(ai) { in Curl_addrinfo_callback()
80 dns = Curl_cache_addr(data, ai, in Curl_addrinfo_callback()
88 Curl_freeaddrinfo(ai); in Curl_addrinfo_callback()
H A Dasyn-ares.c530 if(!ai) in compound_results()
542 temp_ai_tail->ai_next = ai; in compound_results()
553 res->temp_ai = ai; in compound_results()
587 if(ai) { in query_completed_cb()
588 compound_results(res, ai); in query_completed_cb()
666 struct ares_addrinfo_node *ai; in ares2addr() local
671 for(ai = node; ai != NULL; ai = ai->ai_next) { in ares2addr()
676 if(ai->ai_family == AF_INET) in ares2addr()
686 if(!ai->ai_addr || !(ai->ai_addrlen > 0)) in ares2addr()
702 ca->ai_flags = ai->ai_flags; in ares2addr()
[all …]
H A Damigaos.c130 struct Curl_addrinfo *ai = NULL; in Curl_ipv4_resolve_r() local
145 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
161 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
171 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
176 return ai; in Curl_ipv4_resolve_r()
H A Ddoh.c899 struct Curl_addrinfo *ai; in doh2ai() local
933 if(!ai) { in doh2ai()
937 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in doh2ai()
938 ai->ai_canonname = (void *)((char *)ai->ai_addr + ss_size); in doh2ai()
943 firstai = ai; in doh2ai()
947 prevai->ai_next = ai; in doh2ai()
949 ai->ai_family = addrtype; in doh2ai()
959 switch(ai->ai_family) { in doh2ai()
987 prevai = ai; in doh2ai()
1339 struct Curl_addrinfo *ai; in Curl_doh_is_resolved() local
[all …]
H A Dhostip.c134 void Curl_printable_address(const struct Curl_addrinfo *ai, char *buf, in Curl_printable_address() argument
140 switch(ai->ai_family) { in Curl_printable_address()
142 const struct sockaddr_in *sa4 = (const void *)ai->ai_addr; in Curl_printable_address()
144 (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr4, buf, bufsize); in Curl_printable_address()
149 const struct sockaddr_in6 *sa6 = (const void *)ai->ai_addr; in Curl_printable_address()
151 (void)Curl_inet_ntop(ai->ai_family, (const void *)ipaddr6, buf, bufsize); in Curl_printable_address()
1207 struct Curl_addrinfo *ai; in Curl_loadhostpairs() local
1241 ai = Curl_str2addr(address, port); in Curl_loadhostpairs()
1242 if(!ai) { in Curl_loadhostpairs()
1248 tail->ai_next = ai; in Curl_loadhostpairs()
[all …]
H A Dconnect.h122 const struct Curl_addrinfo *ai,
H A Dcf-socket.c310 const struct Curl_addrinfo *ai, in Curl_sock_assign_addr() argument
320 dest->family = ai->ai_family; in Curl_sock_assign_addr()
335 dest->addrlen = (unsigned int)ai->ai_addrlen; in Curl_sock_assign_addr()
339 memcpy(&dest->curl_sa_addr, ai->ai_addr, dest->addrlen); in Curl_sock_assign_addr()
392 const struct Curl_addrinfo *ai, in Curl_socket_open() argument
403 Curl_sock_assign_addr(addr, ai, transport); in Curl_socket_open()
969 Curl_sock_assign_addr(&ctx->addr, ai, transport); in cf_socket_ctx_init()
1793 const struct Curl_addrinfo *ai, in Curl_cf_tcp_create() argument
1808 cf_socket_ctx_init(ctx, ai, transport); in Curl_cf_tcp_create()
1957 cf_socket_ctx_init(ctx, ai, transport); in Curl_cf_udp_create()
[all …]
H A Dhostip.h187 struct Curl_addrinfo *ai);
H A Dftp.c190 struct Curl_addrinfo *ai,
857 struct Curl_addrinfo *res, *ai; in ftp_state_use_port() local
1024 for(ai = res; ai; ai = ai->ai_next) { in ftp_state_use_port()
1025 if(Curl_socket_open(data, ai, NULL, conn->transport, &portsock)) { in ftp_state_use_port()
1031 if(!ai) { in ftp_state_use_port()
1041 memcpy(sa, ai->ai_addr, ai->ai_addrlen); in ftp_state_use_port()
1042 sslen = ai->ai_addrlen; in ftp_state_use_port()
1115 Curl_printable_address(ai, myhost, sizeof(myhost)); in ftp_state_use_port()
3513 struct Curl_addrinfo *ai, in ftp_pasv_verbose() argument
3518 Curl_printable_address(ai, buf, sizeof(buf)); in ftp_pasv_verbose()
/curl/tests/unit/
H A Dunit1305.c75 static struct Curl_addrinfo *ai; in fake_ai() local
79 ai = calloc(1, sizeof(struct Curl_addrinfo) + sizeof(struct sockaddr_in) + in fake_ai()
81 if(!ai) in fake_ai()
84 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in fake_ai()
85 ai->ai_canonname = (void *)((char *)ai->ai_addr + in fake_ai()
87 memcpy(ai->ai_canonname, dummy, namelen); in fake_ai()
89 ai->ai_family = AF_INET; in fake_ai()
90 ai->ai_addrlen = sizeof(struct sockaddr_in); in fake_ai()
92 return ai; in fake_ai()
H A Dunit2600.c190 const struct Curl_addrinfo *ai, in cf_test_create() argument
205 ctx->ai_family = ai->ai_family; in cf_test_create()
/curl/tests/server/
H A Dresolve.c125 struct addrinfo *ai; in main() local
132 rc = getaddrinfo(host, "80", &hints, &ai); in main()
134 freeaddrinfo(ai); in main()
/curl/lib/vquic/
H A Dcurl_msh3.h38 const struct Curl_addrinfo *ai);
H A Dcurl_quiche.h42 const struct Curl_addrinfo *ai);
H A Dcurl_osslq.h44 const struct Curl_addrinfo *ai);
H A Dcurl_ngtcp2.h54 const struct Curl_addrinfo *ai);
H A Dvquic.h46 const struct Curl_addrinfo *ai,
H A Dvquic.c676 const struct Curl_addrinfo *ai, in Curl_cf_quic_create() argument
682 return Curl_cf_ngtcp2_create(pcf, data, conn, ai); in Curl_cf_quic_create()
684 return Curl_cf_osslq_create(pcf, data, conn, ai); in Curl_cf_quic_create()
686 return Curl_cf_quiche_create(pcf, data, conn, ai); in Curl_cf_quic_create()
688 return Curl_cf_msh3_create(pcf, data, conn, ai); in Curl_cf_quic_create()
693 (void)ai; in Curl_cf_quic_create()
H A Dcurl_msh3.c136 const struct Curl_addrinfo *ai) in cf_msh3_ctx_init() argument
140 Curl_sock_assign_addr(&ctx->addr, ai, TRNSPRT_QUIC); in cf_msh3_ctx_init()
1076 const struct Curl_addrinfo *ai) in Curl_cf_msh3_create() argument
1084 (void)ai; /* TODO: msh3 resolves itself? */ in Curl_cf_msh3_create()
1090 cf_msh3_ctx_init(ctx, ai); in Curl_cf_msh3_create()
H A Dcurl_quiche.c1643 const struct Curl_addrinfo *ai) in Curl_cf_quiche_create() argument
1662 result = Curl_cf_udp_create(&udp_cf, data, conn, ai, TRNSPRT_QUIC); in Curl_cf_quiche_create()
H A Dcurl_ngtcp2.c2559 const struct Curl_addrinfo *ai) in Curl_cf_ngtcp2_create() argument
2577 result = Curl_cf_udp_create(&udp_cf, data, conn, ai, TRNSPRT_QUIC); in Curl_cf_ngtcp2_create()

Completed in 127 milliseconds

12