/curl/tests/ |
H A D | memanalyze.pl | 118 $addr = $2; 146 $addr = $2; 148 if($sizeataddr{$addr}>0) { 154 $sizeataddr{$addr}=$size; 170 $addr = $3; 180 $sizeataddr{$addr}=$size; 222 $addr = $3; 224 $sizeataddr{$addr}=$size; 242 $addr = $3; 384 $addr = $_; [all …]
|
/curl/lib/ |
H A D | inet_ntop.h | 29 char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size); 36 #define Curl_inet_ntop(af,addr,buf,size) \ argument 37 inet_ntop(af, addr, buf, size) 39 #define Curl_inet_ntop(af,addr,buf,size) \ argument 40 inet_ntop(af, addr, buf, (curl_socklen_t)(size))
|
H A D | curl_addrinfo.c | 262 struct sockaddr_in *addr; in Curl_he2ai() local 320 memcpy(&addr->sin_addr, curr, sizeof(struct in_addr)); in Curl_he2ai() 322 addr->sin_family = (short)(he->h_addrtype); in Curl_he2ai() 324 addr->sin_family = (CURL_SA_FAMILY_T)(he->h_addrtype); in Curl_he2ai() 326 addr->sin_port = htons((unsigned short)port); in Curl_he2ai() 371 struct sockaddr_in *addr; in Curl_ip2addr() local 409 addr->sin_family = (short)af; in Curl_ip2addr() 411 addr->sin_family = (CURL_SA_FAMILY_T)af; in Curl_ip2addr() 413 addr->sin_port = htons((unsigned short)port); in Curl_ip2addr() 566 struct sockaddr_in *addr; in Curl_addrinfo_set_port() local [all …]
|
H A D | hostip.c | 317 struct Curl_addrinfo *addr = dns->addr; in fetch_addr() local 324 while(addr) { in fetch_addr() 329 addr = addr->ai_next; in fetch_addr() 383 while(addr) { in num_addresses() 384 addr = addr->ai_next; in num_addresses() 502 dns->addr = addr; /* this is the address(es) */ in Curl_cache_addr() 761 if(!addr) in Curl_resolv() 771 if(!addr) in Curl_resolv() 796 if(!addr) { in Curl_resolv() 818 if(!addr) { in Curl_resolv() [all …]
|
H A D | connect.c | 214 while(addr) { in addr_first_match() 216 return addr; in addr_first_match() 217 addr = addr->ai_next; in addr_first_match() 225 while(addr && addr->ai_next) { in addr_next_match() 226 addr = addr->ai_next; in addr_next_match() 228 return addr; in addr_next_match() 284 addr[0] = '\0'; in Curl_addr2string() 423 baller->first = baller->addr = addr; in eyeballer_new() 462 baller->addr = addr_next_match(baller->addr, baller->ai_family); in baller_next_addr() 525 while(baller->addr) { in baller_start() [all …]
|
H A D | cf-socket.c | 366 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in socket_open() 399 if(!addr) in Curl_socket_open() 401 addr = &dummy; in Curl_socket_open() 1142 if(ctx->addr.family == AF_INET6) { in cf_socket_open() 1186 if(ctx->addr.family == AF_INET in cf_socket_open() 1272 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect() 1275 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect() 1283 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect() 1286 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect() 1852 switch(ctx->addr.family) { in cf_udp_setup_quic() [all …]
|
H A D | cf-socket.h | 51 struct sockaddr addr; member 55 #define curl_sa_addr _sa_ex_u.addr 72 struct Curl_sockaddr_ex *addr,
|
H A D | if2ip.c | 120 void *addr; in Curl_if2ip() local 140 addr = in Curl_if2ip() 161 addr = in Curl_if2ip() 164 ip = Curl_inet_ntop(af, addr, ipstr, sizeof(ipstr)); in Curl_if2ip()
|
H A D | socketpair.c | 136 struct sockaddr addr; in Curl_socketpair() member 173 if(bind(listener, &a.addr, sizeof(a.inaddr)) == -1) in Curl_socketpair() 175 if(getsockname(listener, &a.addr, &addrlen) == -1 || in Curl_socketpair() 183 if(connect(socks[0], &a.addr, sizeof(a.inaddr)) == -1) in Curl_socketpair()
|
H A D | doh.c | 550 struct dohaddr *a = &d->addr[d->numaddr]; in doh_store_a() 562 struct dohaddr *a = &d->addr[d->numaddr]; in doh_store_aaaa() 842 const struct dohaddr *a = &d->addr[i]; in doh_show() 857 d->addr[i].ip.v6[j + 1]); in doh_show() 902 struct sockaddr_in *addr; in doh2ai() local 918 if(de->addr[i].type == DNS_TYPE_AAAA) { in doh2ai() 961 addr = (void *)ai->ai_addr; /* storage area for this info */ in doh2ai() 963 memcpy(&addr->sin_addr, &de->addr[i].ip.v4, sizeof(struct in_addr)); in doh2ai() 965 addr->sin_family = (short)addrtype; in doh2ai() 967 addr->sin_family = addrtype; in doh2ai() [all …]
|
H A D | setup-os400.h | 137 extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen); 138 extern int Curl_os400_getsockname(int sd, struct sockaddr *addr, int *addrlen);
|
H A D | hostip.h | 96 struct Curl_addrinfo *addr; member 216 Curl_cache_addr(struct Curl_easy *data, struct Curl_addrinfo *addr,
|
/curl/tests/unit/ |
H A D | unit1609.c | 116 struct Curl_addrinfo *addr; variable 149 addr = dns ? dns->addr : NULL; 155 if(!addr && !tests[i].address[j]) 158 if(addr && !Curl_addr2string(addr->ai_addr, addr->ai_addrlen, 166 if(addr && !tests[i].address[j]) { 174 if(!addr && tests[i].address[j]) { 198 addr = addr->ai_next;
|
H A D | unit1607.c | 120 struct Curl_addrinfo *addr; variable 147 addr = dns ? dns->addr : NULL; 153 if(!addr && !tests[i].address[j]) 159 if(addr && !Curl_addr2string(addr->ai_addr, addr->ai_addrlen, 167 if(addr && !tests[i].address[j]) { 175 if(!addr && tests[i].address[j]) { 215 addr = addr->ai_next;
|
H A D | unit1305.c | 63 Curl_freeaddrinfo(data_node->addr); in unit_stop() 105 data_node->addr = fake_ai(); in create_node() 106 if(!data_node->addr) in create_node()
|
H A D | unit1608.c | 31 struct Curl_addrinfo **addr);
|
/curl/src/ |
H A D | tool_cb_soc.c | 40 struct curl_sockaddr *addr) in tool_socket_open_mptcp_cb() argument 42 int protocol = addr->protocol; in tool_socket_open_mptcp_cb() 57 return socket(addr->family, addr->socktype, protocol); in tool_socket_open_mptcp_cb()
|
H A D | tool_cb_soc.h | 34 struct curl_sockaddr *addr);
|
/curl/docs/cmdline-opts/ |
H A D | dns-ipv4-addr.md | 4 Long: dns-ipv4-addr 14 - dns-ipv6-addr 16 - --dns-ipv4-addr 10.1.2.3 $URL 19 # `--dns-ipv4-addr`
|
H A D | dns-ipv6-addr.md | 4 Long: dns-ipv6-addr 14 - dns-ipv4-addr 16 - --dns-ipv6-addr 2a04:4e42::561 $URL 19 # `--dns-ipv6-addr`
|
H A D | dns-interface.md | 13 - dns-ipv4-addr 14 - dns-ipv6-addr
|
H A D | resolve.md | 5 Arg: <[+]host:port:addr[,addr]...>
|
H A D | dns-servers.md | 14 - dns-ipv4-addr
|
/curl/tests/libtest/ |
H A D | lib500.c | 35 struct curl_sockaddr *addr) in tst_opensocket() argument 40 return socket(addr->family, addr->socktype, addr->protocol); in tst_opensocket()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_OPENSOCKETFUNCTION.md | 34 struct sockaddr addr; 76 return socket(addr->family, addr->socktype, addr->protocol);
|