diff tcpfwd.h @ 258:306499676384

* 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
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2005 16:13:11 +0000
parents 10f4d3319780
children c049490e43fe
line wrap: on
line diff
--- a/tcpfwd.h	Wed Nov 30 10:11:24 2005 +0000
+++ b/tcpfwd.h	Sun Dec 04 16:13:11 2005 +0000
@@ -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;