qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] -tun-fd should force NET_IF_TUN
@ 2004-05-12  7:15 Renzo Davoli
  0 siblings, 0 replies; only message in thread
From: Renzo Davoli @ 2004-05-12  7:15 UTC (permalink / raw)
  To: qemu-devel

when the -tun-fd option is set, it is clear that the user want a TUN
network (without any configuration script as the net is already open).

It is useless to test whether there is the script or not and to decide for 
USER_NET (slirp) when the script has not found.

I propose the following single line patch.

ciao
	renzo

P.S. otherwise vde users has to create a fake /etc/qemu-ifup file.

------
--- vl.c.orig   2004-05-12 08:57:21.000000000 +0200
+++ vl.c        2004-05-12 08:51:17.000000000 +0200
@@ -1968,6 +1968,7 @@
                 {
                     const char *p;
                     int fd;
+                   net_if_type = NET_IF_TUN;
                     if (nb_tun_fds < MAX_NICS) {
                         fd = strtol(optarg, (char **)&p, 0);
                         if (*p != '\0') {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-12  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12  7:15 [Qemu-devel] [patch] -tun-fd should force NET_IF_TUN Renzo Davoli

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).