diff options
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/channels.h b/channels.h index e2941c85a..c1f01c48b 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.109 2011/09/23 07:45:05 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -57,6 +57,8 @@ | |||
57 | #define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ | 57 | #define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ |
58 | #define SSH_CHANNEL_MAX_TYPE 17 | 58 | #define SSH_CHANNEL_MAX_TYPE 17 |
59 | 59 | ||
60 | #define CHANNEL_CANCEL_PORT_STATIC -1 | ||
61 | |||
60 | struct Channel; | 62 | struct Channel; |
61 | typedef struct Channel Channel; | 63 | typedef struct Channel Channel; |
62 | 64 | ||
@@ -116,6 +118,7 @@ struct Channel { | |||
116 | char *path; | 118 | char *path; |
117 | /* path for unix domain sockets, or host name for forwards */ | 119 | /* path for unix domain sockets, or host name for forwards */ |
118 | int listening_port; /* port being listened for forwards */ | 120 | int listening_port; /* port being listened for forwards */ |
121 | char *listening_addr; /* addr being listened for forwards */ | ||
119 | int host_port; /* remote port to connect for forwards */ | 122 | int host_port; /* remote port to connect for forwards */ |
120 | char *remote_name; /* remote hostname */ | 123 | char *remote_name; /* remote hostname */ |
121 | 124 | ||
@@ -250,6 +253,7 @@ void channel_set_af(int af); | |||
250 | void channel_permit_all_opens(void); | 253 | void channel_permit_all_opens(void); |
251 | void channel_add_permitted_opens(char *, int); | 254 | void channel_add_permitted_opens(char *, int); |
252 | int channel_add_adm_permitted_opens(char *, int); | 255 | int channel_add_adm_permitted_opens(char *, int); |
256 | void channel_update_permitted_opens(int, int); | ||
253 | void channel_clear_permitted_opens(void); | 257 | void channel_clear_permitted_opens(void); |
254 | void channel_clear_adm_permitted_opens(void); | 258 | void channel_clear_adm_permitted_opens(void); |
255 | void channel_print_adm_permitted_opens(void); | 259 | void channel_print_adm_permitted_opens(void); |
@@ -261,9 +265,11 @@ int channel_request_remote_forwarding(const char *, u_short, | |||
261 | const char *, u_short); | 265 | const char *, u_short); |
262 | int channel_setup_local_fwd_listener(const char *, u_short, | 266 | int channel_setup_local_fwd_listener(const char *, u_short, |
263 | const char *, u_short, int); | 267 | const char *, u_short, int); |
264 | void channel_request_rforward_cancel(const char *host, u_short port); | 268 | int channel_request_rforward_cancel(const char *host, u_short port); |
265 | int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); | 269 | int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); |
266 | int channel_cancel_rport_listener(const char *, u_short); | 270 | int channel_cancel_rport_listener(const char *, u_short); |
271 | int channel_cancel_lport_listener(const char *, u_short, int, int); | ||
272 | int permitopen_port(const char *); | ||
267 | 273 | ||
268 | /* x11 forwarding */ | 274 | /* x11 forwarding */ |
269 | 275 | ||