Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
257:63601217f5ab | 258:306499676384 |
---|---|
26 | 26 |
27 #include "channel.h" | 27 #include "channel.h" |
28 | 28 |
29 struct TCPListener { | 29 struct TCPListener { |
30 | 30 |
31 /* sendaddr/sendport are what we send in the channel init request. For a | 31 /* For a direct-tcpip request, it's the addr/port we want the other |
32 * forwarded-tcpip request, it's the addr/port we were binding to. | |
33 * For a direct-tcpip request, it's the addr/port we want the other | |
34 * end to connect to */ | 32 * end to connect to */ |
35 | |
36 unsigned char *sendaddr; | 33 unsigned char *sendaddr; |
37 unsigned int sendport; | 34 unsigned int sendport; |
38 | 35 |
39 /* This is for direct-tcpip (ie the client listening), and specifies the | 36 /* This is the address/port that we listen on. The address has special |
40 * port to listen on. Is unspecified for the server */ | 37 * meanings as per the rfc, "" for all interfaces, "localhost" for |
38 * localhost, or a normal interface name. */ | |
39 unsigned char *listenaddr; | |
41 unsigned int listenport; | 40 unsigned int listenport; |
42 | 41 |
43 const struct ChanType *chantype; | 42 const struct ChanType *chantype; |
44 | 43 |
45 }; | 44 }; |