qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] -tun-fd should force NET_IF_TUN


From: Renzo Davoli
Subject: [Qemu-devel] [patch] -tun-fd should force NET_IF_TUN
Date: Wed, 12 May 2004 09:15:07 +0200
User-agent: Mutt/1.3.28i

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') {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]