summaryrefslogtreecommitdiff
path: root/PROTOCOL.mux
diff options
context:
space:
mode:
Diffstat (limited to 'PROTOCOL.mux')
-rw-r--r--PROTOCOL.mux13
1 files changed, 10 insertions, 3 deletions
diff --git a/PROTOCOL.mux b/PROTOCOL.mux
index d22f7379c..1d8c463a7 100644
--- a/PROTOCOL.mux
+++ b/PROTOCOL.mux
@@ -109,8 +109,14 @@ A client may request the master to establish a port forward:
109 109
110forwarding type may be MUX_FWD_LOCAL, MUX_FWD_REMOTE, MUX_FWD_DYNAMIC. 110forwarding type may be MUX_FWD_LOCAL, MUX_FWD_REMOTE, MUX_FWD_DYNAMIC.
111 111
112A server may reply with a MUX_S_OK, a MUX_S_PERMISSION_DENIED or a 112A server may reply with a MUX_S_OK, a MUX_S_REMOTE_PORT, a
113MUX_S_FAILURE. 113MUX_S_PERMISSION_DENIED or a MUX_S_FAILURE.
114
115For dynamically allocated listen port the server replies with
116
117 uint32 MUX_S_REMOTE_PORT
118 uint32 client request id
119 uint32 allocated remote listen port
114 120
1155. Requesting closure of port forwards 1215. Requesting closure of port forwards
116 122
@@ -178,6 +184,7 @@ The MUX_S_PERMISSION_DENIED and MUX_S_FAILURE include a reason:
178#define MUX_S_EXIT_MESSAGE 0x80000004 184#define MUX_S_EXIT_MESSAGE 0x80000004
179#define MUX_S_ALIVE 0x80000005 185#define MUX_S_ALIVE 0x80000005
180#define MUX_S_SESSION_OPENED 0x80000006 186#define MUX_S_SESSION_OPENED 0x80000006
187#define MUX_S_REMOTE_PORT 0x80000007
181 188
182#define MUX_FWD_LOCAL 1 189#define MUX_FWD_LOCAL 1
183#define MUX_FWD_REMOTE 2 190#define MUX_FWD_REMOTE 2
@@ -193,4 +200,4 @@ XXX server->client error/warning notifications
193XXX port0 rfwd (need custom response message) 200XXX port0 rfwd (need custom response message)
194XXX send signals via mux 201XXX send signals via mux
195 202
196$OpenBSD: PROTOCOL.mux,v 1.1 2010/01/26 01:28:35 djm Exp $ 203$OpenBSD: PROTOCOL.mux,v 1.2 2010/05/16 12:55:51 markus Exp $