comparison tcpfwd.h @ 1620:572a7aefa188 bugfix

FIx remote forward listeners
author Matt Johnston <matt@ucc.asn.au>
date Fri, 07 Sep 2018 23:02:20 +0800
parents 9169e4e7cbee
children 1d86a58fb52d
comparison
equal deleted inserted replaced
1618:7bd7e95ad1f8 1620:572a7aefa188
24 #ifndef DROPBEAR_TCPFWD_H 24 #ifndef DROPBEAR_TCPFWD_H
25 #define DROPBEAR_TCPFWD_H 25 #define DROPBEAR_TCPFWD_H
26 26
27 #include "channel.h" 27 #include "channel.h"
28 #include "list.h" 28 #include "list.h"
29 #include "listener.h"
29 30
30 struct TCPListener { 31 struct TCPListener {
31 32
32 /* For a direct-tcpip request, it's the addr/port we want the other 33 /* For a direct-tcpip request, it's the addr/port we want the other
33 * end to connect to */ 34 * end to connect to */
67 extern const struct ChanType cli_chan_tcpremote; 68 extern const struct ChanType cli_chan_tcpremote;
68 void cli_recv_msg_request_success(void); 69 void cli_recv_msg_request_success(void);
69 void cli_recv_msg_request_failure(void); 70 void cli_recv_msg_request_failure(void);
70 71
71 /* Common */ 72 /* Common */
72 int listen_tcpfwd(struct TCPListener* tcpinfo); 73 int listen_tcpfwd(struct TCPListener* tcpinfo, struct Listener **ret_listener);
73 int tcp_prio_inithandler(struct Channel* chan); 74 int tcp_prio_inithandler(struct Channel* chan);
74 75
75 /* A random identifier */ 76 /* A random identifier */
76 #define CHANNEL_ID_TCPFORWARDED 0x43612c67 77 #define CHANNEL_ID_TCPFORWARDED 0x43612c67
77 78