Lines Matching defs:rfwd
585 struct Forward *rfwd;
604 rfwd = &options.remote_forwards[fctx->fid];
607 rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path :
608 rfwd->connect_host, rfwd->connect_port);
610 if (rfwd->listen_port == 0) {
616 rfwd->connect_host, rfwd->connect_port);
618 rfwd->allocated_port = (int)port;
620 " to %s:%d", rfwd->allocated_port,
621 rfwd->connect_host, rfwd->connect_port);
626 rfwd->allocated_port)) != 0)
628 channel_update_permission(ssh, rfwd->handle,
629 rfwd->allocated_port);
635 if (rfwd->listen_port == 0)
636 channel_update_permission(ssh, rfwd->handle, -1);
637 if (rfwd->listen_path != NULL)
639 "listen path %s", rfwd->listen_path);
642 "listen port %d", rfwd->listen_port);
645 "connect %s:%d", rfwd->listen_port,
646 rfwd->connect_path ? rfwd->connect_path :
647 rfwd->connect_host, rfwd->connect_port);
649 free(rfwd->listen_host);
650 free(rfwd->listen_path);
651 free(rfwd->connect_host);
652 free(rfwd->connect_path);
653 memset(rfwd, 0, sizeof(*rfwd));