diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | misc.c | 7 |
3 files changed, 15 insertions, 2 deletions
@@ -55,6 +55,11 @@ | |||
55 | [channels.c channels.h session.c] | 55 | [channels.c channels.h session.c] |
56 | make sure protocol messages for internal channels are ignored. | 56 | make sure protocol messages for internal channels are ignored. |
57 | allow adjust messages for non-open channels; with and ok djm@ | 57 | allow adjust messages for non-open channels; with and ok djm@ |
58 | - (djm) [misc.c] Disable tunnel code for non-OpenBSD (for now), enable | ||
59 | again by providing a sys_tun_open() function for your platform and | ||
60 | setting the CUSTOM_SYS_TUN_OPEN define. More work is required to match | ||
61 | OpenBSD's tunnel protocol, which prepends the address family to the | ||
62 | packet | ||
58 | 63 | ||
59 | 20051201 | 64 | 20051201 |
60 | - (djm) [envpass.sh] Remove regress script that was accidentally committed | 65 | - (djm) [envpass.sh] Remove regress script that was accidentally committed |
@@ -3447,4 +3452,4 @@ | |||
3447 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 3452 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
3448 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 3453 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
3449 | 3454 | ||
3450 | $Id: ChangeLog,v 1.4026 2005/12/13 08:33:57 djm Exp $ | 3455 | $Id: ChangeLog,v 1.4027 2005/12/13 09:44:13 djm Exp $ |
diff --git a/configure.ac b/configure.ac index b24d37178..80daa0c23 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.313 2005/12/13 08:33:20 djm Exp $ | 1 | # $Id: configure.ac,v 1.314 2005/12/13 09:44:13 djm Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -359,6 +359,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
359 | *-*-openbsd*) | 359 | *-*-openbsd*) |
360 | AC_DEFINE(HAVE_ATTRIBUTE__SENTINEL__, 1, [OpenBSD's gcc has sentinel]) | 360 | AC_DEFINE(HAVE_ATTRIBUTE__SENTINEL__, 1, [OpenBSD's gcc has sentinel]) |
361 | AC_DEFINE(HAVE_ATTRIBUTE__BOUNDED__, 1, [OpenBSD's gcc has bounded]) | 361 | AC_DEFINE(HAVE_ATTRIBUTE__BOUNDED__, 1, [OpenBSD's gcc has bounded]) |
362 | AC_DEFINE(SSH_TUN_BSD, 1, [Open tunnel devices the BSD way]) | ||
362 | ;; | 363 | ;; |
363 | *-*-solaris*) | 364 | *-*-solaris*) |
364 | if test "x$withval" != "xno" ; then | 365 | if test "x$withval" != "xno" ; then |
@@ -541,6 +541,9 @@ read_keyfile_line(FILE *f, const char *filename, char *buf, size_t bufsz, | |||
541 | int | 541 | int |
542 | tun_open(int tun, int mode) | 542 | tun_open(int tun, int mode) |
543 | { | 543 | { |
544 | #if defined(CUSTOM_SYS_TUN_OPEN) | ||
545 | return (sys_tun_open(tun, mode)); | ||
546 | #elif defined(SSH_TUN_BSD) | ||
544 | struct ifreq ifr; | 547 | struct ifreq ifr; |
545 | char name[100]; | 548 | char name[100]; |
546 | int fd = -1, sock; | 549 | int fd = -1, sock; |
@@ -594,6 +597,10 @@ tun_open(int tun, int mode) | |||
594 | debug("%s: failed to set %s mode %d: %s", __func__, name, | 597 | debug("%s: failed to set %s mode %d: %s", __func__, name, |
595 | mode, strerror(errno)); | 598 | mode, strerror(errno)); |
596 | return (-1); | 599 | return (-1); |
600 | #else | ||
601 | error("Tunnel interfaces are not supported on this platform"); | ||
602 | return (-1); | ||
603 | #endif | ||
597 | } | 604 | } |
598 | 605 | ||
599 | void | 606 | void |