Mercurial > dropbear
comparison tcpfwd.h @ 108:10f4d3319780
- added circular buffering for channels
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 26 Aug 2004 13:16:40 +0000 |
parents | efb5e0b335cf |
children | 306499676384 |
comparison
equal
deleted
inserted
replaced
107:d3eb1fa8484e | 108:10f4d3319780 |
---|---|
45 }; | 45 }; |
46 | 46 |
47 /* A link in a list of forwards */ | 47 /* A link in a list of forwards */ |
48 struct TCPFwdList { | 48 struct TCPFwdList { |
49 | 49 |
50 char* connectaddr; | 50 const unsigned char* connectaddr; |
51 unsigned int connectport; | 51 unsigned int connectport; |
52 unsigned int listenport; | 52 unsigned int listenport; |
53 struct TCPFwdList * next; | 53 struct TCPFwdList * next; |
54 | 54 |
55 }; | 55 }; |
58 void recv_msg_global_request_remotetcp(); | 58 void recv_msg_global_request_remotetcp(); |
59 extern const struct ChanType svr_chan_tcpdirect; | 59 extern const struct ChanType svr_chan_tcpdirect; |
60 | 60 |
61 /* Client */ | 61 /* Client */ |
62 void setup_localtcp(); | 62 void setup_localtcp(); |
63 void setup_remotetcp(); | |
63 extern const struct ChanType cli_chan_tcpremote; | 64 extern const struct ChanType cli_chan_tcpremote; |
64 | 65 |
65 /* Common */ | 66 /* Common */ |
66 int listen_tcpfwd(struct TCPListener* tcpinfo); | 67 int listen_tcpfwd(struct TCPListener* tcpinfo); |
67 | 68 |