comparison cli-tcpfwd.c @ 1625:79eef94ccea9

Split ChanType closehandler() and cleanup() so that dbclient doesn't lose exit status messages
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Nov 2018 22:57:56 +0800
parents 572a7aefa188
children 9026f976eee8
comparison
equal deleted inserted replaced
1624:1f3fb83b0524 1625:79eef94ccea9
36 36
37 const struct ChanType cli_chan_tcpremote = { 37 const struct ChanType cli_chan_tcpremote = {
38 1, /* sepfds */ 38 1, /* sepfds */
39 "forwarded-tcpip", 39 "forwarded-tcpip",
40 newtcpforwarded, 40 newtcpforwarded,
41 NULL,
41 NULL, 42 NULL,
42 NULL, 43 NULL,
43 NULL 44 NULL
44 }; 45 };
45 #endif 46 #endif
51 unsigned int remoteport); 52 unsigned int remoteport);
52 static const struct ChanType cli_chan_tcplocal = { 53 static const struct ChanType cli_chan_tcplocal = {
53 1, /* sepfds */ 54 1, /* sepfds */
54 "direct-tcpip", 55 "direct-tcpip",
55 tcp_prio_inithandler, 56 tcp_prio_inithandler,
57 NULL,
56 NULL, 58 NULL,
57 NULL, 59 NULL,
58 NULL 60 NULL
59 }; 61 };
60 #endif 62 #endif