Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 18 of 18) sorted by relevance

/curl/lib/
H A Dsetup-os400.h131 extern int Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen);
132 extern int Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen);
134 const struct sockaddr *dstaddr, int addrlen);
136 struct sockaddr *fromaddr, int *addrlen);
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 Dsocketpair.c139 curl_socklen_t addrlen = sizeof(a.inaddr); in Curl_socketpair() local
175 if(getsockname(listener, &a.addr, &addrlen) == -1 || in Curl_socketpair()
176 addrlen < (int)sizeof(a.inaddr)) in Curl_socketpair()
H A Dcf-socket.h49 unsigned int addrlen; member
H A Dcf-socket.c335 dest->addrlen = (unsigned int)ai->ai_addrlen; in Curl_sock_assign_addr()
337 if(dest->addrlen > sizeof(struct Curl_sockaddr_storage)) in Curl_sock_assign_addr()
338 dest->addrlen = sizeof(struct Curl_sockaddr_storage); in Curl_sock_assign_addr()
339 memcpy(&dest->curl_sa_addr, ai->ai_addr, dest->addrlen); in Curl_sock_assign_addr()
1095 (curl_socklen_t)ctx->addr.addrlen, in set_remote_ip()
1265 endpoints.sae_dstaddrlen = 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()
1293 (curl_socklen_t)ctx->addr.addrlen); in do_connect()
1515 cf->conn->remote_addr->addrlen); in cf_socket_send()
[all …]
H A Dmemdebug.c370 curl_socklen_t *addrlen = (curl_socklen_t *)saddrlen; in curl_dbg_accept() local
372 curl_socket_t sockfd = accept(s, addr, addrlen); in curl_dbg_accept()
H A Dftp.c877 size_t addrlen = 0; in ftp_state_use_port() local
895 addrlen = ip_end - ip_start; in ftp_state_use_port()
910 addrlen = ip_end - string_ftpport; in ftp_state_use_port()
921 addrlen = strlen(string_ftpport); in ftp_state_use_port()
948 if(addrlen) { in ftp_state_use_port()
950 if(addrlen >= sizeof(ipstr)) in ftp_state_use_port()
952 memcpy(ipstr, addr, addrlen); in ftp_state_use_port()
953 ipstr[addrlen] = 0; in ftp_state_use_port()
H A Dsocks.c1032 int addrlen = (int) socksreq[4]; in do_SOCKS5() local
1033 len = 5 + addrlen + 2; in do_SOCKS5()
H A Dtftp.c528 (curl_socklen_t)data->conn->remote_addr->addrlen); in tftp_send_first()
1032 (curl_socklen_t)conn->remote_addr->addrlen); in tftp_connect()
/curl/packages/OS400/
H A Dos400sys.c874 i = sockaddr2ebcdic(&laddr, destaddr, addrlen); in Curl_os400_connect()
883 Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen) in Curl_os400_bind() argument
888 i = sockaddr2ebcdic(&laddr, localaddr, addrlen); in Curl_os400_bind()
898 const struct sockaddr *dstaddr, int addrlen) in Curl_os400_sendto() argument
903 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
913 struct sockaddr *fromaddr, int *addrlen) in Curl_os400_recvfrom() argument
919 if(!fromaddr || !addrlen || *addrlen <= 0) in Curl_os400_recvfrom()
936 *addrlen = laddrlen; in Curl_os400_recvfrom()
948 laddrlen = sockaddr2ascii(addr, *addrlen, &laddr, laddrlen); in Curl_os400_getpeername()
951 *addrlen = laddrlen; in Curl_os400_getpeername()
[all …]
H A Dcurl.inc.in2355 d addrlen 10u 0
/curl/lib/vtls/
H A Dgtls.c1561 size_t addrlen = 0; in Curl_gtls_verifyserver() local
1564 addrlen = 4; in Curl_gtls_verifyserver()
1567 addrlen = 16; in Curl_gtls_verifyserver()
1570 if(addrlen) { in Curl_gtls_verifyserver()
1585 if(certaddrlen == addrlen && !memcmp(addrbuf, certaddr, addrlen)) { in Curl_gtls_verifyserver()
H A Dopenssl.c2108 size_t addrlen = 0; in ossl_verifyhost() local
2127 addrlen = sizeof(struct in_addr); in ossl_verifyhost()
2134 addrlen = sizeof(struct in6_addr); in ossl_verifyhost()
2204 if((altlen == addrlen) && !memcmp(altptr, &addr, altlen)) { in ossl_verifyhost()
/curl/docs/libcurl/opts/
H A DCURLOPT_OPENSOCKETFUNCTION.md33 unsigned int addrlen;
/curl/lib/vquic/
H A Dcurl_msh3.c829 memcpy(&addr, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in cf_connect_start()
H A Dcurl_quiche.c1336 sockaddr->addrlen, in cf_quiche_ctx_open()
H A Dcurl_ngtcp2.c2307 &sockaddr->curl_sa_addr, (socklen_t)sockaddr->addrlen); in cf_connect_start()
/curl/src/
H A Dtool_operate.c176 curl_socklen_t addrlen = sizeof(addr); in get_address_family() local
178 if(getsockname(sockfd, (struct sockaddr *)&addr, &addrlen) == 0) in get_address_family()
/curl/include/curl/
H A Dcurl.h424 unsigned int addrlen; /* addrlen was a socklen_t type before 7.18.0 but it member

Completed in 97 milliseconds