From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: [PATCH] drop lwip network support in stubdoms Date: Tue, 21 Apr 2009 11:48:19 +0100 Message-ID: <49EDA473.8020305@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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 --- 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 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