Lines Matching refs:port

58                                  * this chain (needed for port comparisons) */
69 * this chain (need for both ip addr and port
112 * sar matches the address:port pair.
140 * Parses a host of the form <address>[:port]
144 * port is the default port to assume
155 apr_port_t port;
174 rv = apr_parse_addr_port(&host, &scope_id, &port, w, p);
176 * host to NULL and port to 80, so watch out for that.
179 return "The address or port is invalid";
187 if (!port && !wild_port) {
188 port = default_port;
192 rv = apr_sockaddr_info_get(&my_addr, NULL, APR_UNSPEC, port, 0, p);
199 rv = apr_sockaddr_info_get(&my_addr, host, APR_UNSPEC, port, 0, p);
214 sar->host_port = port;
234 err = get_addresses(p, ap_getword_conf(p, &hostname), &addrs, s->port);
244 /* override the default port which is inherited from main_server */
245 s->port = s->addrs->host_port;
390 if (cur->port == sa->port) {
395 if (wild_match == NULL && (cur->port == 0 || sa->port == 0)) {
405 static ipaddr_chain *find_default_server(apr_port_t port)
413 if (sar->host_port == port) {
462 apr_file_printf(f, "%8s port %u ", "", nc->sar->host_port);
465 apr_file_printf(f, "%8s port * ", "");
597 ** exactly one of us is a wildcard port, which means we want
613 ** exactly one of us is a wildcard port, which means we want
801 /* Lowercase and remove any trailing dot and/or :port from the hostname,
819 apr_port_t port;
833 /* apr_parse_addr_port will interpret a bare integer as a port
852 rv = apr_parse_addr_port(&host, &scope_id, &port, src, r->pool);
855 if (port) {
856 /* Don't throw the Host: header's port number away:
858 /* @@@ XXX there should be a better way to pass the port.
861 r->parsed_uri.port = port;
862 r->parsed_uri.port_str = apr_itoa(r->pool, (int)port);
869 * Already parsed, surrounding [ ] (if IPv6 literal) and :port have
935 * a header "Host: host:port", would it map to r->server? It's more
938 * we just call it a match. But here we require the host:port to match
942 apr_port_t port)
966 if ((sar->host_port == 0 || port == sar->host_port)
974 if (port != s->port) {
985 * Even if the request has a Host: header containing a port we ignore
986 * that port. We always use the physical port of the socket. There
993 * translated the request to another ip:port
998 apr_port_t port;
1007 port = r->connection->local_addr->port;
1022 * port
1025 if (sar->host_port != 0 && port != sar->host_port) {
1072 apr_port_t port;
1074 port = r->connection->local_addr->port;
1087 * port
1089 if (src->sar->host_port != 0 && port != src->sar->host_port) {
1115 * We cannot use ap_get_server_name/port here, because we must
1202 apr_port_t port;
1207 port = conn->local_addr->port;
1213 * matching port.
1216 if (sar->host_port != 0 && port != sar->host_port) {
1249 apr_port_t port;
1262 * matching this port
1264 port = conn->local_addr->port;
1266 trav = find_default_server(port);