diff options
author | manu <manu@pkgsrc.org> | 2009-11-12 08:41:10 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2009-11-12 08:41:10 +0000 |
commit | a41e659318d159d5a52f0fe6313c0dde4c7ec999 (patch) | |
tree | c8c764edc78495cd1f37780ddc674f09de304764 /net/openvpn | |
parent | 4b3906d523026b01ded0730f0653ae5842e17320 (diff) | |
download | pkgsrc-a41e659318d159d5a52f0fe6313c0dde4c7ec999.tar.gz |
NetBSD's tun driver has no broadcast support. When configured with
a tun device and subnet topology, OpenVPN insisted on setting a broadcast
address on the tun device, causing a fatal error. This patch fixes that,
and has been submitted upstream
Diffstat (limited to 'net/openvpn')
-rw-r--r-- | net/openvpn/Makefile | 4 | ||||
-rw-r--r-- | net/openvpn/distinfo | 3 | ||||
-rw-r--r-- | net/openvpn/patches/patch-ah | 23 |
3 files changed, 27 insertions, 3 deletions
diff --git a/net/openvpn/Makefile b/net/openvpn/Makefile index 1322cc23195..3aef5b6cd7b 100644 --- a/net/openvpn/Makefile +++ b/net/openvpn/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.32 2009/10/30 19:06:06 manu Exp $ +# $NetBSD: Makefile,v 1.33 2009/11/12 08:41:10 manu Exp $ # DISTNAME= openvpn-2.1_rc20 PKGNAME= ${DISTNAME:S/_//} -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= net MASTER_SITES= http://openvpn.net/release/ \ http://openvpn.net/release/old/ diff --git a/net/openvpn/distinfo b/net/openvpn/distinfo index 868334c3b1e..3e278bc9a6b 100644 --- a/net/openvpn/distinfo +++ b/net/openvpn/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2009/10/11 17:32:00 jmmv Exp $ +$NetBSD: distinfo,v 1.18 2009/11/12 08:41:10 manu Exp $ SHA1 (openvpn-2.1_rc20.tar.gz) = ab0e928bd7d4896ddb0061bf3aba9f3cd6cefe6e RMD160 (openvpn-2.1_rc20.tar.gz) = 4dd7924cb41a268e76a93af66fd05f948f22e5f3 @@ -10,3 +10,4 @@ SHA1 (patch-ad) = 69f5fff5105131dc05ab38a1a717e1b363f88c1c SHA1 (patch-ae) = 362c881da994608baad7b10667100c39143244b6 SHA1 (patch-af) = dc5dbca74ebbda081e4eaf9a9d5e11b6de11269f SHA1 (patch-ag) = fe8e59cf177c99c2fd001e7893df86af961e8e4e +SHA1 (patch-ah) = 4e555d0a9dfa78882bf71c1d3496df8813069656 diff --git a/net/openvpn/patches/patch-ah b/net/openvpn/patches/patch-ah new file mode 100644 index 00000000000..827ea3d3065 --- /dev/null +++ b/net/openvpn/patches/patch-ah @@ -0,0 +1,23 @@ +--- tun.c.orig 2009-11-12 09:22:19.000000000 +0100 ++++ tun.c 2009-11-12 09:23:00.000000000 +0100 +@@ -789,17 +789,17 @@ + /* + * NetBSD has distinct tun and tap devices + * so we don't need the "link0" extra parameter to specify we want to do + * tunneling at the ethernet level ++ * NB: The tun driver has no broadcast capability. + */ + argv_printf (&argv, +- "%s %s %s netmask %s mtu %d broadcast %s", ++ "%s %s %s netmask %s mtu %d", + IFCONFIG_PATH, + actual, + ifconfig_local, + ifconfig_remote_netmask, +- tun_mtu, +- ifconfig_broadcast ++ tun_mtu + ); + argv_msg (M_INFO, &argv); + openvpn_execve_check (&argv, es, S_FATAL, "NetBSD ifconfig failed"); + tt->did_ifconfig = true; |