Home
last modified time | relevance | path

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

12

/openssh-portable/
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-linux.c74 audit_connection_from(const char *host, int port) in audit_connection_from() argument
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 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 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 Dchannels.h101 int port; member
H A Dclientloop.c2284 options.port, &ctx->host_str, in client_input_hostkeys()
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 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 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 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 Dreadconf.h60 int port; /* Port to connect. */ member
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 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 …]
/openssh-portable/contrib/redhat/
H A Dopenssh.spec548 - pull cvs patch to fix remote port forwarding with protocol 2
/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
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 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 …]
/openssh-portable/regress/
H A Dcfgparse.sh45 port 1234
46 port 5678
61 port 1234
62 port 5678
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 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 Dtest-exec.sh664 test -f $PIDFILE || fatal "no sshd running on port $PORT"
/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/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/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 \

Completed in 45 milliseconds

12