comparison tcpfwd.h @ 293:9d110777f345 contrib-blacklist

propagate from branch 'au.asn.ucc.matt.dropbear' (head 7ad1775ed65e75dbece27fe6b65bf1a234db386a) to branch 'au.asn.ucc.matt.dropbear.contrib.blacklist' (head 1d86a4f0a401cc68c2670d821a2f6366c37af143)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 10 Mar 2006 06:31:29 +0000
parents c049490e43fe
children 52a644e7b8e1
comparison
equal deleted inserted replaced
247:c07de41b53d7 293:9d110777f345
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 enum {direct, forwarded} tcp_type;
45 }; 44 };
46 45
47 /* A link in a list of forwards */ 46 /* A link in a list of forwards */
48 struct TCPFwdList { 47 struct TCPFwdList {
49 48