diff options
author | Damien Miller <djm@mindrot.org> | 2005-12-31 16:33:36 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-12-31 16:33:36 +1100 |
commit | 598bbc2d8fd5025ad16f5d9ee71db4e0bf872cd2 (patch) | |
tree | 94f0eee336da355fec3c527328c601dc583f350f /ssh.c | |
parent | 88b25524b885885896e23e01e1aa873864ca7386 (diff) |
- (djm) [openbsd-compat/port-tun.c openbsd-compat/port-tun.h configure.ac]
[serverloop.c ssh.c openbsd-compat/Makefile.in]
[openbsd-compat/openbsd-compat.h] Implement tun(4) forwarding
compatability support for Linux, diff from reyk@
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); |