summaryrefslogtreecommitdiffhomepage
path: root/localtcpfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'localtcpfwd.c')
-rw-r--r--localtcpfwd.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/localtcpfwd.c b/localtcpfwd.c
index 9894f46..bf89fa0 100644
--- a/localtcpfwd.c
+++ b/localtcpfwd.c
@@ -1,14 +1,27 @@
#include "includes.h"
#include "session.h"
#include "dbutil.h"
+#include "channel.h"
#include "localtcpfwd.h"
#ifndef DISABLE_LOCALTCPFWD
+static int newtcpdirect(struct Channel * channel);
static int newtcp(const char * host, int port);
+const struct ChanType chan_tcpdirect = {
+ 0, /* sepfds */
+ "direct-tcpip",
+ newtcpdirect, /* init */
+ NULL, /* checkclose */
+ NULL, /* reqhandler */
+ NULL /* closehandler */
+};
+
+
+
/* Called upon creating a new direct tcp channel (ie we connect out to an
* address */
-int newtcpdirect(struct Channel * channel) {
+static int newtcpdirect(struct Channel * channel) {
unsigned char* desthost = NULL;
unsigned int destport;