listen_port
struct listen_port* daemon_remote_open_ports(struct config_file* cfg);
struct listen_port* ports, struct worker* worker);
struct listen_port;
struct listen_port* ports, int do_sigs);
struct listen_port;
port_insert(struct listen_port** list, int s, enum listen_type ftype,
struct listen_port* item = (struct listen_port*)malloc(
sizeof(struct listen_port));
struct addrinfo *hints, int port, struct listen_port** list,
listen_create(struct comm_base* base, struct listen_port* ports,
struct listen_port*
struct listen_port* list = NULL;
void listening_ports_free(struct listen_port* list)
struct listen_port* nx;
struct listen_port* next;
struct listen_port* listening_ports_open(struct config_file* cfg,
void listening_ports_free(struct listen_port* list);
listen_create(struct comm_base* base, struct listen_port* ports,
int listen_port; /* Remote side should listen port. */
u_int id, remote_id, listen_port;
(r = sshbuf_get_u32(original, &listen_port)) != 0) {
if (listen_port > 65535) {
listen_host, listen_port);
-1, listen_host, NULL, (int)listen_port, downstream);
snprintf(strport, sizeof strport, "%d", fwd->listen_port);
fwd->listen_port == 0 && allocated_listen_port != NULL &&
fwd->listen_port == 0 &&
if (fwd->listen_port == 0 && allocated_listen_port != NULL &&
c->listening_port = fwd->listen_port;
error_f("cannot listen to port: %d", fwd->listen_port);
fwd->listen_host, fwd->listen_port);
fwd->listen_host, fwd->listen_port, cport, fwd_opts);
if (allowed_open->listen_port != FWD_PERMIT_ANY_PORT &&
allowed_open->listen_port != fwd->listen_port)
fwd->listen_host, fwd->listen_port );
int port_to_connect, listen_port;
(r = sshpkt_put_u32(ssh, fwd->listen_port)) != 0 ||
port_to_connect = listen_port = 0;
listen_port = PORT_STREAMLOCAL;
listen_port = fwd->listen_port;
listen_host, listen_path, listen_port, NULL);
if (allowed_open->listen_port != requestedport)
if (allowed_open->listen_port != PORT_STREAMLOCAL)
fwd->listen_port ? fwd->listen_port : fwd->allocated_port);
pset->permitted_user[idx].listen_port =
u_short listen_port, char *ctype, char *rname)
listen_host, listen_port, 1)) {
listen_port);
const char *listen_host, const char *listen_path, int listen_port,
(*permp)[n].listen_port = listen_port;
c->self, perm->listen_host, perm->listen_port);
(r = sshpkt_put_u32(ssh, perm->listen_port)) != 0 ||
u_int listen_port, originator_port;
(r = sshpkt_get_u32(ssh, &listen_port)) != 0 ||
listen_address, listen_port, originator_address, originator_port);
if (listen_port > 0xffff)
listen_address, listen_port, "forwarded-tcpip",
(r = sshbuf_put_u32(b, listen_port)) != 0 ||
if (a->listen_port != b->listen_port)
int listen_port; /* Port to forward. */
(r = sshbuf_put_u32(m, fwd->listen_port)) != 0 ||
fwd->listen_host, fwd->listen_port,
fwd->listen_host, fwd->listen_port);
fwd->listen_port,
if (a->listen_port != b->listen_port)
rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path :
if (rfwd->listen_port == 0) {
if (rfwd->listen_port == 0)
"listen port %d", rfwd->listen_port);
"connect %s:%d", rfwd->listen_port,
fwd.listen_port = lport;
if (fwd.listen_port == PORT_STREAMLOCAL)
if (fwd.listen_port != PORT_STREAMLOCAL && fwd.listen_port >= 65536) {
logit_f("invalid listen port %u", fwd.listen_port);
if (fwd.listen_port != 0)
fwd.listen_port = lport;
if (fwd.listen_port == PORT_STREAMLOCAL)
found_fwd->listen_port = found_fwd->connect_port = 0;
fwd->listen_port = PORT_STREAMLOCAL;
fwd->listen_port = a2port(fwdargs[0].arg);
fwd->listen_port = PORT_STREAMLOCAL;
fwd->listen_port = a2port(fwdargs[0].arg);
fwd->listen_port = a2port(fwdargs[1].arg);
fwd->listen_port = PORT_STREAMLOCAL;
fwd->listen_port = a2port(fwdargs[1].arg);
fwd->listen_port = a2port(fwdargs[0].arg);
fwd->listen_port = a2port(fwdargs[1].arg);
if ((fwd->listen_port < 0 && fwd->listen_path == NULL) ||
(!remotefwd && fwd->listen_port == 0))
if (fwd->listen_port == PORT_STREAMLOCAL)
printf(" %d", fwd->listen_port);
fwd->listen_host, fwd->listen_port);
fwd->listen_port = newfwd->listen_port;
fwd->listen_port = newfwd->listen_port;
fwd.listen_port = (int)port;
(!want_reply && fwd.listen_port == 0)) {
fwd.listen_port = (int)port;
rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path :
if (rfwd->listen_path == NULL && rfwd->listen_port == 0) {
"for listen port %d", rfwd->listen_port);
"for listen port %d", rfwd->listen_port);
options.local_forwards[i].listen_port,
options.remote_forwards[i].listen_port,
fwd.listen_port == PORT_STREAMLOCAL ?
options.stdio_forward_port = fwd.listen_port;
char *fixed_server, *fixed_server_port, *fixed_proxy, *listen_ip, *listen_port,
listen_port = "8021";
listen_port = optarg;
error = getaddrinfo(listen_ip, listen_port, &hints, &res);
logmsg(LOG_NOTICE, "listening on %s port %s", listen_ip, listen_port);
cfgstate.listen_port = $5;
cfgstate.listen_port = SASYNCD_DEFAULT_PORT;
log_msg(2, "listening on port %u fd %d", cfgstate.listen_port,
if (net_set_sa(sa, cfgstate.listen_on, cfgstate.listen_port) == 0) {
sin->sin_port = htons(cfgstate.listen_port);
sin6->sin6_port = htons(cfgstate.listen_port);
if (net_set_sa(p->sa, p->name, cfgstate.listen_port))
cfgstate.listen_port = SASYNCD_DEFAULT_PORT;
in_port_t listen_port;
char **bind_host, **bind_port, **listen_host, **listen_port;
bind_port = listen_port = tls_port = NULL;
&listen_port, &nlisten);
if (socket_bind("tcp", listen_host[i], listen_port[i], 0,
int setup_acl_for_ports(struct acl_list* list, struct listen_port* port_list)
struct listen_port* p0;
if(!(daemon->ports = (struct listen_port**)calloc(
int setup_acl_for_ports(struct acl_list* list, struct listen_port* port_list);
struct listen_port;
struct listen_port** ports;
struct listen_port* rc_ports;
add_open(const char* ip, int nr, struct listen_port** list, int noproto_is_err,
struct listen_port* n;
n = (struct listen_port*)calloc(1, sizeof(*n));
struct listen_port* daemon_remote_open_ports(struct config_file* cfg)
struct listen_port* l = NULL;
struct listen_port* ports, struct worker* worker)
struct listen_port* p;
struct listen_port* daemon_remote_open_ports(struct config_file* cfg);
struct listen_port* ports, struct worker* worker);
struct listen_port;
struct listen_port* ports, int do_sigs)
struct listen_port* ports, int do_sigs);
struct listen_port;
port_insert(struct listen_port** list, int s, enum listen_type ftype,
struct listen_port* item = (struct listen_port*)malloc(
sizeof(struct listen_port));
struct addrinfo *hints, int port, struct listen_port** list,
listen_create(struct comm_base* base, struct listen_port* ports,
struct listen_port*
struct listen_port* list = NULL;
void listening_ports_free(struct listen_port* list)
struct listen_port* nx;
struct listen_port* next;
struct listen_port* listening_ports_open(struct config_file* cfg,
void listening_ports_free(struct listen_port* list);
listen_create(struct comm_base* base, struct listen_port* ports,
struct listen_port* listening_ports_open(struct config_file* ATTR_UNUSED(cfg),
return calloc(1, sizeof(struct listen_port));
void listening_ports_free(struct listen_port* list)
listen_create(struct comm_base* base, struct listen_port* ATTR_UNUSED(ports),
struct listen_port* daemon_remote_open_ports(struct config_file*
struct listen_port* ATTR_UNUSED(ports), struct worker* worker)