Lines Matching refs:sa
799 struct sockaddr *sa; in ftp_pasv() local
814 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
816 if (getpeername(ftp->fd, sa, &n) < 0) { in ftp_pasv()
821 if (sa->sa_family == AF_INET6) { in ftp_pasv()
822 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa; in ftp_pasv()
872 sin = (struct sockaddr_in *) sa; in ftp_pasv()
1662 struct sockaddr *sa; in ftp_getdata() local
1680 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1682 if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) { in ftp_getdata()
1712 php_any_addr(sa->sa_family, &addr, 0); in ftp_getdata()
1733 if (sa->sa_family == AF_INET6) { in ftp_getdata()
1739 r = inet_ntop(AF_INET6, &((struct sockaddr_in6*) sa)->sin6_addr, out, sizeof(out)); in ftp_getdata()
1762 ipbox.ia[0] = ((struct sockaddr_in*) sa)->sin_addr; in ftp_getdata()