Skip to contentSkip to conversation

-tun-fd should force NET_IF_TUN

PATCH New Renzo Davoli 1 participant 1 message May 12, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 -tun-fd should force NET_IF_TUN

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 2004-05-12 08:51:17.000000000 +0200 renamed from vl.c.orig 2004-05-12 08:57:21.000000000 +0200 +1 -0
@@ -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') {