summaryrefslogtreecommitdiffhomepage
path: root/tcpfwd.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-07-06 12:59:13 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-07-06 12:59:13 +0000
commitc742137dc8c8dd2163a2353d3382fdf2cae44c24 (patch)
tree25f52a38fb21d20051e2e44faa40ab25f45a5cad /tcpfwd.h
parent9dc9aff0164ba777ae9806e9608af09aaf1a786e (diff)
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
--HG-- branch : agent-client extra : convert_revision : 5465e639cc3f5ee0c6c55f0de6e7b6d5a8769da3
Diffstat (limited to 'tcpfwd.h')
-rw-r--r--tcpfwd.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/tcpfwd.h b/tcpfwd.h
index 251612e..34da314 100644
--- a/tcpfwd.h
+++ b/tcpfwd.h
@@ -25,6 +25,7 @@
#define _TCPFWD_H
#include "channel.h"
+#include "list.h"
struct TCPListener {
@@ -43,16 +44,13 @@ struct TCPListener {
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 @@ void cli_recv_msg_request_failure();
/* Common */
int listen_tcpfwd(struct TCPListener* tcpinfo);
-
#endif