Mercurial > dropbear
comparison tcpfwd-direct.c @ 24:469950e86d0f
switching to global vars
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 20 Jul 2004 12:05:00 +0000 |
parents | f76c9389e9e0 |
children | 0969767bca0d |
comparison
equal
deleted
inserted
replaced
23:c896a4dd65da | 24:469950e86d0f |
---|---|
1 #include "includes.h" | 1 #include "includes.h" |
2 #include "session.h" | 2 #include "session.h" |
3 #include "dbutil.h" | 3 #include "dbutil.h" |
4 #include "channel.h" | 4 #include "channel.h" |
5 #include "tcpfwd-direct.h" | 5 #include "tcpfwd-direct.h" |
6 #include "runopts.h" | |
6 | 7 |
7 #ifndef DISABLE_TCPFWD_DIRECT | 8 #ifndef DISABLE_TCPFWD_DIRECT |
8 static int newtcpdirect(struct Channel * channel); | 9 static int newtcpdirect(struct Channel * channel); |
9 static int newtcp(const char * host, int port); | 10 static int newtcp(const char * host, int port); |
10 | 11 |
28 unsigned int origport; | 29 unsigned int origport; |
29 int sock; | 30 int sock; |
30 int len; | 31 int len; |
31 int ret = DROPBEAR_FAILURE; | 32 int ret = DROPBEAR_FAILURE; |
32 | 33 |
33 if (ses.opts->nolocaltcp) { | 34 if (opts.nolocaltcp) { |
34 TRACE(("leave newtcpdirect: local tcp forwarding disabled")); | 35 TRACE(("leave newtcpdirect: local tcp forwarding disabled")); |
35 goto out; | 36 goto out; |
36 } | 37 } |
37 | 38 |
38 desthost = buf_getstring(ses.payload, &len); | 39 desthost = buf_getstring(ses.payload, &len); |