Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 32) sorted by last modified time

12

/openssh-portable/
H A Dsftp.c2378 int in, out, ch, err, tmp, port = -1, noisy = 0; in main() local
2436 port = a2port(optarg); in main()
2437 if (port <= 0) in main()
2536 port = tmp; in main()
2559 if (port != -1) in main()
2560 addargs(&args, "-oPort %d", port); in main()
H A Dchannels.c3471 int port, sock; local
3483 port = PORT_STREAMLOCAL;
3499 port = PORT_STREAMLOCAL;
3532 c->host_port = port;
4024 char *host, int port) argument
4098 int port; local
4103 return port;
4236 cctx->port = port;
4266 c->host_port = port;
4381 c->host_port = port;
[all …]
H A Dsession.c299 int port; in set_fwdpermit_from_authopts() local
310 if (cp == NULL || (port = permitopen_port(cp)) < 0) in set_fwdpermit_from_authopts()
313 FORWARD_USER, FORWARD_LOCAL, host, port); in set_fwdpermit_from_authopts()
325 if (cp == NULL || (port = permitopen_port(cp)) < 0) in set_fwdpermit_from_authopts()
328 FORWARD_USER, FORWARD_REMOTE, host, port); in set_fwdpermit_from_authopts()
H A Dmux.c611 u_int port; in mux_confirm_remote_forward() local
634 if ((r = sshpkt_get_u32(ssh, &port)) != 0) in mux_confirm_remote_forward()
636 if (port > 65535) { in mux_confirm_remote_forward()
638 "mux remote forward to %s:%d", port, in mux_confirm_remote_forward()
641 rfwd->allocated_port = (int)port; in mux_confirm_remote_forward()
H A Dsshconnect.c89 const char *host, const char *host_arg, int port) in expand_proxy_command() argument
95 snprintf(strport, sizeof strport, "%d", port); in expand_proxy_command()
129 host, host_arg, port); in ssh_proxy_fdpass_connect()
196 u_short port, const char *proxy_command) in ssh_proxy_connect() argument
212 host, host_arg, port); in ssh_proxy_connect()
555 return ssh_proxy_connect(ssh, host, host_arg, port, in ssh_connect()
667 *hostfile_ipaddr = put_host_port(ntop, port); in get_hostfile_hostname_ipaddr()
685 *hostfile_hostname = put_host_port(hostname, port); in get_hostfile_hostname_ipaddr()
854 if (options.host_key_alias == NULL && port != 0 && in check_host_key()
855 port != SSH_DEFAULT_PORT) { in check_host_key()
[all …]
H A Dserverloop.c109 bind_permitted(int port, uid_t uid) in bind_permitted() argument
113 if (port < IPPORT_RESERVED && uid != 0) in bind_permitted()
811 u_int port = 0; in server_input_global_request() local
828 (r = sshpkt_get_u32(ssh, &port)) != 0) in server_input_global_request()
831 fwd.listen_host, port); in server_input_global_request()
832 if (port <= INT_MAX) in server_input_global_request()
833 fwd.listen_port = (int)port; in server_input_global_request()
835 if (port > INT_MAX || in server_input_global_request()
860 fwd.listen_host, port); in server_input_global_request()
861 if (port <= INT_MAX) { in server_input_global_request()
[all …]
H A Dsshconnect2.c118 order_hostkeyalgs(char *host, struct sockaddr *hostaddr, u_short port) in order_hostkeyalgs() argument
128 get_hostfile_hostname_ipaddr(host, hostaddr, port, &hostname, NULL); in order_hostkeyalgs()
209 ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port) in ssh_kex2() argument
251 order_hostkeyalgs(host, hostaddr, port)); in ssh_kex2()
H A Dclientloop.c2284 options.port, &ctx->host_str, in client_input_hostkeys()
H A Dreadconf.c494 static int port; in default_ssh_port() local
497 if (port == 0) { in default_ssh_port()
501 return port; in default_ssh_port()
579 port = options->port <= 0 ? default_ssh_port() : options->port; in match_cfg_line()
1258 if (*activep && options->port == -1) in process_config_line_depth()
1259 options->port = value; in process_config_line_depth()
1990 options->port = -1; in initialize_options()
2149 if (options->port == -1) in fill_default_options()
2545 int ret = -1, port = -1, first; in parse_jump() local
2580 o->jump_port = port; in parse_jump()
[all …]
H A Dmisc.c423 long long port; in a2port() local
426 port = strtonum(s, 0, 65535, &errstr); in a2port()
428 return (int)port; in a2port()
596 put_host_port(const char *host, u_short port) in put_host_port() argument
600 if (port == 0 || port == SSH_DEFAULT_PORT) in put_host_port()
774 int port = -1, ret = -1; in parse_user_host_port() local
800 if ((port = a2port(tmp)) <= 0) in parse_user_host_port()
813 *portp = port; in parse_user_host_port()
899 int port = -1, ret = -1; in parse_uri() local
949 if ((port = a2port(tmp)) <= 0) in parse_uri()
[all …]
H A Dssh.c303 if (port <= 0) in resolve_host()
304 port = default_ssh_port(); in resolve_host()
380 if (port <= 0) in resolve_addr()
381 port = default_ssh_port(); in resolve_addr()
979 if (options.port == -1) { in main()
1090 options.port = tport; in main()
1263 int port = options.port, jumpport = options.jump_port; in main() local
1265 if (port <= 0) in main()
1312 if (options.port == 0) in main()
1764 u_int port; in ssh_confirm_remote_forward() local
[all …]
H A Dservconf.c762 const char *rdomain, int port) in add_listen_addr() argument
766 if (port > 0) in add_listen_addr()
874 qla->port = port; in queue_listen_addr()
912 int port; in process_permitopen_list() local
940 where, host, port); in process_permitopen_list()
1174 if (port == ci->lport) in match_cfg_line()
1367 port = 0; in process_server_config_line_depth()
1378 port = 0; in process_server_config_line_depth()
2750 sizeof(addr), port, sizeof(port), in format_listen_addrs()
2758 addr, port, in format_listen_addrs()
[all …]
H A Dscp.c131 int do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout);
241 do_cmd(char *host, char *remuser, int port, char *cmd, int *fdin, int *fdout) in do_cmd() argument
251 if (port == -1) in do_cmd()
252 port = sshport; in do_cmd()
287 if (port != -1) { in do_cmd()
289 addargs(&args, "%d", port); in do_cmd()
322 do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout) in do_cmd2() argument
333 if (port == -1) in do_cmd2()
334 port = sshport; in do_cmd2()
343 if (port != -1) { in do_cmd2()
[all …]
H A Dcanohost.c44 u_int16_t port; in ipv64_normalise_mapped() local
53 port = a6->sin6_port; in ipv64_normalise_mapped()
60 a4->sin_port = port; in ipv64_normalise_mapped()
H A Dconfigure.ac3289 AC_ARG_WITH([prngd-port],
3290 [ --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT],
3299 AC_MSG_ERROR([You must specify a numeric port number for --with-prngd-port])
3330 AC_MSG_ERROR([You may not specify both a PRNGD/EGD port and socket])
3363 RAND_MSG="PRNGd port $PRNGD_PORT"
3373 … with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-soc…
H A Dreadconf.h60 int port; /* Port to connect. */ member
H A Dservconf.h66 int port; /* <=0 if unspecified */ member
H A Dchannels.h101 int port; member
H A Daudit-linux.c74 audit_connection_from(const char *host, int port) in audit_connection_from() argument
/openssh-portable/regress/
H A Dnetcat.c613 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() argument
621 if ((error = getaddrinfo(host, port, &hints, &res))) in remote_connect()
662 warn("connect to %s port %s (%s) failed", host, port, in remote_connect()
717 local_listen(char *host, char *port, struct addrinfo hints) in local_listen() argument
733 if ((error = getaddrinfo(host, port, &hints, &res))) in local_listen()
1471 socks_connect(const char *host, const char *port, in socks_connect() argument
1490 if (decode_addrport("0.0.0.0", port, (struct sockaddr *)&addr, in socks_connect()
1492 errx(1, "unknown port \"%.64s\"", port); in socks_connect()
1505 if (decode_addrport(host, port, (struct sockaddr *)&addr, in socks_connect()
1591 decode_addrport(host, port, (struct sockaddr *)&addr, in socks_connect()
H A Dtest-exec.sh664 test -f $PIDFILE || fatal "no sshd running on port $PORT"
/openssh-portable/contrib/redhat/
H A Dopenssh.spec548 - pull cvs patch to fix remote port forwarding with protocol 2
/openssh-portable/regress/unittests/sshkey/
H A Dmktestdata.sh145 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
148 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
151 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
154 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
157 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
160 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
170 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
173 -Oforce-command=/bin/ls -Ono-port-forwarding -Osource-address=10.0.0.0/8 \
/openssh-portable/regress/unittests/misc/
H A Dtests.c23 int port, parseerr; in tests() local
73 &user, &host, &port, &path), 0); in tests()
76 ASSERT_INT_EQ(port, 22); in tests()
/openssh-portable/openbsd-compat/
H A DMakefile.in94 PORTS= port-aix.o \
95 port-irix.o \
96 port-linux.o \
97 port-solaris.o \
98 port-net.o \
99 port-uw.o

Completed in 65 milliseconds

12