/curl/lib/ |
H A D | if2ip.h | 36 unsigned int Curl_ipv6_scope(const struct sockaddr *sa); 66 struct sockaddr ifru_addr; 67 struct sockaddr ifru_broadaddr; 68 struct sockaddr ifru_netmask; 69 struct sockaddr ifru_hwaddr;
|
H A D | setup-os400.h | 67 extern int Curl_getnameinfo_a(const struct sockaddr *sa, 131 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 D | sockaddr.h | 31 struct sockaddr sa;
|
H A D | tftp.c | 612 (struct sockaddr *)&state->remote_addr, in tftp_rx() 637 (struct sockaddr *)&state->remote_addr, in tftp_rx() 663 (struct sockaddr *)&state->remote_addr, in tftp_rx() 677 (struct sockaddr *)&state->remote_addr, in tftp_rx() 739 (struct sockaddr *)&state->remote_addr, in tftp_tx() 784 (struct sockaddr *)&state->remote_addr, in tftp_tx() 810 (struct sockaddr *)&state->remote_addr, in tftp_tx() 827 (struct sockaddr *)&state->remote_addr, in tftp_tx() 1012 ((struct sockaddr *)&state->local_addr)->sa_family = in tftp_connect() 1031 int rc = bind(state->sockfd, (struct sockaddr *)&state->local_addr, in tftp_connect() [all …]
|
H A D | curl_addrinfo.h | 59 struct sockaddr *ai_addr;
|
H A D | cf-socket.h | 51 struct sockaddr addr;
|
H A D | connect.h | 72 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
|
H A D | memdebug.c | 369 struct sockaddr *addr = (struct sockaddr *)saddr; in curl_dbg_accept()
|
H A D | if2ip.c | 67 unsigned int Curl_ipv6_scope(const struct sockaddr *sa) in Curl_ipv6_scope()
|
H A D | socketpair.c | 136 struct sockaddr addr; in Curl_socketpair()
|
H A D | cf-socket.c | 580 struct sockaddr *sock = (struct sockaddr *)&sa; /* bind to this address */ in bindlocal() 1083 if(getsockname(ctx->sock, (struct sockaddr*) &ssloc, &slen)) { in set_local_ip() 1089 if(!Curl_addr2string((struct sockaddr*)&ssloc, slen, in set_local_ip() 2091 if(getpeername(ctx->sock, (struct sockaddr*) &ssrem, &plen)) { in cf_tcp_set_accepted_remote_ip() 2097 if(!Curl_addr2string((struct sockaddr*)&ssrem, plen, in cf_tcp_set_accepted_remote_ip() 2165 if(0 == getsockname(ctx->sock, (struct sockaddr *) &add, &size)) { in cf_tcp_accept_connect() 2167 s_accepted = accept(ctx->sock, (struct sockaddr *) &add, &size); in cf_tcp_accept_connect()
|
H A D | Makefile.inc | 354 sockaddr.h \
|
H A D | krb5.c | 222 (struct sockaddr *)&conn->local_addr, &l) < 0) in krb5_auth()
|
H A D | connect.c | 235 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, in Curl_addr2string()
|
/curl/packages/OS400/ |
H A D | os400sys.c | 253 Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen, in Curl_getnameinfo_a() 793 const struct sockaddr *srcaddr, int srclen) in sockaddr2ebcdic() 802 if(!srcaddr || srclen < offsetof(struct sockaddr, sa_family) + in sockaddr2ebcdic() 827 sockaddr2ascii(struct sockaddr *dstaddr, int dstlen, in sockaddr2ascii() 869 Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen) in Curl_os400_connect() 879 return connect(sd, (struct sockaddr *) &laddr, i); in Curl_os400_connect() 883 Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen) in Curl_os400_bind() 893 return bind(sd, (struct sockaddr *) &laddr, i); in Curl_os400_bind() 898 const struct sockaddr *dstaddr, int addrlen) in Curl_os400_sendto() 913 struct sockaddr *fromaddr, int *addrlen) in Curl_os400_recvfrom() [all …]
|
/curl/tests/server/ |
H A D | server_sockaddr.h | 33 struct sockaddr sa;
|
H A D | util.c | 854 rc = bind(sock, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket() 865 rc = connect(unixfd, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket() 899 rc = bind(sock, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket()
|
/curl/tests/libtest/ |
H A D | lib1960.c | 98 status = connect(client_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in test()
|
/curl/docs/examples/ |
H A D | externalsocket.c | 136 if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) == in main()
|
/curl/lib/vquic/ |
H A D | curl_quiche.c | 625 recv_info.to = (struct sockaddr *)&ctx->q.local_addr; in recv_pkt() 627 recv_info.from = (struct sockaddr *)remote_addr; in recv_pkt() 1272 const struct Curl_sockaddr_ex *sockaddr; in cf_quiche_ctx_open() local 1320 Curl_cf_socket_peek(cf->next, data, &ctx->q.sockfd, &sockaddr, NULL); in cf_quiche_ctx_open() 1322 rv = getsockname(ctx->q.sockfd, (struct sockaddr *)&ctx->q.local_addr, in cf_quiche_ctx_open() 1329 (struct sockaddr *)&ctx->q.local_addr, in cf_quiche_ctx_open() 1331 &sockaddr->curl_sa_addr, in cf_quiche_ctx_open() 1332 sockaddr->addrlen, in cf_quiche_ctx_open()
|
H A D | curl_ngtcp2.c | 1641 ngtcp2_addr_init(&path.local, (struct sockaddr *)&ctx->q.local_addr, in recv_pkt() 1643 ngtcp2_addr_init(&path.remote, (struct sockaddr *)remote_addr, in recv_pkt() 2260 const struct Curl_sockaddr_ex *sockaddr = NULL; in cf_connect_start() local 2293 Curl_cf_socket_peek(cf->next, data, &ctx->q.sockfd, &sockaddr, NULL); in cf_connect_start() 2294 if(!sockaddr) in cf_connect_start() 2297 rv = getsockname(ctx->q.sockfd, (struct sockaddr *)&ctx->q.local_addr, in cf_connect_start() 2303 (struct sockaddr *)&ctx->q.local_addr, in cf_connect_start() 2306 &sockaddr->curl_sa_addr, (socklen_t)sockaddr->addrlen); in cf_connect_start()
|
H A D | vquic.c | 564 (struct sockaddr *)&remote_addr, in recvfrom_packets()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_OPENSOCKETFUNCTION.md | 34 struct sockaddr addr;
|
/curl/src/ |
H A D | tool_operate.c | 177 struct sockaddr addr; in get_address_family() 180 if(getsockname(sockfd, (struct sockaddr *)&addr, &addrlen) == 0) in get_address_family()
|
/curl/include/curl/ |
H A D | curl.h | 427 struct sockaddr addr;
|