Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 32) sorted by relevance

12

/openssh-portable/regress/
H A Dportnum.sh7 port=$1
8 verbose "$tid: invalid port $port"
9 if ${SSH} -F $OBJ/ssh_proxy -p $port somehost true 2>/dev/null ; then
10 fail "$tid accepted invalid port $port"
14 port=$1
15 verbose "$tid: valid port $port"
16 if ${SSH} -F $OBJ/ssh_proxy -p $port somehost true 2>/dev/null ; then
19 fail "$tid rejected valid port $port"
H A Dcfgparse.sh45 port 1234
46 port 5678
61 port 1234
62 port 5678
H A Dnetcat.c610 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() argument
618 if ((error = getaddrinfo(host, port, &hints, &res))) in remote_connect()
659 warn("connect to %s port %s (%s) failed", host, port, in remote_connect()
714 local_listen(char *host, char *port, struct addrinfo hints) in local_listen() argument
730 if ((error = getaddrinfo(host, port, &hints, &res))) in local_listen()
1468 socks_connect(const char *host, const char *port, in socks_connect() argument
1487 if (decode_addrport("0.0.0.0", port, (struct sockaddr *)&addr, in socks_connect()
1489 errx(1, "unknown port \"%.64s\"", port); in socks_connect()
1502 if (decode_addrport(host, port, (struct sockaddr *)&addr, in socks_connect()
1588 decode_addrport(host, port, (struct sockaddr *)&addr, in socks_connect()
/openssh-portable/openbsd-compat/
H A Dfake-rfc2553.c162 long int port; in getaddrinfo() local
165 port = 0; in getaddrinfo()
172 port = strtol(servname, &cp, 10); in getaddrinfo()
173 if (port > 0 && port <= 65535 && *cp == '\0') in getaddrinfo()
174 port = htons(port); in getaddrinfo()
176 port = sp->s_port; in getaddrinfo()
178 port = 0; in getaddrinfo()
185 *res = malloc_ai(port, addr, hints); in getaddrinfo()
192 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo()
199 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo()
[all …]
H A Dbindresvport.c60 u_int16_t port; in bindresvport_sa() local
91 port = ntohs(*portp); in bindresvport_sa()
92 if (port == 0) in bindresvport_sa()
93 port = arc4random_uniform(NPORTS) + STARTPORT; in bindresvport_sa()
99 *portp = htons(port); in bindresvport_sa()
111 port++; in bindresvport_sa()
112 if (port > ENDPORT) in bindresvport_sa()
113 port = STARTPORT; in bindresvport_sa()
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
/openssh-portable/
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()
983 if (options.port == -1) { in main()
1094 options.port = tport; in main()
1268 int port = options.port, jumpport = options.jump_port; in main() local
1270 if (port <= 0) in main()
1317 if (options.port == 0) in main()
1790 u_int port; in ssh_confirm_remote_forward() local
[all …]
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()
147 host, host_arg, port); in ssh_proxy_fdpass_connect()
214 u_short port, const char *proxy_command) in ssh_proxy_connect() argument
230 host, host_arg, port); in ssh_proxy_connect()
576 return ssh_proxy_connect(ssh, host, host_arg, port, in ssh_connect()
684 *hostfile_ipaddr = put_host_port(ntop, port); in get_hostfile_hostname_ipaddr()
702 *hostfile_hostname = put_host_port(hostname, port); in get_hostfile_hostname_ipaddr()
847 if (options.host_key_alias == NULL && port != 0 && in check_host_key()
848 port != SSH_DEFAULT_PORT) { in check_host_key()
[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 Dserverloop.c109 bind_permitted(int port, uid_t uid) in bind_permitted() argument
113 if (port < IPPORT_RESERVED && uid != 0) in bind_permitted()
818 u_int port = 0; in server_input_global_request() local
835 (r = sshpkt_get_u32(ssh, &port)) != 0) in server_input_global_request()
838 fwd.listen_host, port); in server_input_global_request()
839 if (port <= INT_MAX) in server_input_global_request()
840 fwd.listen_port = (int)port; in server_input_global_request()
842 if (port > INT_MAX || in server_input_global_request()
867 fwd.listen_host, port); in server_input_global_request()
868 if (port <= INT_MAX) { in server_input_global_request()
[all …]
H A Daudit-bsm.c350 audit_connection_from(const char *host, int port) in audit_connection_from() argument
357 debug3("BSM audit: connection from %.100s port %d", host, port); in audit_connection_from()
361 tid->at_port = (dev_t)port; in audit_connection_from()
368 tid->port = (dev_t)port; in audit_connection_from()
H A Daudit.c123 audit_connection_from(const char *host, int port) in audit_connection_from() argument
125 debug("audit connection from %s port %d euid %d", host, port, in audit_connection_from()
H A Dservconf.c759 const char *rdomain, int port) in add_listen_addr() argument
763 if (port > 0) in add_listen_addr()
871 qla->port = port; in queue_listen_addr()
909 int port; in process_permitopen_list() local
937 where, host, port); in process_permitopen_list()
1171 if (port == ci->lport) in match_cfg_line()
1364 port = 0; in process_server_config_line_depth()
1375 port = 0; in process_server_config_line_depth()
2739 sizeof(addr), port, sizeof(port), in format_listen_addrs()
2747 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 Dchannels.c3552 int port, sock; local
3564 port = PORT_STREAMLOCAL;
3580 port = PORT_STREAMLOCAL;
3613 c->host_port = port;
4107 char *host, int port) argument
4181 int port; local
4186 return port;
4319 cctx->port = port;
4349 c->host_port = port;
4464 c->host_port = port;
[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 Dreadconf.c493 static int port; in default_ssh_port() local
496 if (port == 0) { in default_ssh_port()
500 return port; in default_ssh_port()
589 port = options->port <= 0 ? default_ssh_port() : options->port; in match_cfg_line()
1268 if (*activep && options->port == -1) in process_config_line_depth()
1269 options->port = value; in process_config_line_depth()
1989 options->port = -1; in initialize_options()
2146 if (options->port == -1) in fill_default_options()
2535 int ret = -1, port = -1, first; in parse_jump() local
2570 o->jump_port = port; in parse_jump()
[all …]
H A Daudit-linux.c74 audit_connection_from(const char *host, int port) in audit_connection_from() argument
H A Dreadconf.h59 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 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()
/openssh-portable/regress/unittests/authopt/testdata/
H A Dmktestdata.sh21 sign all_permit.cert -Opermit-agent-forwarding -Opermit-port-forwarding \
26 sign no_portfwd.cert -Ono-port-forwarding
32 sign only_portfwd.cert -Oclear -Opermit-port-forwarding
/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()

Completed in 71 milliseconds

12