diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1079,6 +1079,11 @@ ssh_session2_setup(int id, void *arg) | |||
1079 | CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, | 1079 | CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, |
1080 | 0, "tun", 1); | 1080 | 0, "tun", 1); |
1081 | c->datagram = 1; | 1081 | c->datagram = 1; |
1082 | #if defined(SSH_TUN_FILTER) | ||
1083 | if (options.tun_open == SSH_TUNMODE_POINTOPOINT) | ||
1084 | channel_register_filter(c->self, sys_tun_infilter, | ||
1085 | sys_tun_outfilter); | ||
1086 | #endif | ||
1082 | packet_start(SSH2_MSG_CHANNEL_OPEN); | 1087 | packet_start(SSH2_MSG_CHANNEL_OPEN); |
1083 | packet_put_cstring("tun@openssh.com"); | 1088 | packet_put_cstring("tun@openssh.com"); |
1084 | packet_put_int(c->self); | 1089 | packet_put_int(c->self); |