Lines Matching refs:allowed_clients
248 static sa_t *allowed_clients = NULL; variable
556 if (allowed_clients) { in fcgi_shutdown()
557 free(allowed_clients); in fcgi_shutdown()
775 allowed_clients = malloc(sizeof(sa_t) * (n+2)); in fcgi_listen()
784 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_listen()
785 allowed_clients[n].sa.sa_family = AF_INET; in fcgi_listen()
788 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { 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()
834 if (allowed_clients) free(allowed_clients); in fcgi_set_allowed_clients()
835 allowed_clients = malloc(sizeof(sa_t) * (n+2)); in fcgi_set_allowed_clients()
844 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_set_allowed_clients()
845 allowed_clients[n].sa.sa_family = AF_INET; in fcgi_set_allowed_clients()
848 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { 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()
1319 if (!allowed_clients) { 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()
1325 && !memcmp(&client_sa.sa_inet.sin_addr, &allowed_clients[i].sa_inet.sin_addr, 4)) { 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()
1334 && !memcmp(&client_sa.sa_inet6.sin6_addr, &allowed_clients[i].sa_inet6.sin6_addr, 12)) { in fcgi_is_allowed()
1338 if (allowed_clients[i].sa.sa_family == AF_INET in fcgi_is_allowed()
1340 … && !memcmp(((char *)&client_sa.sa_inet6.sin6_addr)+12, &allowed_clients[i].sa_inet.sin_addr, 4)) { in fcgi_is_allowed()