qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] make qemu use tap0 instead of tun0
@ 2005-07-06 23:08 Jim C. Brown
  2005-07-07  1:55 ` Herbert Poetzl
  2005-07-10  5:03 ` Henrik Nordstrom
  0 siblings, 2 replies; 6+ messages in thread
From: Jim C. Brown @ 2005-07-06 23:08 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

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.

I don't think this would break anything (correct qemu-ifup scripts shouldn't
care about the name of the tuntap device that qemu uses).

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

[-- Attachment #2: vl.c.patch --]
[-- Type: text/plain, Size: 442 bytes --]

--- vl.c.1	Wed Jul  6 19:03:45 2005
+++ vl.c	Wed Jul  6 19:04:23 2005
@@ -1629,7 +1629,7 @@
     }
     memset(&ifr, 0, sizeof(ifr));
     ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
-    pstrcpy(ifr.ifr_name, IFNAMSIZ, "tun%d");
+    pstrcpy(ifr.ifr_name, IFNAMSIZ, "tap%d");
     ret = ioctl(fd, TUNSETIFF, (void *) &ifr);
     if (ret != 0) {
         fprintf(stderr, "warning: could not configure /dev/net/tun: no virtual network emulation\n");

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-10  5:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-06 23:08 [Qemu-devel] make qemu use tap0 instead of tun0 Jim C. Brown
2005-07-07  1:55 ` Herbert Poetzl
2005-07-07  2:06   ` Jim C. Brown
     [not found]   ` <20050707020551.GA15727@jbrown.mylinuxbox.org>
2005-07-07  2:19     ` Jim C. Brown
2005-07-10  5:07       ` Henrik Nordstrom
2005-07-10  5:03 ` Henrik Nordstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).