Lines Matching refs:sa
860 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()
991 r = Curl_inet_ntop(sa->sa_family, &sa6->sin6_addr, hbuf, sizeof(hbuf)); in ftp_state_use_port()
995 r = Curl_inet_ntop(sa->sa_family, &sa4->sin_addr, hbuf, sizeof(hbuf)); 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()
1063 if(getsockname(conn->sock[FIRSTSOCKET], 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()
1134 switch(sa->sa_family) { in ftp_state_use_port()
1157 sa->sa_family == AF_INET ? 1 : 2, in ftp_state_use_port()