Lines Matching refs:fwd
819 struct Forward fwd; in server_input_global_request() local
821 memset(&fwd, 0, sizeof(fwd)); in server_input_global_request()
832 if ((r = sshpkt_get_cstring(ssh, &fwd.listen_host, NULL)) != 0 || in server_input_global_request()
836 fwd.listen_host, port); in server_input_global_request()
838 fwd.listen_port = (int)port; in server_input_global_request()
844 (!want_reply && fwd.listen_port == 0) || in server_input_global_request()
845 (fwd.listen_port != 0 && in server_input_global_request()
846 !bind_permitted(fwd.listen_port, pw->pw_uid))) { in server_input_global_request()
851 success = channel_setup_remote_fwd_listener(ssh, &fwd, in server_input_global_request()
860 if ((r = sshpkt_get_cstring(ssh, &fwd.listen_host, NULL)) != 0 || in server_input_global_request()
865 fwd.listen_host, port); in server_input_global_request()
867 fwd.listen_port = (int)port; in server_input_global_request()
868 success = channel_cancel_rport_listener(ssh, &fwd); in server_input_global_request()
871 if ((r = sshpkt_get_cstring(ssh, &fwd.listen_path, NULL)) != 0) in server_input_global_request()
874 fwd.listen_path); in server_input_global_request()
887 &fwd, NULL, &options.fwd_opts); in server_input_global_request()
890 if ((r = sshpkt_get_cstring(ssh, &fwd.listen_path, NULL)) != 0) in server_input_global_request()
893 fwd.listen_path); in server_input_global_request()
895 success = channel_cancel_rport_listener(ssh, &fwd); in server_input_global_request()
911 free(fwd.listen_host); in server_input_global_request()
912 free(fwd.listen_path); in server_input_global_request()