summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-06-23 21:05:12 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-06-23 21:05:12 +1000
commit3eb4834489426bd796da90299b2f8174b744dddd (patch)
tree1ba7e8ba150f78bca0d02c3a780a01acfcd3ccba
parent643460803f5c8c5a9bec9455a62d8a5217699f43 (diff)
- (dtucker) [README.platform configure.ac openbsd-compat/port-tun.c] Add
tunnel support for Mac OS X/Darwin via a third-party tun driver. Patch from reyk@, tested by anil@
-rw-r--r--ChangeLog7
-rw-r--r--INSTALL12
-rw-r--r--README.platform14
-rw-r--r--configure.ac10
-rw-r--r--openbsd-compat/port-tun.c4
5 files changed, 38 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 30cd23659..327fec1d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120060623
2 - (dtucker) [README.platform configure.ac openbsd-compat/port-tun.c] Add
3 tunnel support for Mac OS X/Darwin via a third-party tun driver. Patch
4 from reyk@, tested by anil@
5
120060613 620060613
2 - (djm) [getput.h] This file has been replaced by functions in misc.c 7 - (djm) [getput.h] This file has been replaced by functions in misc.c
3 - OpenBSD CVS Sync 8 - OpenBSD CVS Sync
@@ -4685,4 +4690,4 @@
4685 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4690 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4686 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4691 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4687 4692
4688$Id: ChangeLog,v 1.4344 2006/06/13 03:15:54 djm Exp $ 4693$Id: ChangeLog,v 1.4345 2006/06/23 11:05:12 dtucker Exp $
diff --git a/INSTALL b/INSTALL
index 38f39473f..efc7b47d0 100644
--- a/INSTALL
+++ b/INSTALL
@@ -57,9 +57,10 @@ installed. No other S/Key library is currently known to be supported.
57http://www.sparc.spb.su/solaris/skey/ 57http://www.sparc.spb.su/solaris/skey/
58 58
59LibEdit: 59LibEdit:
60sftp now supports command-line editing via NetBSD's libedit. If your 60
61platform has it available natively you can use that, alternatively 61sftp supports command-line editing via NetBSD's libedit. If your platform
62you might try these multi-platform ports: 62has it available natively you can use that, alternatively you might try
63these multi-platform ports:
63 64
64http://www.thrysoee.dk/editline/ 65http://www.thrysoee.dk/editline/
65http://sourceforge.net/projects/libedit/ 66http://sourceforge.net/projects/libedit/
@@ -210,7 +211,8 @@ for sshd, ssh and ssh-agent.
210------------------------- 211-------------------------
211 212
212$ make survey 213$ make survey
213[check the contents and make sure there's no sensitive information] 214[check the contents of the file "survey" to ensure there's no information
215that you consider sensitive]
214$ make send-survey 216$ make send-survey
215 217
216This will send configuration information for the currently configured 218This will send configuration information for the currently configured
@@ -227,4 +229,4 @@ Please refer to the "reporting bugs" section of the webpage at
227http://www.openssh.com/ 229http://www.openssh.com/
228 230
229 231
230$Id: INSTALL,v 1.71 2006/02/20 09:17:36 dtucker Exp $ 232$Id: INSTALL,v 1.72 2006/06/23 11:05:13 dtucker Exp $
diff --git a/README.platform b/README.platform
index 4c18a3278..b7dc3f91c 100644
--- a/README.platform
+++ b/README.platform
@@ -30,6 +30,18 @@ gcc, gcc-mingw-core, mingw-runtime, binutils, make, openssl,
30openssl-devel, zlib, minres, minires-devel. 30openssl-devel, zlib, minres, minires-devel.
31 31
32 32
33Darwin and MacOS X
34------------------
35Darwin does not provide a tun(4) driver required for OpenSSH-based
36virtual private networks. The BSD manpage still exists, but the driver
37has been removed in recent releases of Darwin and MacOS X.
38
39Nevertheless, tunnel support is known to work with Darwin 8 and
40MacOS X 10.4 in Point-to-Point (Layer 3) and Ethernet (Layer 2) mode
41using a third party driver. More information is available at:
42 http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
43
44
33Solaris 45Solaris
34------- 46-------
35If you enable BSM auditing on Solaris, you need to update audit_event(4) 47If you enable BSM auditing on Solaris, you need to update audit_event(4)
@@ -55,4 +67,4 @@ account stacks which will prevent authentication entirely, but will still
55return the output from pam_nologin to the client. 67return the output from pam_nologin to the client.
56 68
57 69
58$Id: README.platform,v 1.6 2005/11/05 05:28:35 dtucker Exp $ 70$Id: README.platform,v 1.7 2006/06/23 11:05:13 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index 093c17643..c3cb68f28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.339 2006/04/22 11:26:08 djm Exp $ 1# $Id: configure.ac,v 1.340 2006/06/23 11:05:13 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18AC_REVISION($Revision: 1.339 $) 18AC_REVISION($Revision: 1.340 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -231,6 +231,11 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
231 AC_DEFINE(BROKEN_SETREGID) 231 AC_DEFINE(BROKEN_SETREGID)
232 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1, 232 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1,
233 [Define if your resolver libs need this for getrrsetbyname]) 233 [Define if your resolver libs need this for getrrsetbyname])
234 AC_DEFINE(SSH_TUN_FREEBSD, 1, [Open tunnel devices the FreeBSD way])
235 AC_DEFINE(SSH_TUN_COMPAT_AF, 1,
236 [Use tunnel device compatibility to OpenBSD])
237 AC_DEFINE(SSH_TUN_PREPEND_AF, 1,
238 [Prepend the address family to IP tunnel traffic])
234 ;; 239 ;;
235*-*-hpux*) 240*-*-hpux*)
236 # first we define all of the options common to all HP-UX releases 241 # first we define all of the options common to all HP-UX releases
@@ -682,6 +687,7 @@ AC_CHECK_HEADERS( \
682 login.h \ 687 login.h \
683 maillock.h \ 688 maillock.h \
684 ndir.h \ 689 ndir.h \
690 net/if_tun.h \
685 netdb.h \ 691 netdb.h \
686 netgroup.h \ 692 netgroup.h \
687 pam/pam_appl.h \ 693 pam/pam_appl.h \
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c
index d09fe3d06..6e1fed969 100644
--- a/openbsd-compat/port-tun.c
+++ b/openbsd-compat/port-tun.c
@@ -29,6 +29,7 @@
29 * settings. 29 * settings.
30 * 30 *
31 * SSH_TUN_LINUX Use the (newer) Linux tun/tap device 31 * SSH_TUN_LINUX Use the (newer) Linux tun/tap device
32 * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device
32 * SSH_TUN_COMPAT_AF Translate the OpenBSD address family 33 * SSH_TUN_COMPAT_AF Translate the OpenBSD address family
33 * SSH_TUN_PREPEND_AF Prepend/remove the address family 34 * SSH_TUN_PREPEND_AF Prepend/remove the address family
34 */ 35 */
@@ -96,7 +97,10 @@ sys_tun_open(int tun, int mode)
96#ifdef SSH_TUN_FREEBSD 97#ifdef SSH_TUN_FREEBSD
97#include <sys/socket.h> 98#include <sys/socket.h>
98#include <net/if.h> 99#include <net/if.h>
100
101#ifdef HAVE_NET_IF_TUN_H
99#include <net/if_tun.h> 102#include <net/if_tun.h>
103#endif
100 104
101int 105int
102sys_tun_open(int tun, int mode) 106sys_tun_open(int tun, int mode)