summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
committerColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
commitfd0f611b70a83d80fe8793af785542ee5541b7cd (patch)
treebededd22bb7eeec52e20083237ab7e4113445a16 /channels.h
parentc44fe9a5b9d3db96a7249b04d915f17e4a3a3b04 (diff)
parentebd2ce335af5861020c79fddb1ae35c03bf036cf (diff)
Merge 3.9p1 to the trunk.
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/channels.h b/channels.h
index 7d981479b..f8dc8249c 100644
--- a/channels.h
+++ b/channels.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.h,v 1.71 2003/09/23 20:41:11 markus Exp $ */ 1/* $OpenBSD: channels.h,v 1.74 2004/08/11 21:43:04 avsm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -76,6 +76,7 @@ struct Channel {
76 int wfd; /* write fd */ 76 int wfd; /* write fd */
77 int efd; /* extended fd */ 77 int efd; /* extended fd */
78 int sock; /* sock fd */ 78 int sock; /* sock fd */
79 int ctl_fd; /* control fd (client sharing) */
79 int isatty; /* rfd is a tty */ 80 int isatty; /* rfd is a tty */
80 int wfd_isatty; /* wfd is a tty */ 81 int wfd_isatty; /* wfd is a tty */
81 int force_drain; /* force close on iEOF */ 82 int force_drain; /* force close on iEOF */
@@ -105,6 +106,7 @@ struct Channel {
105 /* callback */ 106 /* callback */
106 channel_callback_fn *confirm; 107 channel_callback_fn *confirm;
107 channel_callback_fn *detach_user; 108 channel_callback_fn *detach_user;
109 void *confirm_ctx;
108 110
109 /* filter */ 111 /* filter */
110 channel_filter_fn *input_filter; 112 channel_filter_fn *input_filter;
@@ -161,10 +163,11 @@ void channel_stop_listening(void);
161void channel_send_open(int); 163void channel_send_open(int);
162void channel_request_start(int, char *, int); 164void channel_request_start(int, char *, int);
163void channel_register_cleanup(int, channel_callback_fn *); 165void channel_register_cleanup(int, channel_callback_fn *);
164void channel_register_confirm(int, channel_callback_fn *); 166void channel_register_confirm(int, channel_callback_fn *, void *);
165void channel_register_filter(int, channel_filter_fn *); 167void channel_register_filter(int, channel_filter_fn *);
166void channel_cancel_cleanup(int); 168void channel_cancel_cleanup(int);
167int channel_close_fd(int *); 169int channel_close_fd(int *);
170void channel_send_window_changes(void);
168 171
169/* protocol handler */ 172/* protocol handler */
170 173
@@ -181,7 +184,7 @@ void channel_input_window_adjust(int, u_int32_t, void *);
181 184
182/* file descriptor handling (read/write) */ 185/* file descriptor handling (read/write) */
183 186
184void channel_prepare_select(fd_set **, fd_set **, int *, int*, int); 187void channel_prepare_select(fd_set **, fd_set **, int *, u_int*, int);
185void channel_after_select(fd_set *, fd_set *); 188void channel_after_select(fd_set *, fd_set *);
186void channel_output_poll(void); 189void channel_output_poll(void);
187 190
@@ -200,8 +203,10 @@ void channel_input_port_forward_request(int, int);
200int channel_connect_to(const char *, u_short); 203int channel_connect_to(const char *, u_short);
201int channel_connect_by_listen_address(u_short); 204int channel_connect_by_listen_address(u_short);
202void channel_request_remote_forwarding(u_short, const char *, u_short); 205void channel_request_remote_forwarding(u_short, const char *, u_short);
206void channel_request_rforward_cancel(u_short port);
203int channel_setup_local_fwd_listener(u_short, const char *, u_short, int); 207int channel_setup_local_fwd_listener(u_short, const char *, u_short, int);
204int channel_setup_remote_fwd_listener(const char *, u_short, int); 208int channel_setup_remote_fwd_listener(const char *, u_short, int);
209int channel_cancel_rport_listener(const char *, u_short);
205 210
206/* x11 forwarding */ 211/* x11 forwarding */
207 212