comparison tcpfwd.h @ 1099:4b21d9067162

Turn sendaddr, listenaddr and request_listenaddr local variables into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 15:09:05 +0200
parents deed0571cacc
children 3d9519ec2b85
comparison
equal deleted inserted replaced
1098:f95b6e87cd0c 1099:4b21d9067162
29 29
30 struct TCPListener { 30 struct TCPListener {
31 31
32 /* For a direct-tcpip request, it's the addr/port we want the other 32 /* For a direct-tcpip request, it's the addr/port we want the other
33 * end to connect to */ 33 * end to connect to */
34 unsigned char *sendaddr; 34 char *sendaddr;
35 unsigned int sendport; 35 unsigned int sendport;
36 36
37 /* This is the address/port that we listen on. The address has special 37 /* This is the address/port that we listen on. The address has special
38 * meanings as per the rfc, "" for all interfaces, "localhost" for 38 * meanings as per the rfc, "" for all interfaces, "localhost" for
39 * localhost, or a normal interface name. */ 39 * localhost, or a normal interface name. */
40 unsigned char *listenaddr; 40 char *listenaddr;
41 unsigned int listenport; 41 unsigned int listenport;
42 /* The address that the remote host asked to listen on */ 42 /* The address that the remote host asked to listen on */
43 unsigned char *request_listenaddr; 43 char *request_listenaddr;
44 44
45 const struct ChanType *chantype; 45 const struct ChanType *chantype;
46 enum {direct, forwarded} tcp_type; 46 enum {direct, forwarded} tcp_type;
47 }; 47 };
48 48