diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2011-09-09 22:46:45 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2011-09-09 22:46:45 +0000 |
commit | f37eda12b3a9704178453a9aa1a4d21d94fa5f59 (patch) | |
tree | 780d357f6239e6c47ad6a17380b9fdb144a60638 /usr.bin/ssh/channels.h | |
parent | 434383d574a3a1ad956221e6918dcb4b8472929c (diff) |
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 'usr.bin/ssh/channels.h')
-rw-r--r-- | usr.bin/ssh/channels.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.h b/usr.bin/ssh/channels.h index e169bcf7349..1560c5f9085 100644 --- a/usr.bin/ssh/channels.h +++ b/usr.bin/ssh/channels.h @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.h,v 1.105 2011/06/22 22:08:42 djm Exp $ */ +/* $OpenBSD: channels.h,v 1.106 2011/09/09 22:46:44 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -115,6 +115,7 @@ struct Channel { char *path; /* path for unix domain sockets, or host name for forwards */ int listening_port; /* port being listened for forwards */ + char *listening_addr; /* addr being listened for forwards */ int host_port; /* remote port to connect for forwards */ char *remote_name; /* remote hostname */ @@ -260,9 +261,10 @@ int channel_request_remote_forwarding(const char *, u_short, const char *, u_short); int channel_setup_local_fwd_listener(const char *, u_short, const char *, u_short, int); -void channel_request_rforward_cancel(const char *host, u_short port); +int channel_request_rforward_cancel(const char *host, u_short port); int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); int channel_cancel_rport_listener(const char *, u_short); +int channel_cancel_lport_listener(const char *, u_short, u_short, int); /* x11 forwarding */ |