summaryrefslogtreecommitdiffhomepage
path: root/tcpfwd.h
diff options
context:
space:
mode:
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