channels.h (181111) | channels.h (192595) |
---|---|
1/* $OpenBSD: channels.h,v 1.96 2008/06/15 20:06:26 djm Exp $ */ | 1/* $OpenBSD: channels.h,v 1.98 2009/02/12 03:00:56 djm Exp $ */ |
2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * 8 * As far as I am concerned, the code I have written for this software 9 * can be used freely for any purpose. Any derived versions of this --- 40 unchanged lines hidden (view full) --- 50#define SSH_CHANNEL_OUTPUT_DRAINING 9 /* sending remaining data to app */ 51#define SSH_CHANNEL_LARVAL 10 /* larval session */ 52#define SSH_CHANNEL_RPORT_LISTENER 11 /* Listening to a R-style port */ 53#define SSH_CHANNEL_CONNECTING 12 54#define SSH_CHANNEL_DYNAMIC 13 55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 56#define SSH_CHANNEL_MAX_TYPE 15 57 | 2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * 8 * As far as I am concerned, the code I have written for this software 9 * can be used freely for any purpose. Any derived versions of this --- 40 unchanged lines hidden (view full) --- 50#define SSH_CHANNEL_OUTPUT_DRAINING 9 /* sending remaining data to app */ 51#define SSH_CHANNEL_LARVAL 10 /* larval session */ 52#define SSH_CHANNEL_RPORT_LISTENER 11 /* Listening to a R-style port */ 53#define SSH_CHANNEL_CONNECTING 12 54#define SSH_CHANNEL_DYNAMIC 13 55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 56#define SSH_CHANNEL_MAX_TYPE 15 57 |
58#define SSH_CHANNEL_PATH_LEN 256 59 | |
60struct Channel; 61typedef struct Channel Channel; 62 63typedef void channel_callback_fn(int, void *); 64typedef int channel_infilter_fn(struct Channel *, char *, int); 65typedef void channel_filter_cleanup_fn(int, void *); 66typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); 67 --- 32 unchanged lines hidden (view full) --- 100 int client_tty; /* (client) TTY has been requested */ 101 int force_drain; /* force close on iEOF */ 102 int delayed; /* fdset hack */ 103 Buffer input; /* data read from socket, to be sent over 104 * encrypted connection */ 105 Buffer output; /* data received over encrypted connection for 106 * send on socket */ 107 Buffer extended; | 58struct Channel; 59typedef struct Channel Channel; 60 61typedef void channel_callback_fn(int, void *); 62typedef int channel_infilter_fn(struct Channel *, char *, int); 63typedef void channel_filter_cleanup_fn(int, void *); 64typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); 65 --- 32 unchanged lines hidden (view full) --- 98 int client_tty; /* (client) TTY has been requested */ 99 int force_drain; /* force close on iEOF */ 100 int delayed; /* fdset hack */ 101 Buffer input; /* data read from socket, to be sent over 102 * encrypted connection */ 103 Buffer output; /* data received over encrypted connection for 104 * send on socket */ 105 Buffer extended; |
108 char path[SSH_CHANNEL_PATH_LEN]; | 106 char *path; |
109 /* path for unix domain sockets, or host name for forwards */ 110 int listening_port; /* port being listened for forwards */ 111 int host_port; /* remote port to connect for forwards */ 112 char *remote_name; /* remote hostname */ 113 114 u_int remote_window; 115 u_int remote_maxpacket; 116 u_int local_window; --- 125 unchanged lines hidden (view full) --- 242int channel_input_port_forward_request(int, int); 243Channel *channel_connect_to(const char *, u_short, char *, char *); 244Channel *channel_connect_by_listen_address(u_short, char *, char *); 245int channel_request_remote_forwarding(const char *, u_short, 246 const char *, u_short); 247int channel_setup_local_fwd_listener(const char *, u_short, 248 const char *, u_short, int); 249void channel_request_rforward_cancel(const char *host, u_short port); | 107 /* path for unix domain sockets, or host name for forwards */ 108 int listening_port; /* port being listened for forwards */ 109 int host_port; /* remote port to connect for forwards */ 110 char *remote_name; /* remote hostname */ 111 112 u_int remote_window; 113 u_int remote_maxpacket; 114 u_int local_window; --- 125 unchanged lines hidden (view full) --- 240int channel_input_port_forward_request(int, int); 241Channel *channel_connect_to(const char *, u_short, char *, char *); 242Channel *channel_connect_by_listen_address(u_short, char *, char *); 243int channel_request_remote_forwarding(const char *, u_short, 244 const char *, u_short); 245int channel_setup_local_fwd_listener(const char *, u_short, 246 const char *, u_short, int); 247void channel_request_rforward_cancel(const char *host, u_short port); |
250int channel_setup_remote_fwd_listener(const char *, u_short, int); | 248int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); |
251int channel_cancel_rport_listener(const char *, u_short); 252 253/* x11 forwarding */ 254 255int x11_connect_display(void); 256int x11_create_display_inet(int, int, int, u_int *, int **); 257void x11_input_open(int, u_int32_t, void *); 258void x11_request_forwarding_with_spoofing(int, const char *, const char *, --- 24 unchanged lines hidden --- | 249int channel_cancel_rport_listener(const char *, u_short); 250 251/* x11 forwarding */ 252 253int x11_connect_display(void); 254int x11_create_display_inet(int, int, int, u_int *, int **); 255void x11_input_open(int, u_int32_t, void *); 256void x11_request_forwarding_with_spoofing(int, const char *, const char *, --- 24 unchanged lines hidden --- |