comparison tcpfwd.h @ 546:568638be7203 agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 899a8851a5edf840b2f7925bcc26ffe99dcac54d) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 04:16:32 +0000
parents 805e557fdff7
children c3f2ec71e3d4 69e98c45db7c
comparison
equal deleted inserted replaced
500:d588e3ea557a 546:568638be7203
47 struct TCPFwdList { 47 struct TCPFwdList {
48 48
49 const unsigned char* connectaddr; 49 const unsigned char* connectaddr;
50 unsigned int connectport; 50 unsigned int connectport;
51 unsigned int listenport; 51 unsigned int listenport;
52 unsigned int have_reply; /* is set to 1 after a reply has been received
53 when setting up the forwarding */
52 struct TCPFwdList * next; 54 struct TCPFwdList * next;
53 55
54 }; 56 };
55 57
56 /* Server */ 58 /* Server */
60 62
61 /* Client */ 63 /* Client */
62 void setup_localtcp(); 64 void setup_localtcp();
63 void setup_remotetcp(); 65 void setup_remotetcp();
64 extern const struct ChanType cli_chan_tcpremote; 66 extern const struct ChanType cli_chan_tcpremote;
67 void cli_recv_msg_request_success();
68 void cli_recv_msg_request_failure();
65 69
66 /* Common */ 70 /* Common */
67 int listen_tcpfwd(struct TCPListener* tcpinfo); 71 int listen_tcpfwd(struct TCPListener* tcpinfo);
68 72
69 73