iphp 97 http/modules/ngx_http_upstream_ip_hash_module.c ngx_http_upstream_ip_hash_peer_data_t *iphp; iphp 99 http/modules/ngx_http_upstream_ip_hash_module.c iphp = ngx_palloc(r->pool, sizeof(ngx_http_upstream_ip_hash_peer_data_t)); iphp 100 http/modules/ngx_http_upstream_ip_hash_module.c if (iphp == NULL) { iphp 104 http/modules/ngx_http_upstream_ip_hash_module.c r->upstream->peer.data = &iphp->rrp; iphp 118 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[0] = p[0]; iphp 119 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[1] = p[1]; iphp 120 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[2] = p[2]; iphp 123 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[0] = 0; iphp 124 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[1] = 0; iphp 125 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[2] = 0; iphp 128 http/modules/ngx_http_upstream_ip_hash_module.c iphp->hash = 89; iphp 129 http/modules/ngx_http_upstream_ip_hash_module.c iphp->tries = 0; iphp 130 http/modules/ngx_http_upstream_ip_hash_module.c iphp->get_rr_peer = ngx_http_upstream_get_round_robin_peer; iphp 139 http/modules/ngx_http_upstream_ip_hash_module.c ngx_http_upstream_ip_hash_peer_data_t *iphp = data; iphp 151 http/modules/ngx_http_upstream_ip_hash_module.c if (iphp->tries > 20 || iphp->rrp.peers->single) { iphp 152 http/modules/ngx_http_upstream_ip_hash_module.c return iphp->get_rr_peer(pc, &iphp->rrp); iphp 160 http/modules/ngx_http_upstream_ip_hash_module.c hash = iphp->hash; iphp 165 http/modules/ngx_http_upstream_ip_hash_module.c hash = (hash * 113 + iphp->addr[i]) % 6271; iphp 168 http/modules/ngx_http_upstream_ip_hash_module.c p = hash % iphp->rrp.peers->number; iphp 173 http/modules/ngx_http_upstream_ip_hash_module.c if (!(iphp->rrp.tried[n] & m)) { iphp 178 http/modules/ngx_http_upstream_ip_hash_module.c peer = &iphp->rrp.peers->peer[p]; iphp 194 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.tried[n] |= m; iphp 201 http/modules/ngx_http_upstream_ip_hash_module.c if (++iphp->tries >= 20) { iphp 202 http/modules/ngx_http_upstream_ip_hash_module.c return iphp->get_rr_peer(pc, &iphp->rrp); iphp 206 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.current = p; iphp 214 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.tried[n] |= m; iphp 215 http/modules/ngx_http_upstream_ip_hash_module.c iphp->hash = hash;