Mercurial > dropbear
comparison tcpfwd.h @ 297:79bf1023cf11 agent-client
propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 Mar 2006 16:20:59 +0000 |
parents | c049490e43fe |
children | 52a644e7b8e1 |
comparison
equal
deleted
inserted
replaced
225:ca7e76d981d9 | 297:79bf1023cf11 |
---|---|
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 |