From c04af649c2755d3f34d14c444deda6fcd51acc1b Mon Sep 17 00:00:00 2001 From: rd235 Date: Tue, 14 Jun 2005 22:23:17 +0000 Subject: [PATCH] Automatic generation of the -nics qemu option git-svn-id: https://vde.svn.sourceforge.net/svnroot/vde/trunk@37 d37a7db1-d92d-0410-89df-f68f52f87b57 --- vde/qemu/vdeq.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vde/qemu/vdeq.c b/vde/qemu/vdeq.c index 9dc39e0..ec22fae 100644 --- a/vde/qemu/vdeq.c +++ b/vde/qemu/vdeq.c @@ -200,7 +200,7 @@ int main(int argc, char **argv) printf("as %s\n",argsock); for (i=0; i %s\n",i,sockname[i]); */ - newargc=argc+1+(2*nb_nics)-args; + newargc=argc+3+(2*nb_nics)-args; if ((newargv=(char **) malloc ((newargc+1)* sizeof(char *))) <0) { perror("malloc"); exit(1); @@ -213,8 +213,13 @@ int main(int argc, char **argv) newargv[2*i+1]="-tun-fd"; newargv[2*i+2]=strdup(numfd); } - - for (i=(2*nb_nics)+1;args