diff options
Diffstat (limited to 'PROTOCOL.mux')
-rw-r--r-- | PROTOCOL.mux | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/PROTOCOL.mux b/PROTOCOL.mux index 2a5817bd7..05bb14690 100644 --- a/PROTOCOL.mux +++ b/PROTOCOL.mux | |||
@@ -149,10 +149,21 @@ The client then sends its standard input and output file descriptors | |||
149 | 149 | ||
150 | The contents of "reserved" are currently ignored. | 150 | The contents of "reserved" are currently ignored. |
151 | 151 | ||
152 | A server may reply with a MUX_S_SESSION_OPEED, a MUX_S_PERMISSION_DENIED | 152 | A server may reply with a MUX_S_SESSION_OPENED, a MUX_S_PERMISSION_DENIED |
153 | or a MUX_S_FAILURE. | 153 | or a MUX_S_FAILURE. |
154 | 154 | ||
155 | 8. Status messages | 155 | 8. Requesting shutdown of mux listener |
156 | |||
157 | A client may request the master to stop accepting new multiplexing requests | ||
158 | and remove its listener socket. | ||
159 | |||
160 | uint32 MUX_C_STOP_LISTENING | ||
161 | uint32 request id | ||
162 | |||
163 | A server may reply with a MUX_S_OK, a MUX_S_PERMISSION_DENIED or a | ||
164 | MUX_S_FAILURE. | ||
165 | |||
166 | 9. Status messages | ||
156 | 167 | ||
157 | The MUX_S_OK message is empty: | 168 | The MUX_S_OK message is empty: |
158 | 169 | ||
@@ -178,6 +189,7 @@ The MUX_S_PERMISSION_DENIED and MUX_S_FAILURE include a reason: | |||
178 | #define MUX_C_OPEN_FWD 0x10000006 | 189 | #define MUX_C_OPEN_FWD 0x10000006 |
179 | #define MUX_C_CLOSE_FWD 0x10000007 | 190 | #define MUX_C_CLOSE_FWD 0x10000007 |
180 | #define MUX_C_NEW_STDIO_FWD 0x10000008 | 191 | #define MUX_C_NEW_STDIO_FWD 0x10000008 |
192 | #define MUX_C_STOP_LISTENING 0x10000009 | ||
181 | #define MUX_S_OK 0x80000001 | 193 | #define MUX_S_OK 0x80000001 |
182 | #define MUX_S_PERMISSION_DENIED 0x80000002 | 194 | #define MUX_S_PERMISSION_DENIED 0x80000002 |
183 | #define MUX_S_FAILURE 0x80000003 | 195 | #define MUX_S_FAILURE 0x80000003 |
@@ -192,7 +204,6 @@ The MUX_S_PERMISSION_DENIED and MUX_S_FAILURE include a reason: | |||
192 | 204 | ||
193 | XXX TODO | 205 | XXX TODO |
194 | XXX extended status (e.g. report open channels / forwards) | 206 | XXX extended status (e.g. report open channels / forwards) |
195 | XXX graceful close (delete listening socket, but keep existing sessions active) | ||
196 | XXX lock (maybe) | 207 | XXX lock (maybe) |
197 | XXX watch in/out traffic (pre/post crypto) | 208 | XXX watch in/out traffic (pre/post crypto) |
198 | XXX inject packet (what about replies) | 209 | XXX inject packet (what about replies) |
@@ -200,4 +211,4 @@ XXX server->client error/warning notifications | |||
200 | XXX port0 rfwd (need custom response message) | 211 | XXX port0 rfwd (need custom response message) |
201 | XXX send signals via mux | 212 | XXX send signals via mux |
202 | 213 | ||
203 | $OpenBSD: PROTOCOL.mux,v 1.4 2011/01/31 21:42:15 djm Exp $ | 214 | $OpenBSD: PROTOCOL.mux,v 1.5 2011/04/17 22:42:41 djm Exp $ |