Lines Matching refs:sa
708 struct sockaddr *sa; in ftp_pasv() local
723 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
726 if (getpeername(ftp->fd, sa, &n) < 0) { in ftp_pasv()
729 if (sa->sa_family == AF_INET6) { in ftp_pasv()
730 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa; in ftp_pasv()
780 sin = (struct sockaddr_in *) sa; in ftp_pasv()
1377 struct sockaddr *sa; in ftp_getdata() local
1394 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1396 if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) { in ftp_getdata()
1426 php_any_addr(sa->sa_family, &addr, 0); in ftp_getdata()
1447 if (sa->sa_family == AF_INET6) { in ftp_getdata()
1451 inet_ntop(AF_INET6, &((struct sockaddr_in6*) sa)->sin6_addr, out, sizeof(out)); in ftp_getdata()
1468 ipbox.ia[0] = ((struct sockaddr_in*) sa)->sin_addr; in ftp_getdata()