Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121480 Details for
Bug 181195
openvpn --mktun does not work with all applications that need tap interfaces.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Corrected version
ppp (text/plain), 1.09 KB, created by
Giuliano Gagliardi
on 2007-06-08 09:54:23 UTC
(
hide
)
Description:
Corrected version
Filename:
MIME Type:
Creator:
Giuliano Gagliardi
Created:
2007-06-08 09:54:23 UTC
Size:
1.09 KB
patch
obsolete
>diff -ru baselayout-1.12.9/lib/rcscripts/net/tuntap.sh baselayout-1.12.9-fixed/lib/rcscripts/net/tuntap.sh >--- baselayout-1.12.9/lib/rcscripts/net/tuntap.sh 2007-01-17 13:58:28.000000000 +0100 >+++ baselayout-1.12.9-fixed/lib/rcscripts/net/tuntap.sh 2007-06-08 11:47:41.769438862 +0200 >@@ -66,12 +66,12 @@ > # Set the base metric to 1000 > metric=1000 > >- if [[ -x /usr/sbin/openvpn ]] ; then >- openvpn --mktun --dev-type "${!tuntap}" --dev "${iface}" \ >- > /dev/null >- else >+ if [[ -x /usr/bin/tunctl ]] ; then > local opts="tunctl_${ifvar}" > tunctl ${!opts} -t "${iface}" >/dev/null >+ else >+ openvpn --mktun --dev-type "${!tuntap}" --dev "${iface}" \ >+ > /dev/null > fi > eend $? && save_options tuntap "${!tuntap}" > } >@@ -86,12 +86,12 @@ > tuntap_exists "${iface}" || return 0 > > ebegin "Destroying Tun/Tap interface ${iface}" >- if [[ -x /usr/sbin/openvpn ]] ; then >+ if [[ -x /usr/bin/tunctl ]] ; then >+ tunctl -d "${iface}" >/dev/null >+ else > openvpn --rmtun \ > --dev-type "$(get_options tuntap)" \ > --dev "${iface}" > /dev/null >- else >- tunctl -d "${iface}" >/dev/null > fi > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 181195
:
121404
| 121480