Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2003 19:08:47 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Ivan Voras <ivoras@fer.hr>
Cc:        freebsd-current@freebsd.org
Subject:   Re: if_tun
Message-ID:  <Pine.NEB.3.96L.1031218190733.60700D-100000@fledge.watson.org>
In-Reply-To: <029001c3c55a$58070750$714835a1@lara>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 18 Dec 2003, Ivan Voras wrote:

> If I understand correctly, loading if_tun.ko should make /dev/tun entry
> appear. But 'kldload if_tun' on 5.2RC1 writes following errors: 
> 
> module_register: module if_tun already exists!  Module iff_tun failed to
> register: 17 can't re-use a leaf (if_tun_debug)! 
> 
> Subsequent 'kldstat' invocations show that if_tun.ko is loaded, but
> there is no /dev/tun. 

It sounds like if_tun is compile dinto your kernel.  Try "ls -l
/dev/tun0".  The act of looking up the pseudo-device name will cause it to
be instantiated, and as such, any software that attempts to open() one
will find what it needs.  You only run into problems if the program tries
to list the directory first to see if the file is there ("Do, or do not,
there is no try.")

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1031218190733.60700D-100000>