Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrULL-0003ke-Rx for qemu-devel@nongnu.org; Sun, 10 Jul 2005 01:27:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrULD-0003gk-Rk for qemu-devel@nongnu.org; Sun, 10 Jul 2005 01:27:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrULD-0003Z3-FY for qemu-devel@nongnu.org; Sun, 10 Jul 2005 01:26:59 -0400 Received: from [83.241.133.2] (helo=filer.marasystems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrU5e-0007q9-Sk for qemu-devel@nongnu.org; Sun, 10 Jul 2005 01:10:55 -0400 Received: from localhost (henrik@localhost) by filer.marasystems.com (8.11.6/8.11.6) with ESMTP id j6A53Zk05409 for ; Sun, 10 Jul 2005 07:03:35 +0200 Date: Sun, 10 Jul 2005 07:03:34 +0200 (CEST) From: Henrik Nordstrom Subject: Re: [Qemu-devel] make qemu use tap0 instead of tun0 In-Reply-To: <20050706230842.GA14066@jbrown.mylinuxbox.org> Message-ID: References: <20050706230842.GA14066@jbrown.mylinuxbox.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, 6 Jul 2005, Jim C. Brown wrote: > When in tuntap mode, qemu creates a tap device with names like tun0, tun1, > etc. which seems to confuse some users (the smart ones who ask why qemu uses > IP frames instead of ethernet frames ... or something along those lines). > Theses should be named tap0, tap1, etc. This patch fixes qemu. My understanding was is that tunX is the tun/tap driver (/dev/net/tun), while tapX is the older ethertap driver (/dev/tapX), but looking closely at the tun/tap driver you seem to be correct. As I almost always specify explicit device names (i.e. qemuX for qemu connections) I never really cared what the defaults were. A simpler patch would be to not specify a device name template at all. This lets the tun/tap driver select whatever it feels suitable for the type of device created, defaulting to tap%d for TUN_TAP_DEV devices. Regards Henrik