Mercurial > dropbear
diff tcpfwd.h @ 551:c3f2ec71e3d4 agent-client
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 06 Jul 2009 12:59:13 +0000 |
parents | 805e557fdff7 |
children | 44f486b72427 |
line wrap: on
line diff
--- a/tcpfwd.h Wed Jul 01 06:27:27 2009 +0000 +++ b/tcpfwd.h Mon Jul 06 12:59:13 2009 +0000 @@ -25,6 +25,7 @@ #define _TCPFWD_H #include "channel.h" +#include "list.h" struct TCPListener { @@ -43,16 +44,13 @@ enum {direct, forwarded} tcp_type; }; -/* A link in a list of forwards */ -struct TCPFwdList { - +/* A forwarding entry */ +struct TCPFwdEntry { const unsigned char* connectaddr; unsigned int connectport; unsigned int listenport; unsigned int have_reply; /* is set to 1 after a reply has been received when setting up the forwarding */ - struct TCPFwdList * next; - }; /* Server */ @@ -70,5 +68,4 @@ /* Common */ int listen_tcpfwd(struct TCPListener* tcpinfo); - #endif