Lines Matching refs:port

296 resolve_host(const char *name, int port, int logerr, char *cname, size_t clen)  in resolve_host()  argument
303 if (port <= 0) in resolve_host()
304 port = default_ssh_port(); in resolve_host()
308 snprintf(strport, sizeof strport, "%d", port); in resolve_host()
374 resolve_addr(const char *name, int port, char *caddr, size_t clen) in resolve_addr() argument
380 if (port <= 0) in resolve_addr()
381 port = default_ssh_port(); in resolve_addr()
382 snprintf(strport, sizeof strport, "%u", port); in resolve_addr()
464 resolve_canonicalize(char **hostp, int port) in resolve_canonicalize() argument
474 if ((addrs = resolve_addr(*hostp, port, in resolve_canonicalize()
513 if ((addrs = resolve_host(fullhost, port, 0, in resolve_canonicalize()
536 if ((addrs = resolve_host(fullhost, port, 0, in resolve_canonicalize()
619 set_addrinfo_port(struct addrinfo *addrs, int port) in set_addrinfo_port() argument
627 sin_port = htons(port); in set_addrinfo_port()
631 sin6_port = htons(port); in set_addrinfo_port()
979 if (options.port == -1) { in main()
980 options.port = a2port(optarg); in main()
981 if (options.port <= 0) { in main()
1089 if (options.port == -1 && tport != -1) in main()
1090 options.port = tport; in main()
1199 addrs = resolve_canonicalize(&host, options.port); in main()
1218 if ((addrs = resolve_host(host, options.port, in main()
1247 if (addrs != NULL && options.port > 0) in main()
1248 set_addrinfo_port(addrs, options.port); in main()
1263 int port = options.port, jumpport = options.jump_port; in main() local
1265 if (port <= 0) in main()
1266 port = default_ssh_port(); in main()
1271 if (strcmp(options.jump_host, host) == 0 && port == jumpport && in main()
1312 if (options.port == 0) in main()
1313 options.port = default_ssh_port(); in main()
1382 snprintf(portstr, sizeof(portstr), "%d", options.port); in main()
1532 debug2("resolving \"%s\" port %d", host, options.port); in main()
1533 if ((addrs = resolve_host(host, options.port, 1, in main()
1541 if (ssh_connect(ssh, host, host_arg, addrs, &hostaddr, options.port, in main()
1647 options.port, pw, timeout_ms); in main()
1764 u_int port; in ssh_confirm_remote_forward() local
1777 if ((r = sshpkt_get_u32(ssh, &port)) != 0) in ssh_confirm_remote_forward()
1779 if (port > 65535) { in ssh_confirm_remote_forward()
1781 "forward to %s:%d", port, in ssh_confirm_remote_forward()
1788 rfwd->allocated_port = (int)port; in ssh_confirm_remote_forward()