Lines Matching refs:addr

22     nxt_str_t                    addr, port;  in nxt_http_route_addr_pattern_parse()  local
30 nxt_conf_get_string(cv, &addr); in nxt_http_route_addr_pattern_parse()
34 if (addr.length > 0 && addr.start[0] == '!') { in nxt_http_route_addr_pattern_parse()
35 addr.start++; in nxt_http_route_addr_pattern_parse()
36 addr.length--; in nxt_http_route_addr_pattern_parse()
44 if (nxt_str_eq(&addr, "unix", 4)) { in nxt_http_route_addr_pattern_parse()
54 if (nxt_slow_path(addr.length < 2)) { in nxt_http_route_addr_pattern_parse()
60 if (addr.start[0] == '*' && addr.start[1] == ':') { in nxt_http_route_addr_pattern_parse()
61 port.start = addr.start + 2; in nxt_http_route_addr_pattern_parse()
62 port.length = addr.length - 2; in nxt_http_route_addr_pattern_parse()
69 if (nxt_inet6_probe(&addr)) { in nxt_http_route_addr_pattern_parse()
78 if (addr.start[0] == '[') { in nxt_http_route_addr_pattern_parse()
79 addr.start++; in nxt_http_route_addr_pattern_parse()
80 addr.length--; in nxt_http_route_addr_pattern_parse()
82 end = addr.start + addr.length; in nxt_http_route_addr_pattern_parse()
84 port.start = nxt_rmemstrn(addr.start, end, "]:", 2); in nxt_http_route_addr_pattern_parse()
89 addr.length = port.start - addr.start; in nxt_http_route_addr_pattern_parse()
94 inet6 = &pattern->addr.v6; in nxt_http_route_addr_pattern_parse()
96 delim = nxt_memchr(addr.start, '-', addr.length); in nxt_http_route_addr_pattern_parse()
98 len = delim - addr.start; in nxt_http_route_addr_pattern_parse()
99 if (nxt_slow_path(!nxt_valid_ipv6_blocks(addr.start, len))) { in nxt_http_route_addr_pattern_parse()
103 ret = nxt_inet6_addr(&inet6->start, addr.start, len); in nxt_http_route_addr_pattern_parse()
108 len = addr.start + addr.length - delim - 1; in nxt_http_route_addr_pattern_parse()
129 delim = nxt_memchr(addr.start, '/', addr.length); in nxt_http_route_addr_pattern_parse()
132 addr.start + addr.length - (delim + 1)); in nxt_http_route_addr_pattern_parse()
137 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
138 if (nxt_slow_path(!nxt_valid_ipv6_blocks(addr.start, in nxt_http_route_addr_pattern_parse()
139 addr.length))) in nxt_http_route_addr_pattern_parse()
144 ret = nxt_inet6_addr(&inet6->start, addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
188 if (nxt_slow_path(!nxt_valid_ipv6_blocks(addr.start, addr.length))) { in nxt_http_route_addr_pattern_parse()
192 ret = nxt_inet6_addr(&inet6->start, addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
204 delim = nxt_memchr(addr.start, ':', addr.length); in nxt_http_route_addr_pattern_parse()
207 port.length = addr.start + addr.length - port.start; in nxt_http_route_addr_pattern_parse()
208 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
211 inet = &pattern->addr.v4; in nxt_http_route_addr_pattern_parse()
213 delim = nxt_memchr(addr.start, '-', addr.length); in nxt_http_route_addr_pattern_parse()
215 inet->start = nxt_inet_addr(addr.start, delim - addr.start); in nxt_http_route_addr_pattern_parse()
221 addr.start + addr.length - (delim + 1)); in nxt_http_route_addr_pattern_parse()
237 delim = nxt_memchr(addr.start, '/', addr.length); in nxt_http_route_addr_pattern_parse()
240 addr.start + addr.length - (delim + 1)); in nxt_http_route_addr_pattern_parse()
245 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
248 inet->start = nxt_inet_addr(addr.start, addr.length) & inet->end; in nxt_http_route_addr_pattern_parse()
266 inet->start = nxt_inet_addr(addr.start, addr.length); in nxt_http_route_addr_pattern_parse()