summaryrefslogtreecommitdiff
path: root/PROTOCOL.mux
diff options
context:
space:
mode:
Diffstat (limited to 'PROTOCOL.mux')
-rw-r--r--PROTOCOL.mux19
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
150The contents of "reserved" are currently ignored. 150The contents of "reserved" are currently ignored.
151 151
152A server may reply with a MUX_S_SESSION_OPEED, a MUX_S_PERMISSION_DENIED 152A server may reply with a MUX_S_SESSION_OPENED, a MUX_S_PERMISSION_DENIED
153or a MUX_S_FAILURE. 153or a MUX_S_FAILURE.
154 154
1558. Status messages 1558. Requesting shutdown of mux listener
156
157A client may request the master to stop accepting new multiplexing requests
158and remove its listener socket.
159
160 uint32 MUX_C_STOP_LISTENING
161 uint32 request id
162
163A server may reply with a MUX_S_OK, a MUX_S_PERMISSION_DENIED or a
164MUX_S_FAILURE.
165
1669. Status messages
156 167
157The MUX_S_OK message is empty: 168The 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
193XXX TODO 205XXX TODO
194XXX extended status (e.g. report open channels / forwards) 206XXX extended status (e.g. report open channels / forwards)
195XXX graceful close (delete listening socket, but keep existing sessions active)
196XXX lock (maybe) 207XXX lock (maybe)
197XXX watch in/out traffic (pre/post crypto) 208XXX watch in/out traffic (pre/post crypto)
198XXX inject packet (what about replies) 209XXX inject packet (what about replies)
@@ -200,4 +211,4 @@ XXX server->client error/warning notifications
200XXX port0 rfwd (need custom response message) 211XXX port0 rfwd (need custom response message)
201XXX send signals via mux 212XXX 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 $