summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/channels.h b/channels.h
index 108b36068..1488ed7e5 100644
--- a/channels.h
+++ b/channels.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.h,v 1.96 2008/06/15 20:06:26 djm Exp $ */ 1/* $OpenBSD: channels.h,v 1.98 2009/02/12 03:00:56 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -55,8 +55,6 @@
55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */
56#define SSH_CHANNEL_MAX_TYPE 15 56#define SSH_CHANNEL_MAX_TYPE 15
57 57
58#define SSH_CHANNEL_PATH_LEN 256
59
60struct Channel; 58struct Channel;
61typedef struct Channel Channel; 59typedef struct Channel Channel;
62 60
@@ -105,7 +103,7 @@ struct Channel {
105 Buffer output; /* data received over encrypted connection for 103 Buffer output; /* data received over encrypted connection for
106 * send on socket */ 104 * send on socket */
107 Buffer extended; 105 Buffer extended;
108 char path[SSH_CHANNEL_PATH_LEN]; 106 char *path;
109 /* path for unix domain sockets, or host name for forwards */ 107 /* path for unix domain sockets, or host name for forwards */
110 int listening_port; /* port being listened for forwards */ 108 int listening_port; /* port being listened for forwards */
111 int host_port; /* remote port to connect for forwards */ 109 int host_port; /* remote port to connect for forwards */
@@ -247,7 +245,7 @@ int channel_request_remote_forwarding(const char *, u_short,
247int channel_setup_local_fwd_listener(const char *, u_short, 245int channel_setup_local_fwd_listener(const char *, u_short,
248 const char *, u_short, int); 246 const char *, u_short, int);
249void channel_request_rforward_cancel(const char *host, u_short port); 247void channel_request_rforward_cancel(const char *host, u_short port);
250int channel_setup_remote_fwd_listener(const char *, u_short, int); 248int channel_setup_remote_fwd_listener(const char *, u_short, int *, int);
251int channel_cancel_rport_listener(const char *, u_short); 249int channel_cancel_rport_listener(const char *, u_short);
252 250
253/* x11 forwarding */ 251/* x11 forwarding */