Lines Matching refs:port
53 * if `port' != 0, force that port number
59 const char *proto, const char *service, int port)
81 else if(port == 0)
84 def_port = port;
128 if (port != 0)
129 hi->port = port;
131 hi->port = rr->u.srv->port;
147 int port; /* hardwired port number if != 0 */
193 * parse `spec' into a krb5_krbhst_info, defaulting the port to `def_port'
194 * and forcing it to `port' if port != 0
199 const char *spec, int def_port, int port)
242 hi->port = hi->def_port = def_port;
245 hi->port = strtol(p, &end, 0);
251 if (port)
252 hi->port = port;
279 (*to)->port = from->port;
296 h->port == host->port &&
307 const char *host, int def_port, int port)
311 hi = parse_hostspec(context, kd, host, def_port, port);
333 if(host->port != host->def_port)
334 snprintf(portstr, sizeof(portstr), ":%d", host->port);
380 snprintf (portstr, sizeof(portstr), "%d", host->port);
442 kd->port);
454 * forcing it to `kd->port' if kd->port != 0
473 append_host_string(context, kd, hostlist[i], kd->def_port, kd->port);
481 * `port' is the default port for the service, and `proto' the
487 const char *serv_string, int port, int proto)
517 snprintf(portstr, sizeof(portstr), "%d", port);
534 hi->port = hi->def_port = port;
554 char host[NI_MAXHOST], port[NI_MAXSERV];
562 ret = getnameinfo(addr, socklen, host, sizeof(host), port, sizeof(port),
568 ret = getaddrinfo(host, port, &hints, &ai);
579 hi->port = hi->def_port = socket_get_port(addr);
796 kd->port = kd->def_port;
855 kd->port = kd->def_port;