port 960 core/ngx_connection.c ngx_uint_t port) port 1011 core/ngx_connection.c s->len = ngx_sock_ntop(c->local_sockaddr, s->data, s->len, port); port 186 core/ngx_connection.h ngx_uint_t port); port 180 core/ngx_inet.c ngx_sock_ntop(struct sockaddr *sa, u_char *text, size_t len, ngx_uint_t port) port 199 core/ngx_inet.c if (port) { port 217 core/ngx_inet.c if (port) { port 223 core/ngx_inet.c if (port) { port 615 core/ngx_inet.c u_char *p, *host, *port, *last, *uri, *args; port 631 core/ngx_inet.c port = ngx_strlchr(host, last, ':'); port 657 core/ngx_inet.c if (uri < port) { port 658 core/ngx_inet.c port = NULL; port 662 core/ngx_inet.c if (port) { port 663 core/ngx_inet.c port++; port 665 core/ngx_inet.c len = last - port; port 672 core/ngx_inet.c n = ngx_atoi(port, len); port 679 core/ngx_inet.c u->port = (in_port_t) n; port 683 core/ngx_inet.c u->port_text.data = port; port 685 core/ngx_inet.c last = port - 1; port 703 core/ngx_inet.c u->port = (in_port_t) n; port 770 core/ngx_inet.c u->port = u->default_port; port 790 core/ngx_inet.c u_char *p, *host, *port, *last, *uri; port 812 core/ngx_inet.c port = p + 1; port 814 core/ngx_inet.c uri = ngx_strlchr(port, last, '/'); port 826 core/ngx_inet.c if (*port == ':') { port 827 core/ngx_inet.c port++; port 829 core/ngx_inet.c len = last - port; port 836 core/ngx_inet.c n = ngx_atoi(port, len); port 843 core/ngx_inet.c u->port = (in_port_t) n; port 847 core/ngx_inet.c u->port_text.data = port; port 880 core/ngx_inet.c u->port = u->default_port; port 901 core/ngx_inet.c in_port_t port; port 909 core/ngx_inet.c port = htons(u->port); port 954 core/ngx_inet.c sin->sin_port = port; port 990 core/ngx_inet.c sin->sin_port = port; port 1002 core/ngx_inet.c &u->host, ntohs(port)) - p; port 82 core/ngx_inet.h in_port_t port; port 110 core/ngx_inet.h ngx_uint_t port); port 57 event/modules/ngx_eventport_module.c int port_associate(int port, int source, uintptr_t object, int events, port 63 event/modules/ngx_eventport_module.c int port_dissociate(int port, int source, uintptr_t object) port 68 event/modules/ngx_eventport_module.c int port_getn(int port, port_event_t list[], uint_t max, uint_t *nget, port 654 http/modules/ngx_http_fastcgi_module.c u->resolved->port = url.port; port 38 http/modules/ngx_http_proxy_module.c ngx_str_t port; port 633 http/modules/ngx_http_proxy_module.c u_short port; port 648 http/modules/ngx_http_proxy_module.c port = 80; port 655 http/modules/ngx_http_proxy_module.c port = 443; port 675 http/modules/ngx_http_proxy_module.c url.default_port = port; port 723 http/modules/ngx_http_proxy_module.c u->resolved->port = (in_port_t) (url.no_port ? port : url.port); port 1415 http/modules/ngx_http_proxy_module.c v->len = ctx->vars.port.len; port 1419 http/modules/ngx_http_proxy_module.c v->data = ctx->vars.port.data; port 2347 http/modules/ngx_http_proxy_module.c u_short port; port 2399 http/modules/ngx_http_proxy_module.c port = 80; port 2409 http/modules/ngx_http_proxy_module.c port = 443; port 2425 http/modules/ngx_http_proxy_module.c u.default_port = port; port 2782 http/modules/ngx_http_proxy_module.c if (u->no_port || u->port == u->default_port) { port 2787 http/modules/ngx_http_proxy_module.c ngx_str_set(&v->port, "80"); port 2790 http/modules/ngx_http_proxy_module.c ngx_str_set(&v->port, "443"); port 2796 http/modules/ngx_http_proxy_module.c v->port = u->port_text; port 2803 http/modules/ngx_http_proxy_module.c ngx_str_null(&v->port); port 476 http/modules/ngx_http_scgi_module.c u->resolved->port = url.port; port 509 http/modules/ngx_http_uwsgi_module.c u->resolved->port = url.port; port 21 http/ngx_http.c ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port, port 24 http/ngx_http.c ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port, port 58 http/ngx_http.c ngx_http_conf_port_t *port); port 1146 http/ngx_http.c ngx_http_conf_port_t *port; port 1185 http/ngx_http.c port = cmcf->ports->elts; port 1188 http/ngx_http.c if (p != port[i].port || sa->sa_family != port[i].family) { port 1194 http/ngx_http.c return ngx_http_add_addresses(cf, cscf, &port[i], lsopt); port 1199 http/ngx_http.c port = ngx_array_push(cmcf->ports); port 1200 http/ngx_http.c if (port == NULL) { port 1204 http/ngx_http.c port->family = sa->sa_family; port 1205 http/ngx_http.c port->port = p; port 1206 http/ngx_http.c port->addrs.elts = NULL; port 1208 http/ngx_http.c return ngx_http_add_address(cf, cscf, port, lsopt); port 1214 http/ngx_http.c ngx_http_conf_port_t *port, ngx_http_listen_opt_t *lsopt) port 1259 http/ngx_http.c addr = port->addrs.elts; port 1261 http/ngx_http.c for (i = 0; i < port->addrs.nelts; i++) { port 1315 http/ngx_http.c return ngx_http_add_address(cf, cscf, port, lsopt); port 1326 http/ngx_http.c ngx_http_conf_port_t *port, ngx_http_listen_opt_t *lsopt) port 1330 http/ngx_http.c if (port->addrs.elts == NULL) { port 1331 http/ngx_http.c if (ngx_array_init(&port->addrs, cf->temp_pool, 4, port 1339 http/ngx_http.c addr = ngx_array_push(&port->addrs); port 1404 http/ngx_http.c ngx_http_conf_port_t *port; port 1411 http/ngx_http.c port = ports->elts; port 1414 http/ngx_http.c ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, port 1422 http/ngx_http.c addr = port[p].addrs.elts; port 1423 http/ngx_http.c for (a = 0; a < port[p].addrs.nelts; a++) { port 1437 http/ngx_http.c if (ngx_http_init_listening(cf, &port[p]) != NGX_OK) { port 1644 http/ngx_http.c ngx_http_init_listening(ngx_conf_t *cf, ngx_http_conf_port_t *port) port 1651 http/ngx_http.c addr = port->addrs.elts; port 1652 http/ngx_http.c last = port->addrs.nelts; port 4376 http/ngx_http_core_module.c u.port = 53; port 236 http/ngx_http_core_module.h in_port_t port; port 160 http/ngx_http_header_filter_module.c ngx_uint_t status, i, port; port 341 http/ngx_http_header_filter_module.c port = ntohs(sin6->sin6_port); port 346 http/ngx_http_header_filter_module.c port = 0; port 351 http/ngx_http_header_filter_module.c port = ntohs(sin->sin_port); port 363 http/ngx_http_header_filter_module.c port = (port == 443) ? 0 : port; port 366 http/ngx_http_header_filter_module.c port = (port == 80) ? 0 : port; port 369 http/ngx_http_header_filter_module.c port = 0; port 372 http/ngx_http_header_filter_module.c if (port) { port 378 http/ngx_http_header_filter_module.c port = 0; port 533 http/ngx_http_header_filter_module.c if (port) { port 534 http/ngx_http_header_filter_module.c b->last = ngx_sprintf(b->last, ":%ui", port); port 244 http/ngx_http_request.c ngx_http_port_t *port; port 311 http/ngx_http_request.c port = c->listening->servers; port 315 http/ngx_http_request.c if (port->naddrs > 1) { port 334 http/ngx_http_request.c addr6 = port->addrs; port 338 http/ngx_http_request.c for (i = 0; i < port->naddrs - 1; i++) { port 352 http/ngx_http_request.c addr = port->addrs; port 356 http/ngx_http_request.c for (i = 0; i < port->naddrs - 1; i++) { port 373 http/ngx_http_request.c addr6 = port->addrs; port 379 http/ngx_http_request.c addr = port->addrs; port 569 http/ngx_http_upstream.c && ((uscf->port == 0 && u->resolved->no_port) port 570 http/ngx_http_upstream.c || uscf->port == u->resolved->port) port 577 http/ngx_http_upstream.c if (u->resolved->port == 0) { port 4231 http/ngx_http_upstream.c if ((uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE) && u->port) { port 4234 http/ngx_http_upstream.c &u->host, u->port); port 4238 http/ngx_http_upstream.c if ((flags & NGX_HTTP_UPSTREAM_CREATE) && uscfp[i]->port) { port 4241 http/ngx_http_upstream.c &u->host, uscfp[i]->port, port 4246 http/ngx_http_upstream.c if (uscfp[i]->port != u->port) { port 4268 http/ngx_http_upstream.c uscf->port = u->port; port 113 http/ngx_http_upstream.h in_port_t port; port 232 http/ngx_http_upstream.h in_port_t port; port 137 http/ngx_http_upstream_round_robin.c if (us->port == 0 && us->default_port == 0) { port 147 http/ngx_http_upstream_round_robin.c u.port = (in_port_t) (us->port ? us->port : us->default_port); port 303 http/ngx_http_upstream_round_robin.c len = ngx_sprintf(&p[len], ":%d", ur->port) - p; port 311 http/ngx_http_upstream_round_robin.c sin->sin_port = htons(ur->port); port 948 http/ngx_http_variables.c ngx_uint_t port; port 969 http/ngx_http_variables.c port = ntohs(sin6->sin6_port); port 975 http/ngx_http_variables.c port = ntohs(sin->sin_port); port 979 http/ngx_http_variables.c if (port > 0 && port < 65536) { port 980 http/ngx_http_variables.c v->len = ngx_sprintf(v->data, "%ui", port) - v->data; port 1022 http/ngx_http_variables.c ngx_uint_t port; port 1047 http/ngx_http_variables.c port = ntohs(sin6->sin6_port); port 1053 http/ngx_http_variables.c port = ntohs(sin->sin_port); port 1057 http/ngx_http_variables.c if (port > 0 && port < 65536) { port 1058 http/ngx_http_variables.c v->len = ngx_sprintf(v->data, "%ui", port) - v->data; port 248 mail/ngx_mail.c ngx_mail_conf_port_t *port; port 271 mail/ngx_mail.c port = ports->elts; port 273 mail/ngx_mail.c if (p == port[i].port && sa->sa_family == port[i].family) { port 277 mail/ngx_mail.c port = &port[i]; port 284 mail/ngx_mail.c port = ngx_array_push(ports); port 285 mail/ngx_mail.c if (port == NULL) { port 289 mail/ngx_mail.c port->family = sa->sa_family; port 290 mail/ngx_mail.c port->port = p; port 292 mail/ngx_mail.c if (ngx_array_init(&port->addrs, cf->temp_pool, 2, port 301 mail/ngx_mail.c addr = ngx_array_push(&port->addrs); port 328 mail/ngx_mail.c ngx_mail_conf_port_t *port; port 331 mail/ngx_mail.c port = ports->elts; port 334 mail/ngx_mail.c ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, port 337 mail/ngx_mail.c addr = port[p].addrs.elts; port 338 mail/ngx_mail.c last = port[p].addrs.nelts; port 79 mail/ngx_mail.h in_port_t port; port 315 mail/ngx_mail.h in_port_t port[4]; port 50 mail/ngx_mail_auth_http_module.c ngx_str_t port; port 459 mail/ngx_mail_auth_http_module.c ngx_int_t rc, port, n; port 583 mail/ngx_mail_auth_http_module.c ctx->port.len = ctx->header_end - ctx->header_start; port 584 mail/ngx_mail_auth_http_module.c ctx->port.data = ctx->header_start; port 747 mail/ngx_mail_auth_http_module.c if (ctx->addr.len == 0 || ctx->port.len == 0) { port 785 mail/ngx_mail_auth_http_module.c port = ngx_atoi(ctx->port.data, ctx->port.len); port 786 mail/ngx_mail_auth_http_module.c if (port == NGX_ERROR || port < 1 || port > 65536) { port 790 mail/ngx_mail_auth_http_module.c ctx->peer.name, &ctx->port); port 796 mail/ngx_mail_auth_http_module.c sin->sin_port = htons((in_port_t) port); port 812 mail/ngx_mail_auth_http_module.c len = ctx->addr.len + 1 + ctx->port.len; port 829 mail/ngx_mail_auth_http_module.c ngx_memcpy(peer->name.data + len, ctx->port.data, ctx->port.len); port 283 mail/ngx_mail_core_module.c in_port_t port; port 332 mail/ngx_mail_core_module.c port = sin6->sin6_port; port 340 mail/ngx_mail_core_module.c port = sin->sin_port; port 348 mail/ngx_mail_core_module.c if (port != u.port) { port 381 mail/ngx_mail_core_module.c for (i = 0; module->protocol->port[i]; i++) { port 382 mail/ngx_mail_core_module.c if (module->protocol->port[i] == u.port) { port 513 mail/ngx_mail_core_module.c u.port = 53; port 25 mail/ngx_mail_handler.c ngx_mail_port_t *port; port 42 mail/ngx_mail_handler.c port = c->listening->servers; port 44 mail/ngx_mail_handler.c if (port->naddrs > 1) { port 67 mail/ngx_mail_handler.c addr6 = port->addrs; port 71 mail/ngx_mail_handler.c for (i = 0; i < port->naddrs - 1; i++) { port 85 mail/ngx_mail_handler.c addr = port->addrs; port 89 mail/ngx_mail_handler.c for (i = 0; i < port->naddrs - 1; i++) { port 105 mail/ngx_mail_handler.c addr6 = port->addrs; port 111 mail/ngx_mail_handler.c addr = port->addrs;