summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h10
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
60struct Channel; 62struct Channel;
61typedef struct Channel Channel; 63typedef 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);
250void channel_permit_all_opens(void); 253void channel_permit_all_opens(void);
251void channel_add_permitted_opens(char *, int); 254void channel_add_permitted_opens(char *, int);
252int channel_add_adm_permitted_opens(char *, int); 255int channel_add_adm_permitted_opens(char *, int);
256void channel_update_permitted_opens(int, int);
253void channel_clear_permitted_opens(void); 257void channel_clear_permitted_opens(void);
254void channel_clear_adm_permitted_opens(void); 258void channel_clear_adm_permitted_opens(void);
255void channel_print_adm_permitted_opens(void); 259void 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);
262int channel_setup_local_fwd_listener(const char *, u_short, 266int channel_setup_local_fwd_listener(const char *, u_short,
263 const char *, u_short, int); 267 const char *, u_short, int);
264void channel_request_rforward_cancel(const char *host, u_short port); 268int channel_request_rforward_cancel(const char *host, u_short port);
265int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); 269int channel_setup_remote_fwd_listener(const char *, u_short, int *, int);
266int channel_cancel_rport_listener(const char *, u_short); 270int channel_cancel_rport_listener(const char *, u_short);
271int channel_cancel_lport_listener(const char *, u_short, int, int);
272int permitopen_port(const char *);
267 273
268/* x11 forwarding */ 274/* x11 forwarding */
269 275