From: bellard Date: Wed, 12 May 2004 19:59:20 +0000 (+0000) Subject: -tun-fd option fix (Renzo Davoli) X-Git-Tag: release_0_6_0~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6b86f4d85d71432bae9f3a0a514954dc1e33af9;p=thirdparty%2Fqemu.git -tun-fd option fix (Renzo Davoli) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@803 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/vl.c b/vl.c index 18f957dccf4..7db28817706 100644 --- a/vl.c +++ b/vl.c @@ -2078,6 +2078,7 @@ int main(int argc, char **argv) { 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') {