From fe3b806c04f75a18aa7c6f2520b5c6aa9a4b337d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 23 Apr 2009 16:35:09 +0100 Subject: [PATCH] drop lwip network support in stubdoms in order to simplify network support in ioemu stubdoms, I am dropping lwip based networking. Network support is still provided the same way: using the tap interface, created in qemu using netfront. The lwip stack is still available to avoid additional compilation issues. However the stubdom is not going to have its own vif anymore, this means that the only vnc server supported is the one in dom0. You can still enable the vnc server in a stubdom at compile time, if you want so. Probably the most important change caused by this patch to xen users is that you don't have to specify two vif in the stubdom config file anymore, but just one: -vif = [ '', 'ip=10.0.1.1,mac=aa:00:00:12:23:34'] +vif = ['ip=10.0.1.1,mac=aa:00:00:12:23:34'] 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 --- net.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net.c b/net.c index 52603693..720027c3 100644 --- a/net.c +++ b/net.c @@ -981,10 +981,7 @@ static int tap_open(char *ifname, int ifname_size) #include 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 -- 2.39.5