Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 22 of 22) sorted by relevance

/curl/tests/server/
H A Dserver_sockaddr.h33 struct sockaddr sa; member
H A Dtftpd.c271 struct sigaction sa; in mysignal() local
272 memset(&sa, 0, sizeof(sa)); in mysignal()
273 sa.sa_handler = handler; in mysignal()
274 sigaction(sig, &sa, NULL); in mysignal()
543 &fromaddr.sa, &fromaddrlen); in synchnet()
686 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
694 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main()
718 memset(&localaddr.sa, 0, (size_t)la_size); in main()
719 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
726 switch(localaddr.sa.sa_family) { in main()
[all …]
H A Dutil.c681 struct sigaction sa, oldsa; in set_signal() local
683 memset(&sa, 0, sizeof(sa)); in set_signal()
684 sa.sa_handler = handler; in set_signal()
685 sigemptyset(&sa.sa_mask); in set_signal()
686 sigaddset(&sa.sa_mask, signum); in set_signal()
687 sa.sa_flags = restartable ? SA_RESTART : 0; in set_signal()
689 if(sigaction(signum, &sa, &oldsa)) in set_signal()
H A Dsocksd.c297 rc = connect(sock, &me.sa, sizeof(me.sa4)); in socksconnect()
863 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
871 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon()
909 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
910 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
917 switch(localaddr.sa.sa_family) { in sockdaemon()
H A Dsockfilt.c1270 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
1278 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon()
1302 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
1303 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
1310 switch(localaddr.sa.sa_family) { in sockdaemon()
1510 rc = connect(sock, &me.sa, sizeof(me.sa4)); in main()
1521 rc = connect(sock, &me.sa, sizeof(me.sa6)); in main()
H A Dmqttd.c848 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
856 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon()
880 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
881 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
888 switch(localaddr.sa.sa_family) { in sockdaemon()
H A Drtspd.c1188 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
1196 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main()
1219 memset(&localaddr.sa, 0, (size_t)la_size); in main()
1220 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
1227 switch(localaddr.sa.sa_family) { in main()
H A Dsws.c1346 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to()
1359 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa6)); in connect_to()
2211 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
2219 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main()
2253 memset(&localaddr.sa, 0, (size_t)la_size); in main()
2254 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
2261 switch(localaddr.sa.sa_family) { in main()
/curl/lib/
H A Dsockaddr.h31 struct sockaddr sa; member
H A Dif2ip.c67 unsigned int Curl_ipv6_scope(const struct sockaddr *sa) in Curl_ipv6_scope() argument
69 if(sa->sa_family == AF_INET6) { in Curl_ipv6_scope()
70 const struct sockaddr_in6 * sa6 = (const struct sockaddr_in6 *)(void *) sa; in Curl_ipv6_scope()
H A Dif2ip.h36 unsigned int Curl_ipv6_scope(const struct sockaddr *sa);
H A Dconnect.h72 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
H A Dhostip.c572 struct sockaddr_in sa; in get_localhost() local
577 memset(&sa, 0, sizeof(sa)); in get_localhost()
578 sa.sin_family = AF_INET; in get_localhost()
579 sa.sin_port = htons(port16); in get_localhost()
582 memcpy(&sa.sin_addr, &ipv4, sizeof(ipv4)); in get_localhost()
593 memcpy(ca->ai_addr, &sa, ss_size); in get_localhost()
H A Dsetup-os400.h67 extern int Curl_getnameinfo_a(const struct sockaddr *sa,
H A Dconnect.c235 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, in Curl_addr2string() argument
248 switch(sa->sa_family) { in Curl_addr2string()
250 si = (struct sockaddr_in *)(void *) sa; in Curl_addr2string()
251 if(Curl_inet_ntop(sa->sa_family, &si->sin_addr, in Curl_addr2string()
260 si6 = (struct sockaddr_in6 *)(void *) sa; in Curl_addr2string()
261 if(Curl_inet_ntop(sa->sa_family, &si6->sin6_addr, in Curl_addr2string()
272 su = (struct sockaddr_un*)sa; in Curl_addr2string()
H A Dftp.c860 struct sockaddr *sa = (struct sockaddr *)&ss; in ftp_state_use_port() local
861 struct sockaddr_in * const sa4 = (void *)sa; in ftp_state_use_port()
863 struct sockaddr_in6 * const sa6 = (void *)sa; in ftp_state_use_port()
983 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port()
988 switch(sa->sa_family) { in ftp_state_use_port()
1041 memcpy(sa, ai->ai_addr, ai->ai_addrlen); in ftp_state_use_port()
1045 if(sa->sa_family == AF_INET) in ftp_state_use_port()
1052 if(bind(portsock, sa, sslen) ) { in ftp_state_use_port()
1093 if(getsockname(portsock, sa, &sslen)) { in ftp_state_use_port()
1130 if((PORT == fcmd) && sa->sa_family != AF_INET) in ftp_state_use_port()
[all …]
H A Dcf-socket.c571 struct Curl_sockaddr_storage sa; in bindlocal() local
572 struct sockaddr *sock = (struct sockaddr *)&sa; /* bind to this address */ in bindlocal()
574 struct sockaddr_in *si4 = (struct sockaddr_in *)&sa; in bindlocal()
576 struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)&sa; in bindlocal()
606 memset(&sa, 0, sizeof(struct Curl_sockaddr_storage)); in bindlocal()
/curl/scripts/
H A Dcd2cd65 my (@sa) = @_;
69 for my $s (sort @sa) {
H A Dcd2nroff87 my (@sa) = @_;
91 for my $s (sort @sa) {
/curl/tests/data/
H A Dtest102636 %PERL -e 'open(IN,$ARGV[0]); my $lines=grep(/(curl\s*-\s*transfer\sa\s*URL)|(AUTHORS)/, <IN>); exit…
/curl/packages/OS400/
H A Dos400sys.c253 Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen, in Curl_getnameinfo_a() argument
276 status = getnameinfo(sa, salen, enodename, nodenamelen, in Curl_getnameinfo_a()
/curl/docs/
H A DTHANKS-filter55 s/Petr Písař/Petr Pisar/

Completed in 72 milliseconds