From owner-freebsd-current@FreeBSD.ORG Thu Dec 18 16:09:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D7816A4CE for ; Thu, 18 Dec 2003 16:09:22 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1C0343D1F for ; Thu, 18 Dec 2003 16:09:20 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id hBJ08mUd063026; Thu, 18 Dec 2003 19:08:48 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hBJ08lje063023; Thu, 18 Dec 2003 19:08:48 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 18 Dec 2003 19:08:47 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ivan Voras In-Reply-To: <029001c3c55a$58070750$714835a1@lara> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: if_tun X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 00:09:22 -0000 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