Lines Matching defs:This
83 static int proxy_match_ipaddr(struct dirconn_entry *This, request_rec *r);
84 static int proxy_match_domainname(struct dirconn_entry *This, request_rec *r);
85 static int proxy_match_hostname(struct dirconn_entry *This, request_rec *r);
86 static int proxy_match_word(struct dirconn_entry *This, request_rec *r);
430 PROXY_DECLARE(int) ap_proxy_is_ipaddr(struct dirconn_entry *This, apr_pool_t *p)
432 const char *addr = This->name;
443 * if (proxy_readmask(This->name, &This->addr.s_addr, &This->mask.s_addr) == 0)
483 for (This->addr.s_addr = 0, i = 0; i < quads; ++i) {
484 This->addr.s_addr |= htonl(ip_addr[i] << (24 - 8 * i));
526 inet_ntoa(This->addr), bits);
530 This->mask.s_addr = htonl(APR_INADDR_NONE << (32 - bits));
532 if (*addr == '\0' && (This->addr.s_addr & ~This->mask.s_addr) != 0) {
535 inet_ntoa(This->addr), bits);
536 This->addr.s_addr &= This->mask.s_addr;
538 " Set to %s/%ld", inet_ntoa(This->addr), bits);
542 This->matcher = proxy_match_ipaddr;
551 static int proxy_match_ipaddr(struct dirconn_entry *This, request_rec *r)
572 if (This->addr.s_addr == (addr.s_addr & This->mask.s_addr)) {
577 "%s/", inet_ntoa(This->addr));
579 "%s", inet_ntoa(This->mask));
588 "%s/", inet_ntoa(This->addr));
590 "%s", inet_ntoa(This->mask));
607 /* FIXME: This needs to be able to deal with IPv6 */
610 if (This->addr.s_addr == (ip->s_addr & This->mask.s_addr)) {
615 "%s/", inet_ntoa(This->addr));
617 "%s", inet_ntoa(This->mask));
626 "%s/", inet_ntoa(This->addr));
628 "%s", inet_ntoa(This->mask));
639 PROXY_DECLARE(int) ap_proxy_is_domainname(struct dirconn_entry *This, apr_pool_t *p)
641 char *addr = This->name;
671 This->matcher = proxy_match_domainname;
676 static int proxy_match_domainname(struct dirconn_entry *This, request_rec *r)
679 int d_len = strlen(This->name), h_len;
689 while (d_len > 0 && This->name[d_len - 1] == '.') {
696 && strncasecmp(&host[h_len - d_len], This->name, d_len) == 0;
700 PROXY_DECLARE(int) ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *p)
703 char *host = This->name;
717 This->hostaddr = addr;
724 This->matcher = proxy_match_hostname;
729 static int proxy_match_hostname(struct dirconn_entry *This, request_rec *r)
731 char *host = This->name;
744 struct apr_sockaddr_t *addr = *This->hostaddr;
766 PROXY_DECLARE(int) ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p)
768 This->matcher = proxy_match_word;
773 static int proxy_match_word(struct dirconn_entry *This, request_rec *r)
776 return host != NULL && ap_strstr_c(host, This->name) != NULL;
1332 * This pool is used for connection recycling.
1459 * This keeps the memory consumption constant
1649 * shared. This allows for dynamic addition during
1667 * This results in talking http to the socket at /path/foo/bar.sock
1876 /* This will supress the apr_reslist creation */
3433 * This would trigger the bad pool ancestry abort in apr_table_copy if
3529 * XXX: This duplicates Via: - do we strictly need it?