summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-01-01 19:47:05 +1100
committerDamien Miller <djm@mindrot.org>2006-01-01 19:47:05 +1100
commit2dcddbfaf6b68bd58b5b1422ebeef7767c0c2633 (patch)
tree8c044d00a3185cea6a500c32508df1161b048c29 /misc.c
parentc4bcc917519e55f449044e558228a2e11b80740c (diff)
- (djm) [Makefile.in configure.ac includes.h misc.c]
[openbsd-compat/port-tun.c openbsd-compat/port-tun.h] Add support for tunnel forwarding for FreeBSD and NetBSD. NetBSD's support is limited to IPv4 tunnels only, and most versions don't support the tap(4) device at all.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 4141e6c48..76dbf40ea 100644
--- a/misc.c
+++ b/misc.c
@@ -543,7 +543,7 @@ tun_open(int tun, int mode)
543{ 543{
544#if defined(CUSTOM_SYS_TUN_OPEN) 544#if defined(CUSTOM_SYS_TUN_OPEN)
545 return (sys_tun_open(tun, mode)); 545 return (sys_tun_open(tun, mode));
546#elif defined(SSH_TUN_BSD) 546#elif defined(SSH_TUN_OPENBSD)
547 struct ifreq ifr; 547 struct ifreq ifr;
548 char name[100]; 548 char name[100];
549 int fd = -1, sock; 549 int fd = -1, sock;