Lines Matching refs:start

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()
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()
78 if (addr.start[0] == '[') { in nxt_http_route_addr_pattern_parse()
79 addr.start++; 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()
85 if (nxt_slow_path(port.start == NULL)) { in nxt_http_route_addr_pattern_parse()
89 addr.length = port.start - addr.start; in nxt_http_route_addr_pattern_parse()
90 port.start += nxt_length("]:"); in nxt_http_route_addr_pattern_parse()
91 port.length = end - port.start; in nxt_http_route_addr_pattern_parse()
96 delim = 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()
118 if (nxt_slow_path(memcmp(&inet6->start, &inet6->end, in nxt_http_route_addr_pattern_parse()
129 delim = 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()
144 ret = nxt_inet6_addr(&inet6->start, addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
173 inet6->start.s6_addr[i] &= inet6->end.s6_addr[i]; in nxt_http_route_addr_pattern_parse()
179 inet6->start.s6_addr[i] = 0; 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 = memchr(addr.start, ':', addr.length); in nxt_http_route_addr_pattern_parse()
206 port.start = delim + 1; 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()
213 delim = 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()
216 if (nxt_slow_path(inet->start == INADDR_NONE)) { in nxt_http_route_addr_pattern_parse()
221 addr.start + addr.length - (delim + 1)); in nxt_http_route_addr_pattern_parse()
226 if (nxt_slow_path(memcmp(&inet->start, &inet->end, in nxt_http_route_addr_pattern_parse()
237 delim = 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()
249 if (nxt_slow_path(inet->start == INADDR_NONE)) { in nxt_http_route_addr_pattern_parse()
266 inet->start = nxt_inet_addr(addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
267 if (nxt_slow_path(inet->start == INADDR_NONE)) { in nxt_http_route_addr_pattern_parse()
276 if (nxt_slow_path(port.start != NULL)) { in nxt_http_route_addr_pattern_parse()
280 base->port.start = 0; in nxt_http_route_addr_pattern_parse()
286 delim = memchr(port.start, '-', port.length - 1); in nxt_http_route_addr_pattern_parse()
288 ret = nxt_int_parse(port.start, delim - port.start); in nxt_http_route_addr_pattern_parse()
293 base->port.start = ret; in nxt_http_route_addr_pattern_parse()
295 ret = nxt_int_parse(delim + 1, port.start + port.length - (delim + 1)); in nxt_http_route_addr_pattern_parse()
296 if (nxt_slow_path(ret < base->port.start || ret > 65535)) { in nxt_http_route_addr_pattern_parse()
303 ret = nxt_int_parse(port.start, port.length); in nxt_http_route_addr_pattern_parse()
308 base->port.start = ret; in nxt_http_route_addr_pattern_parse()