summaryrefslogtreecommitdiff
path: root/tcpfwd.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-12-04 16:13:11 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-12-04 16:13:11 +0000
commiteccfa7ceba8d3dee2c31801ae03d442ff7b79d4a (patch)
treecc1c3b4f3d9d52b79861942a360bca266e98bdcb /tcpfwd.h
parentc1c2fd4862e634e62f26f030a8df901fb278fc7e (diff)
downloaddropbear-eccfa7ceba8d3dee2c31801ae03d442ff7b79d4a.tar.gz
* add -g (dbclient) and -a (dropbear) options for allowing non-local
hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c
Diffstat (limited to 'tcpfwd.h')
-rw-r--r--tcpfwd.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/tcpfwd.h b/tcpfwd.h
index 504a8d3..e980ee2 100644
--- a/tcpfwd.h
+++ b/tcpfwd.h
@@ -28,16 +28,15 @@
struct TCPListener {
- /* sendaddr/sendport are what we send in the channel init request. For a
- * forwarded-tcpip request, it's the addr/port we were binding to.
- * For a direct-tcpip request, it's the addr/port we want the other
+ /* For a direct-tcpip request, it's the addr/port we want the other
* end to connect to */
-
unsigned char *sendaddr;
unsigned int sendport;
- /* This is for direct-tcpip (ie the client listening), and specifies the
- * port to listen on. Is unspecified for the server */
+ /* This is the address/port that we listen on. The address has special
+ * meanings as per the rfc, "" for all interfaces, "localhost" for
+ * localhost, or a normal interface name. */
+ unsigned char *listenaddr;
unsigned int listenport;
const struct ChanType *chantype;