Skip to contentSkip to conversation

drop lwip network support in stubdoms

PATCH New Stefano Stabellini 1 participant 1 message Apr 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drop lwip network support in stubdoms

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.

---

net.c +1 -4
index 5260369..720027c 100644
@@ -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