TCP forwarding works.

--HG--
extra : convert_revision : 57dfb36d0d482ad84f31506904eb67863bd303ab
This commit is contained in:
Matt Johnston
2004-08-12 13:48:42 +00:00
parent 453261a042
commit e1057cd477
15 changed files with 777 additions and 140 deletions

View File

@@ -4,8 +4,7 @@
#include "kex.h"
#include "ssh.h"
#include "packet.h"
#include "tcp-accept.h"
#include "tcp-connect.h"
#include "tcpfwd.h"
#include "channel.h"
#include "random.h"
#include "service.h"
@@ -45,8 +44,9 @@ static const packettype cli_packettypes[] = {
};
static const struct ChanType *cli_chantypes[] = {
/* &chan_tcpdirect etc, though need to only allow if we've requested
* that forwarding */
#ifdef ENABLE_CLI_REMOTETCPFWD
&cli_chan_tcpremote,
#endif
NULL /* Null termination */
};
@@ -178,6 +178,10 @@ static void cli_sessionloop() {
*/
case USERAUTH_SUCCESS_RCVD:
#ifdef ENABLE_CLI_LOCALTCPFWD
TRACE(("recvd USERAUTH_SUCCESS_RCVD"));
setup_localtcp();
#endif
cli_send_chansess_request();
TRACE(("leave cli_sessionloop: cli_send_chansess_request"));
cli_ses.state = SESSION_RUNNING;
@@ -223,7 +227,6 @@ static void cli_finished() {
}
/* called when the remote side closes the connection */
static void cli_remoteclosed() {