Lines Matching refs:rid

90 	u_int rid;  member
95 u_int rid; member
101 u_int rid; /* request id */ member
267 mux_master_process_hello(struct ssh *ssh, u_int rid, in mux_master_process_hello() argument
311 reply_ok(struct sshbuf *reply, u_int rid) in reply_ok() argument
316 (r = sshbuf_put_u32(reply, rid)) != 0) in reply_ok()
322 reply_error(struct sshbuf *reply, u_int type, u_int rid, const char *msg) in reply_error() argument
327 (r = sshbuf_put_u32(reply, rid)) != 0 || in reply_error()
333 mux_master_process_new_session(struct ssh *ssh, u_int rid, in mux_master_process_new_session() argument
345 cctx->rid = rid; in mux_master_process_new_session()
411 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_new_session()
423 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_new_session()
444 reply_error(reply, MUX_S_PERMISSION_DENIED, rid, in mux_master_process_new_session()
490 mux_master_process_alive_check(struct ssh *ssh, u_int rid, in mux_master_process_alive_check() argument
499 (r = sshbuf_put_u32(reply, rid)) != 0 || in mux_master_process_alive_check()
507 mux_master_process_terminate(struct ssh *ssh, u_int rid, in mux_master_process_terminate() argument
517 reply_error(reply, MUX_S_PERMISSION_DENIED, rid, in mux_master_process_terminate()
524 reply_ok(reply, rid); in mux_master_process_terminate()
638 (r = sshbuf_put_u32(out, fctx->rid)) != 0 || in mux_confirm_remote_forward()
645 reply_ok(out, fctx->rid); in mux_confirm_remote_forward()
671 reply_error(out, MUX_S_FAILURE, fctx->rid, failmsg); in mux_confirm_remote_forward()
683 mux_master_process_open_fwd(struct ssh *ssh, u_int rid, in mux_master_process_open_fwd() argument
737 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_open_fwd()
773 reply_ok(reply, rid); in mux_master_process_open_fwd()
787 (r = sshbuf_put_u32(reply, rid)) != 0 || in mux_master_process_open_fwd()
800 reply_error(reply, MUX_S_PERMISSION_DENIED, rid, in mux_master_process_open_fwd()
811 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_open_fwd()
826 fctx->rid = rid; in mux_master_process_open_fwd()
835 reply_ok(reply, rid); in mux_master_process_open_fwd()
848 mux_master_process_close_fwd(struct ssh *ssh, u_int rid, in mux_master_process_close_fwd() argument
940 reply_error(reply, MUX_S_FAILURE, rid, error_reason); in mux_master_process_close_fwd()
942 reply_ok(reply, rid); in mux_master_process_close_fwd()
960 mux_master_process_stdio_fwd(struct ssh *ssh, u_int rid, in mux_master_process_stdio_fwd() argument
997 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_stdio_fwd()
1008 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_stdio_fwd()
1027 reply_error(reply, MUX_S_PERMISSION_DENIED, rid, in mux_master_process_stdio_fwd()
1047 cctx->rid = rid; in mux_master_process_stdio_fwd()
1076 reply_error(reply, MUX_S_FAILURE, cctx->rid, in mux_stdio_confirm()
1085 (r = sshbuf_put_u32(reply, cctx->rid)) != 0 || in mux_stdio_confirm()
1103 mux_master_process_stop_listening(struct ssh *ssh, u_int rid, in mux_master_process_stop_listening() argument
1113 reply_error(reply, MUX_S_PERMISSION_DENIED, rid, in mux_master_process_stop_listening()
1128 reply_ok(reply, rid); in mux_master_process_stop_listening()
1133 mux_master_process_proxy(struct ssh *ssh, u_int rid, in mux_master_process_proxy() argument
1142 (r = sshbuf_put_u32(reply, rid)) != 0) in mux_master_process_proxy()
1154 u_int type, rid, i; in mux_master_read_cb() local
1192 rid = 0; in mux_master_read_cb()
1199 if ((r = sshbuf_get_u32(in, &rid)) != 0) in mux_master_read_cb()
1205 ret = mux_master_handlers[i].handler(ssh, rid, in mux_master_read_cb()
1212 reply_error(out, MUX_S_FAILURE, rid, "unsupported request"); in mux_master_read_cb()
1376 reply_error(reply, MUX_S_FAILURE, cctx->rid, in mux_session_confirm()
1413 (r = sshbuf_put_u32(reply, cctx->rid)) != 0 || in mux_session_confirm()
1661 u_int pid, type, rid; in mux_client_request_alive() local
1691 if ((r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_request_alive()
1693 if (rid != muxclient_request_id) in mux_client_request_alive()
1695 muxclient_request_id, rid); in mux_client_request_alive()
1712 u_int type, rid; in mux_client_request_terminate() local
1739 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_request_terminate()
1741 if (rid != muxclient_request_id) in mux_client_request_terminate()
1743 muxclient_request_id, rid); in mux_client_request_terminate()
1768 u_int type, rid; in mux_client_forward() local
1816 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_forward()
1818 if (rid != muxclient_request_id) in mux_client_forward()
1820 muxclient_request_id, rid); in mux_client_forward()
1889 u_int i, echar, rid, sid, esid, exitval, type, exitval_seen; in mux_client_request_session() local
1961 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_request_session()
1963 if (rid != muxclient_request_id) in mux_client_request_session()
1965 muxclient_request_id, rid); in mux_client_request_session()
2078 u_int type, rid; in mux_client_proxy() local
2097 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_proxy()
2099 if (rid != muxclient_request_id) in mux_client_proxy()
2101 muxclient_request_id, rid); in mux_client_proxy()
2119 u_int type, rid, sid; in mux_client_request_stdio_fwd() local
2167 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_request_stdio_fwd()
2169 if (rid != muxclient_request_id) in mux_client_request_stdio_fwd()
2171 muxclient_request_id, rid); in mux_client_request_stdio_fwd()
2218 u_int type, rid; in mux_client_request_stop_listening() local
2239 (r = sshbuf_get_u32(m, &rid)) != 0) in mux_client_request_stop_listening()
2241 if (rid != muxclient_request_id) in mux_client_request_stop_listening()
2243 muxclient_request_id, rid); in mux_client_request_stop_listening()