• Home
  • Raw
  • Download

Lines Matching refs:rfwd

589 	struct Forward *rfwd;  in mux_confirm_remote_forward()  local
605 rfwd = &options.remote_forwards[fctx->fid]; in mux_confirm_remote_forward()
608 rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path : in mux_confirm_remote_forward()
609 rfwd->connect_host, rfwd->connect_port); in mux_confirm_remote_forward()
611 if (rfwd->listen_port == 0) { in mux_confirm_remote_forward()
612 rfwd->allocated_port = packet_get_int(); in mux_confirm_remote_forward()
614 " to %s:%d", rfwd->allocated_port, in mux_confirm_remote_forward()
615 rfwd->connect_host, rfwd->connect_port); in mux_confirm_remote_forward()
618 buffer_put_int(&out, rfwd->allocated_port); in mux_confirm_remote_forward()
619 channel_update_permitted_opens(rfwd->handle, in mux_confirm_remote_forward()
620 rfwd->allocated_port); in mux_confirm_remote_forward()
627 if (rfwd->listen_port == 0) in mux_confirm_remote_forward()
628 channel_update_permitted_opens(rfwd->handle, -1); in mux_confirm_remote_forward()
629 if (rfwd->listen_path != NULL) in mux_confirm_remote_forward()
631 "listen path %s", rfwd->listen_path); in mux_confirm_remote_forward()
634 "listen port %d", rfwd->listen_port); in mux_confirm_remote_forward()
637 "connect %s:%d", __func__, rfwd->listen_port, in mux_confirm_remote_forward()
638 rfwd->connect_path ? rfwd->connect_path : in mux_confirm_remote_forward()
639 rfwd->connect_host, rfwd->connect_port); in mux_confirm_remote_forward()
641 free(rfwd->listen_host); in mux_confirm_remote_forward()
642 free(rfwd->listen_path); in mux_confirm_remote_forward()
643 free(rfwd->connect_host); in mux_confirm_remote_forward()
644 free(rfwd->connect_path); in mux_confirm_remote_forward()
645 memset(rfwd, 0, sizeof(*rfwd)); in mux_confirm_remote_forward()