Skip to contentSkip to conversation

OpenVPN patch to load tun/tap dynamically

Openvpn-devel Daniel O'Connor 2 participants 3 messages Feb 9, 2005

lore
Share & tools
lore
#0 lore raw

Hi,
I have a patch for OpenVPN to attempt to load if_tun.ko/if_tap.ko when the first open attempt fails with either ENOENT or ENXIO. It's FreeBSD only at the moment but I imagine it would work on (at least) NetBSD and OpenBSD too.

http://www.gsoft.com.au/~doconnor/openvpn-kldload.diff
MD5 (openvpn-kldload.diff) = d9c6da637d7f4079751c2f19b093408f

Signature · 6 lines
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
#1 lore raw

Hi,
Daniel O'Connor wrote,

Quoted 4 lines

Hi,
I have a patch for OpenVPN to attempt to load if_tun.ko/if_tap.ko when the first open attempt fails with either ENOENT or ENXIO. It's FreeBSD only at the moment but I imagine it would work on (at least) NetBSD and OpenBSD too.

No need on OpenBSD. It is in GENERIC and kernel modules are not used. (most off the time, 99%)

bye
Waldemar

#2 lore raw
Quoted 7 lines · Waldemar Brodkorb
Quoted 4 lines

I have a patch for OpenVPN to attempt to load if_tun.ko/if_tap.ko when the first open attempt fails with either ENOENT or ENXIO. It's FreeBSD only at the moment but I imagine it would work on (at least) NetBSD and OpenBSD too.

No need on OpenBSD. It is in GENERIC and kernel modules are not used. (most off the time, 99%)

It's the 1% that is annoying to debug in my experience :)

Signature · 6 lines
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C