Lines Matching refs:sa

237 	struct sockaddr     sa;  member
484 sa_t sa; in fcgi_init() local
485 socklen_t len = sizeof(sa); in fcgi_init()
529 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) { in fcgi_init()
569 static PACL prepare_named_pipe_acl(PSECURITY_DESCRIPTOR sd, LPSECURITY_ATTRIBUTES sa) in prepare_named_pipe_acl() argument
621 sa->lpSecurityDescriptor = sd; in prepare_named_pipe_acl()
649 sa_t sa; in fcgi_listen() local
676 memset(&sa.sa_inet, 0, sizeof(sa.sa_inet)); in fcgi_listen()
677 sa.sa_inet.sin_family = AF_INET; in fcgi_listen()
678 sa.sa_inet.sin_port = htons(port); in fcgi_listen()
679 sock_len = sizeof(sa.sa_inet); in fcgi_listen()
682 sa.sa_inet.sin_addr.s_addr = htonl(INADDR_ANY); in fcgi_listen()
684 if (!inet_pton(AF_INET, host, &sa.sa_inet.sin_addr)) { in fcgi_listen()
699 sa.sa_inet.sin_addr.s_addr = ((struct in_addr*)hep->h_addr_list[0])->s_addr; in fcgi_listen()
709 memset(&sa, 0, sizeof(saw)); in fcgi_listen()
732 if (path_len >= sizeof(sa.sa_unix.sun_path)) { in fcgi_listen()
737 memset(&sa.sa_unix, 0, sizeof(sa.sa_unix)); in fcgi_listen()
738 sa.sa_unix.sun_family = AF_UNIX; in fcgi_listen()
739 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen()
742 sa.sa_unix.sun_len = sock_len; in fcgi_listen()
749 if ((listen_socket = socket(sa.sa.sa_family, SOCK_STREAM, 0)) < 0 || in fcgi_listen()
753 bind(listen_socket, (struct sockaddr *) &sa, sock_len) < 0 || in fcgi_listen()
785 allowed_clients[n].sa.sa_family = AF_INET; in fcgi_listen()
789 allowed_clients[n].sa.sa_family = AF_INET6; in fcgi_listen()
797 allowed_clients[n].sa.sa_family = 0; in fcgi_listen()
845 allowed_clients[n].sa.sa_family = AF_INET; in fcgi_set_allowed_clients()
849 allowed_clients[n].sa.sa_family = AF_INET6; in fcgi_set_allowed_clients()
857 allowed_clients[n].sa.sa_family = 0; in fcgi_set_allowed_clients()
1316 if (client_sa.sa.sa_family == AF_UNIX) { in fcgi_is_allowed()
1322 if (client_sa.sa.sa_family == AF_INET) { in fcgi_is_allowed()
1323 for (i = 0; allowed_clients[i].sa.sa_family ; i++) { in fcgi_is_allowed()
1324 if (allowed_clients[i].sa.sa_family == AF_INET in fcgi_is_allowed()
1331 if (client_sa.sa.sa_family == AF_INET6) { in fcgi_is_allowed()
1332 for (i = 0; allowed_clients[i].sa.sa_family ; i++) { in fcgi_is_allowed()
1333 if (allowed_clients[i].sa.sa_family == AF_INET6 in fcgi_is_allowed()
1338 if (allowed_clients[i].sa.sa_family == AF_INET in fcgi_is_allowed()
1393 sa_t sa; local
1394 socklen_t len = sizeof(sa);
1397 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
1400 client_sa = sa;
1748 if (client_sa.sa.sa_family == AF_INET) {
1749 return inet_ntop(client_sa.sa.sa_family, &client_sa.sa_inet.sin_addr, str, INET6_ADDRSTRLEN);
1754 if (client_sa.sa.sa_family == AF_INET6
1760 if (client_sa.sa.sa_family == AF_INET6) {
1761 return inet_ntop(client_sa.sa.sa_family, &client_sa.sa_inet6.sin6_addr, str, INET6_ADDRSTRLEN);