Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 09:49:01 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        freebsd-current@freebsd.org, Goran Gajic <ggajic@afrodita.rcub.bg.ac.yu>
Subject:   Re: question regarding tap/tun devices
Message-ID:  <20060530094715.L79162@fledge.watson.org>
In-Reply-To: <20060530013856.GA26022@odin.ac.hmc.edu>
References:  <Pine.LNX.4.63.0605282032240.10175@afrodita.rcub.bg.ac.yu> <20060530013856.GA26022@odin.ac.hmc.edu>

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

On Mon, 29 May 2006, Brooks Davis wrote:

> On Sun, May 28, 2006 at 08:33:32PM +0200, Goran Gajic wrote:
>> I'm running 7.0-CURRENT build Thu May 25 23:17:10 CEST 2006 GENERIC config.
>> While playing with dynamips emulator which uses tap I've noticed that
>> ifconifg tun0 create or ifconfig tap0 create doesn't work (this doesn't
>> have anything to do with emulator which works great).
>
> These interfaces don't use the network interface cloning interface and thus 
> can not be created with ifconfig.  This should be fixed, but the /dev based 
> cloning hackes they use make this difficult.

I've never quite understood if this is a problem or a benefit.  Devfs-cloning 
of tap and tun are very convenient from an application writer perspective -- 
you just open /dev/tap or /dev/tun, and magic happens.  With our current ifnet 
cloning interface, is it possible to say "atomically create and return the 
next available interface number"?

Robert N M Watson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060530094715.L79162>