diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-06-23 21:05:12 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-06-23 21:05:12 +1000 |
commit | 3eb4834489426bd796da90299b2f8174b744dddd (patch) | |
tree | 1ba7e8ba150f78bca0d02c3a780a01acfcd3ccba /openbsd-compat/port-tun.c | |
parent | 643460803f5c8c5a9bec9455a62d8a5217699f43 (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@
Diffstat (limited to 'openbsd-compat/port-tun.c')
-rw-r--r-- | openbsd-compat/port-tun.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 | ||
101 | int | 105 | int |
102 | sys_tun_open(int tun, int mode) | 106 | sys_tun_open(int tun, int mode) |