Commit ebfcc879 authored by Niels Möller's avatar Niels Möller
Browse files

* src/gateway_commands.c (gateway_make_connection): Install an

open_fallback.

Rev: src/gateway_commands.c:1.6
parent af8fb0e9
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "connection_commands.h" #include "connection_commands.h"
#include "debug.h" #include "debug.h"
#include "format.h" #include "format.h"
#include "gateway_channel.h"
#include "io_commands.h" #include "io_commands.h"
#include "read_packet.h" #include "read_packet.h"
#include "ssh.h" #include "ssh.h"
...@@ -129,11 +130,13 @@ gateway_make_connection(struct listen_value *lv, ...@@ -129,11 +130,13 @@ gateway_make_connection(struct listen_value *lv,
make_gateway_pad(connection->raw), make_gateway_pad(connection->raw),
ssh_format("%lz sent", connection->debug_comment)); ssh_format("%lz sent", connection->debug_comment));
init_connection_service(connection);
connection->table->open_fallback = &gateway_channel_open_forward;
connection->dispatch[SSH_MSG_DEBUG] = &connection_forward_handler; connection->dispatch[SSH_MSG_DEBUG] = &connection_forward_handler;
connection->dispatch[SSH_MSG_IGNORE] = &connection_forward_handler; connection->dispatch[SSH_MSG_IGNORE] = &connection_forward_handler;
init_connection_service(connection);
return connection; return connection;
} }
...@@ -218,3 +221,10 @@ DEFINE_COMMAND_SIMPLE(gateway_setup_command, a) ...@@ -218,3 +221,10 @@ DEFINE_COMMAND_SIMPLE(gateway_setup_command, a)
return &res->super; return &res->super;
} }
#if 0
DEFINE_PACKET_HANDLER(static, forward_channel_open_handler,
connection, packet)
{
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment