summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-09-22 21:38:52 +1000
committerDamien Miller <djm@mindrot.org>2011-09-22 21:38:52 +1000
commitf6dff7cd2ff5eba5cd63e3a9c7bf6ccf183cb056 (patch)
treeca2f37e390f5f26598341a09435dabed25648d46 /channels.h
parent9ee2c606c1d03ecb955aa8a2624b9db4aa9752a2 (diff)
- djm@cvs.openbsd.org 2011/09/09 22:46:44
[channels.c channels.h clientloop.h mux.c ssh.c] support for cancelling local and remote port forwards via the multiplex socket. Use ssh -O cancel -L xx:xx:xx -R yy:yy:yy user@host" to request the cancellation of the specified forwardings; ok markus@
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels.h b/channels.h
index e2941c85a..37af32289 100644
--- a/channels.h
+++ b/channels.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.h,v 1.105 2011/06/22 22:08:42 djm Exp $ */ 1/* $OpenBSD: channels.h,v 1.106 2011/09/09 22:46:44 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -116,6 +116,7 @@ struct Channel {
116 char *path; 116 char *path;
117 /* path for unix domain sockets, or host name for forwards */ 117 /* path for unix domain sockets, or host name for forwards */
118 int listening_port; /* port being listened for forwards */ 118 int listening_port; /* port being listened for forwards */
119 char *listening_addr; /* addr being listened for forwards */
119 int host_port; /* remote port to connect for forwards */ 120 int host_port; /* remote port to connect for forwards */
120 char *remote_name; /* remote hostname */ 121 char *remote_name; /* remote hostname */
121 122
@@ -261,9 +262,10 @@ int channel_request_remote_forwarding(const char *, u_short,
261 const char *, u_short); 262 const char *, u_short);
262int channel_setup_local_fwd_listener(const char *, u_short, 263int channel_setup_local_fwd_listener(const char *, u_short,
263 const char *, u_short, int); 264 const char *, u_short, int);
264void channel_request_rforward_cancel(const char *host, u_short port); 265int channel_request_rforward_cancel(const char *host, u_short port);
265int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); 266int channel_setup_remote_fwd_listener(const char *, u_short, int *, int);
266int channel_cancel_rport_listener(const char *, u_short); 267int channel_cancel_rport_listener(const char *, u_short);
268int channel_cancel_lport_listener(const char *, u_short, u_short, int);
267 269
268/* x11 forwarding */ 270/* x11 forwarding */
269 271