qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: renzo@cs.unibo.it (Renzo Davoli)
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] -tun-fd should force NET_IF_TUN
Date: Wed, 12 May 2004 09:15:07 +0200	[thread overview]
Message-ID: <20040512071507.GA7093@cs.unibo.it> (raw)

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	other threads:[~2004-05-12  7:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040512071507.GA7093@cs.unibo.it \
    --to=renzo@cs.unibo.it \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).