From owner-freebsd-net@FreeBSD.ORG Sat Jan 14 23:26:22 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11DB116A41F for ; Sat, 14 Jan 2006 23:26:22 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA5F243D45 for ; Sat, 14 Jan 2006 23:26:21 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 84C5A46B8E; Sat, 14 Jan 2006 18:26:19 -0500 (EST) Date: Sat, 14 Jan 2006 23:26:42 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Brooks Davis In-Reply-To: <20060114223029.GA10293@odin.ac.hmc.edu> Message-ID: <20060114232422.C38874@fledge.watson.org> References: <3e1162e60601141157k2d89204eg379d39edeb13af0b@mail.gmail.com> <20060114223029.GA10293@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, David Leimbach Subject: Re: tap interfaces on FreeBSD 6.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 23:26:22 -0000 On Sat, 14 Jan 2006, Brooks Davis wrote: > IIRC, you don't need to create the device nodes at all. I think qemu just > tries to open /dev/tap# from 0-9. In my local code to use if_tap, I just iterate through /dev/tapX nodes until I find one that isn't busy. That causes the creation of the interface tapX, which can then be ioctl'd (etc). I've never run into the symptoms described, so it could well be it's an odd result of auto-loading by ifconfig -- however, normally you'd expect ENOENT if the module wasn't loaded, since the device node simply wouldn't exist. I'll run some local tests tomorrow and see if I can reproduce it with a recent tree version. Robert N M Watson