On 02/28/2010 08:50:01 AM, Gert Doering wrote: > Hi, > > while working on "make IPv6 payload work on Win32", I found something > quite peculiar for OpenBSD in the OpenVPN code.
> > Now, for all operatings systems *except* Win32 and OpenBSD, the > sequence > of execution is > > open_tun() > do_ifconfig() > > and for the named two systems, it's > > do_ifconfig() > open_tun() > Question #1: why is OpenBSD treated differently? Does anyone on this > list > know why this is so, and whether it needs to be kept that way? (I > have no > OpenBSD system to test on, right now). Random comments.... On OpenBSD 4.6 stable "man 4 tun" says: A tun interface can be created at runtime using the ifconfig tunN create command or by opening the character special device /dev/tunN. Both layer 3 and layer 2 tunneling is supported. Layer 3 tunneling is the default mode; to enable layer 2 tunneling mode the link0 flag needs to be set with ifconfig(8), or by setting up a hostname.if(5) configura- tion file for netstart(8). In layer 2 mode the tun interface is simulat- ing an Ethernet network interface. So, you should not need to do the ifconfig at all unless you're interested in tap functionality or there's other odd frobbing going on. I can't speak for older releases but all the old man pages are on the OpenBSD.org site. Karl <k...@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein