* [PATCH] drop lwip network support in stubdoms
@ 2009-04-21 10:48 Stefano Stabellini
0 siblings, 0 replies; only message in thread
From: Stefano Stabellini @ 2009-04-21 10:48 UTC (permalink / raw)
To: xen-devel
Hi all,
this is the qemu part of the patch: we do not need to hard code 1 as the
starting vif for the tap interface anymore.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff --git a/net.c b/net.c
index 5260369..720027c 100644
--- a/net.c
+++ b/net.c
@@ -981,10 +981,7 @@ static int tap_open(char *ifname, int ifname_size)
#include <netfront.h>
static int tap_open(char *ifname, int ifname_size)
{
- char nodename[64];
- static int num = 1; // 0 is for our own TCP/IP networking
- snprintf(nodename, sizeof(nodename), "device/vif/%d", num++);
- return netfront_tap_open(nodename);
+ return netfront_tap_open(NULL);
}
#undef DEFAULT_NETWORK_SCRIPT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-21 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21 10:48 [PATCH] drop lwip network support in stubdoms Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.