openssh_mux_client/
constants.rs
1macro_rules! def_constants {
2 ( $name:ident, $val:literal ) => {
3 pub const $name: u32 = $val;
4 };
5}
6
7def_constants!(SSHMUX_VER, 4);
8
9def_constants!(MUX_MSG_HELLO, 0x00000001);
10def_constants!(MUX_C_NEW_SESSION, 0x10000002);
11def_constants!(MUX_C_ALIVE_CHECK, 0x10000004);
12def_constants!(MUX_C_OPEN_FWD, 0x10000006);
13def_constants!(MUX_C_CLOSE_FWD, 0x10000007);
14def_constants!(MUX_C_STOP_LISTENING, 0x10000009);
15def_constants!(MUX_S_OK, 0x80000001);
16def_constants!(MUX_S_PERMISSION_DENIED, 0x80000002);
17def_constants!(MUX_S_FAILURE, 0x80000003);
18def_constants!(MUX_S_EXIT_MESSAGE, 0x80000004);
19def_constants!(MUX_S_ALIVE, 0x80000005);
20def_constants!(MUX_S_SESSION_OPENED, 0x80000006);
21def_constants!(MUX_S_REMOTE_PORT, 0x80000007);
22def_constants!(MUX_S_TTY_ALLOC_FAIL, 0x80000008);
23
24def_constants!(MUX_FWD_LOCAL, 1);
31def_constants!(MUX_FWD_REMOTE, 2);
32def_constants!(MUX_FWD_DYNAMIC, 3);