From: Ian Jackson Date: Thu, 23 Apr 2009 15:35:09 +0000 (+0100) Subject: drop lwip network support in stubdoms X-Git-Tag: xen-3.4.0-rc3~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fe3b806c04f75a18aa7c6f2520b5c6aa9a4b337d;p=qemu-xen-4.0-testing.git 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 --- 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