Lines Matching refs:allowed_clients
250 static sa_t *allowed_clients = NULL; variable
558 if (allowed_clients) { in fcgi_shutdown()
559 free(allowed_clients); in fcgi_shutdown()
782 allowed_clients = malloc(sizeof(sa_t) * (n+2));
791 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) {
792 allowed_clients[n].sa.sa_family = AF_INET;
795 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) {
796 allowed_clients[n].sa.sa_family = AF_INET6;
804 allowed_clients[n].sa.sa_family = 0;
841 if (allowed_clients) free(allowed_clients);
842 allowed_clients = malloc(sizeof(sa_t) * (n+2));
851 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) {
852 allowed_clients[n].sa.sa_family = AF_INET;
855 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) {
856 allowed_clients[n].sa.sa_family = AF_INET6;
864 allowed_clients[n].sa.sa_family = 0;
1328 if (!allowed_clients) {
1332 for (i = 0; allowed_clients[i].sa.sa_family ; i++) {
1333 if (allowed_clients[i].sa.sa_family == AF_INET
1334 && !memcmp(&client_sa.sa_inet.sin_addr, &allowed_clients[i].sa_inet.sin_addr, 4)) {
1341 for (i = 0; allowed_clients[i].sa.sa_family ; i++) {
1342 if (allowed_clients[i].sa.sa_family == AF_INET6
1343 && !memcmp(&client_sa.sa_inet6.sin6_addr, &allowed_clients[i].sa_inet6.sin6_addr, 12)) {
1347 if (allowed_clients[i].sa.sa_family == AF_INET
1349 … && !memcmp(((char *)&client_sa.sa_inet6.sin6_addr)+12, &allowed_clients[i].sa_inet.sin_addr, 4)) {