Lines Matching refs:match

149     nxt_http_route_match_t         *match[0];  member
206 nxt_http_request_t *r, nxt_http_route_match_t *match);
364 nxt_http_route_match_t *match, **m; in nxt_http_route_create() local
375 m = &route->match[0]; in nxt_http_route_create()
380 match = nxt_http_route_match_create(task, tmcf, value); in nxt_http_route_create()
381 if (match == NULL) { in nxt_http_route_create()
385 *m++ = match; in nxt_http_route_create()
404 nxt_http_route_match_t *match; in nxt_http_route_match_create() local
418 match = nxt_mp_alloc(mp, size); in nxt_http_route_match_create()
419 if (nxt_slow_path(match == NULL)) { in nxt_http_route_match_create()
423 match->items = n; in nxt_http_route_match_create()
430 ret = nxt_http_action_init(task, tmcf, action_conf, &match->action); in nxt_http_route_match_create()
436 return match; in nxt_http_route_match_create()
448 test = &match->test[0]; in nxt_http_route_match_create()
576 return match; in nxt_http_route_match_create()
1242 nxt_http_route_match_t **match, **end; in nxt_http_route_resolve() local
1244 match = &route->match[0]; in nxt_http_route_resolve()
1245 end = match + route->items; in nxt_http_route_resolve()
1247 while (match < end) { in nxt_http_route_resolve()
1248 ret = nxt_http_action_resolve(task, tmcf, &(*match)->action); in nxt_http_route_resolve()
1253 match++; in nxt_http_route_resolve()
1541 nxt_http_route_match_t **match, **end; in nxt_http_route_handler() local
1544 match = &route->match[0]; in nxt_http_route_handler()
1545 end = match + route->items; in nxt_http_route_handler()
1547 while (match < end) { in nxt_http_route_handler()
1548 action = nxt_http_route_match(task, r, *match); in nxt_http_route_handler()
1553 match++; in nxt_http_route_handler()
1564 nxt_http_route_match_t *match) in nxt_http_route_match() argument
1569 test = &match->test[0]; in nxt_http_route_match()
1570 end = test + match->items; in nxt_http_route_match()
1600 return &match->action; in nxt_http_route_match()
1710 nxt_int_t match; in nxt_http_route_addr_pattern_match() local
1723 match = (base->addr_family == AF_INET in nxt_http_route_addr_pattern_match()
1725 if (!match) { in nxt_http_route_addr_pattern_match()
1732 match = (in_port >= base->port.start && in_port <= base->port.end); in nxt_http_route_addr_pattern_match()
1733 if (!match) { in nxt_http_route_addr_pattern_match()
1743 match = (nxt_memcmp(&sin->sin_addr, &p->addr.v4.start, in nxt_http_route_addr_pattern_match()
1749 match = (nxt_memcmp(&sin->sin_addr, &p->addr.v4.start, in nxt_http_route_addr_pattern_match()
1756 match = ((sin->sin_addr.s_addr & p->addr.v4.end) in nxt_http_route_addr_pattern_match()
1769 match = (base->addr_family == AF_INET6 in nxt_http_route_addr_pattern_match()
1771 if (!match) { in nxt_http_route_addr_pattern_match()
1778 match = (in_port >= base->port.start && in_port <= base->port.end); in nxt_http_route_addr_pattern_match()
1779 if (!match) { in nxt_http_route_addr_pattern_match()
1789 match = (nxt_memcmp(&sin6->sin6_addr, &p->addr.v6.start, in nxt_http_route_addr_pattern_match()
1795 match = (nxt_memcmp(&sin6->sin6_addr, &p->addr.v6.start, in nxt_http_route_addr_pattern_match()
1803 match = ((sin6->sin6_addr.s6_addr[i] in nxt_http_route_addr_pattern_match()
1807 if (!match) { in nxt_http_route_addr_pattern_match()
1824 match = (base->addr_family == AF_UNIX); in nxt_http_route_addr_pattern_match()
1829 match = 0; in nxt_http_route_addr_pattern_match()
1833 return match ^ base->negative; in nxt_http_route_addr_pattern_match()