summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/channels.h b/channels.h
index c8ae0d904..74e9b3f87 100644
--- a/channels.h
+++ b/channels.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.h,v 1.133 2020/01/25 22:49:38 djm Exp $ */ 1/* $OpenBSD: channels.h,v 1.135 2020/09/20 05:47:25 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -52,11 +52,11 @@
52#define SSH_CHANNEL_DYNAMIC 13 52#define SSH_CHANNEL_DYNAMIC 13
53#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 53#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */
54#define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */ 54#define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */
55#define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ 55#define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux client */
56#define SSH_CHANNEL_ABANDONED 17 /* Abandoned session, eg mux */ 56#define SSH_CHANNEL_ABANDONED 17 /* Abandoned session, eg mux */
57#define SSH_CHANNEL_UNIX_LISTENER 18 /* Listening on a domain socket. */ 57#define SSH_CHANNEL_UNIX_LISTENER 18 /* Listening on a domain socket. */
58#define SSH_CHANNEL_RUNIX_LISTENER 19 /* Listening to a R-style domain socket. */ 58#define SSH_CHANNEL_RUNIX_LISTENER 19 /* Listening to a R-style domain socket. */
59#define SSH_CHANNEL_MUX_PROXY 20 /* proxy channel for mux-slave */ 59#define SSH_CHANNEL_MUX_PROXY 20 /* proxy channel for mux-client */
60#define SSH_CHANNEL_RDYNAMIC_OPEN 21 /* reverse SOCKS, parsing request */ 60#define SSH_CHANNEL_RDYNAMIC_OPEN 21 /* reverse SOCKS, parsing request */
61#define SSH_CHANNEL_RDYNAMIC_FINISH 22 /* reverse SOCKS, finishing connect */ 61#define SSH_CHANNEL_RDYNAMIC_FINISH 22 /* reverse SOCKS, finishing connect */
62#define SSH_CHANNEL_MAX_TYPE 23 62#define SSH_CHANNEL_MAX_TYPE 23
@@ -223,6 +223,9 @@ struct Channel {
223/* Read buffer size */ 223/* Read buffer size */
224#define CHAN_RBUF (16*1024) 224#define CHAN_RBUF (16*1024)
225 225
226/* Maximum channel input buffer size */
227#define CHAN_INPUT_MAX (16*1024*1024)
228
226/* Hard limit on number of channels */ 229/* Hard limit on number of channels */
227#define CHANNELS_MAX_CHANNELS (16*1024) 230#define CHANNELS_MAX_CHANNELS (16*1024)
228 231