cidr 358 core/ngx_inet.c ngx_ptocidr(ngx_str_t *text, ngx_cidr_t *cidr) cidr 374 core/ngx_inet.c cidr->u.in.addr = ngx_inet_addr(addr, len); cidr 376 core/ngx_inet.c if (cidr->u.in.addr != INADDR_NONE) { cidr 377 core/ngx_inet.c cidr->family = AF_INET; cidr 380 core/ngx_inet.c cidr->u.in.mask = 0xffffffff; cidr 385 core/ngx_inet.c } else if (ngx_inet6_addr(addr, len, cidr->u.in6.addr.s6_addr) == NGX_OK) { cidr 386 core/ngx_inet.c cidr->family = AF_INET6; cidr 389 core/ngx_inet.c ngx_memset(cidr->u.in6.mask.s6_addr, 0xff, 16); cidr 405 core/ngx_inet.c switch (cidr->family) { cidr 409 core/ngx_inet.c addr = cidr->u.in6.addr.s6_addr; cidr 410 core/ngx_inet.c mask = cidr->u.in6.mask.s6_addr; cidr 432 core/ngx_inet.c cidr->u.in.mask = htonl((ngx_uint_t) (0 - (1 << (32 - shift)))); cidr 436 core/ngx_inet.c cidr->u.in.mask = 0; cidr 439 core/ngx_inet.c if (cidr->u.in.addr == (cidr->u.in.addr & cidr->u.in.mask)) { cidr 443 core/ngx_inet.c cidr->u.in.addr &= cidr->u.in.mask; cidr 112 core/ngx_inet.h ngx_int_t ngx_ptocidr(ngx_str_t *text, ngx_cidr_t *cidr); cidr 1059 event/ngx_event.c ngx_cidr_t cidr; cidr 1068 event/ngx_event.c rc = ngx_ptocidr(&value[1], &cidr); cidr 1080 event/ngx_event.c if (cidr.family != AF_INET) { cidr 1086 event/ngx_event.c dc->mask = cidr.u.in.mask; cidr 1087 event/ngx_event.c dc->addr = cidr.u.in.addr; cidr 244 http/modules/ngx_http_access_module.c ngx_cidr_t cidr; cidr 250 http/modules/ngx_http_access_module.c ngx_memzero(&cidr, sizeof(ngx_cidr_t)); cidr 258 http/modules/ngx_http_access_module.c rc = ngx_ptocidr(&value[1], &cidr); cidr 272 http/modules/ngx_http_access_module.c switch (cidr.family) { cidr 291 http/modules/ngx_http_access_module.c rule6->mask = cidr.u.in6.mask; cidr 292 http/modules/ngx_http_access_module.c rule6->addr = cidr.u.in6.addr; cidr 317 http/modules/ngx_http_access_module.c rule->mask = cidr.u.in.mask; cidr 318 http/modules/ngx_http_access_module.c rule->addr = cidr.u.in.addr; cidr 85 http/modules/ngx_http_geo_module.c ngx_http_geo_conf_ctx_t *ctx, ngx_cidr_t *cidr); cidr 87 http/modules/ngx_http_geo_module.c ngx_cidr_t *cidr); cidr 447 http/modules/ngx_http_geo_module.c ngx_cidr_t cidr; cidr 487 http/modules/ngx_http_geo_module.c if (ngx_http_geo_cidr_value(cf, &value[1], &cidr) != NGX_OK) { cidr 491 http/modules/ngx_http_geo_module.c rv = ngx_http_geo_add_proxy(cf, ctx, &cidr); cidr 893 http/modules/ngx_http_geo_module.c ngx_cidr_t cidr; cidr 904 http/modules/ngx_http_geo_module.c cidr.u.in.addr = 0; cidr 905 http/modules/ngx_http_geo_module.c cidr.u.in.mask = 0; cidr 918 http/modules/ngx_http_geo_module.c if (ngx_http_geo_cidr_value(cf, net, &cidr) != NGX_OK) { cidr 923 http/modules/ngx_http_geo_module.c if (ngx_radix32tree_delete(ctx->tree, cidr.u.in.addr, cidr 924 http/modules/ngx_http_geo_module.c cidr.u.in.mask) cidr 942 http/modules/ngx_http_geo_module.c rc = ngx_radix32tree_insert(ctx->tree, cidr.u.in.addr, cidr.u.in.mask, cidr 955 http/modules/ngx_http_geo_module.c ngx_radix32tree_find(ctx->tree, cidr.u.in.addr & cidr.u.in.mask); cidr 961 http/modules/ngx_http_geo_module.c rc = ngx_radix32tree_delete(ctx->tree, cidr.u.in.addr, cidr.u.in.mask); cidr 1028 http/modules/ngx_http_geo_module.c ngx_cidr_t *cidr) cidr 1044 http/modules/ngx_http_geo_module.c c->addr = cidr->u.in.addr; cidr 1045 http/modules/ngx_http_geo_module.c c->mask = cidr->u.in.mask; cidr 1052 http/modules/ngx_http_geo_module.c ngx_http_geo_cidr_value(ngx_conf_t *cf, ngx_str_t *net, ngx_cidr_t *cidr) cidr 1057 http/modules/ngx_http_geo_module.c cidr->u.in.addr = 0xffffffff; cidr 1058 http/modules/ngx_http_geo_module.c cidr->u.in.mask = 0xffffffff; cidr 1063 http/modules/ngx_http_geo_module.c rc = ngx_ptocidr(net, cidr); cidr 1070 http/modules/ngx_http_geo_module.c if (cidr->family != AF_INET) { cidr 1080 http/modules/ngx_http_geo_module.c cidr->u.in.addr = ntohl(cidr->u.in.addr); cidr 1081 http/modules/ngx_http_geo_module.c cidr->u.in.mask = ntohl(cidr->u.in.mask); cidr 318 http/modules/ngx_http_realip_module.c ngx_cidr_t cidr; cidr 345 http/modules/ngx_http_realip_module.c rc = ngx_ptocidr(&value[1], &cidr); cidr 353 http/modules/ngx_http_realip_module.c if (cidr.family != AF_INET) { cidr 364 http/modules/ngx_http_realip_module.c from->mask = cidr.u.in.mask; cidr 365 http/modules/ngx_http_realip_module.c from->addr = cidr.u.in.addr;