From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI6VS-0006wF-Fq for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:22:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI6VR-0007ep-6q for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:22:30 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:53750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI6VQ-0007ek-Oj for qemu-devel@nongnu.org; Mon, 15 Nov 2010 16:22:29 -0500 Message-ID: <4CE1A48E.4070704@mail.berlios.de> Date: Mon, 15 Nov 2010 22:22:22 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] add a command line option to specify the interface to send multicast packets on References: <20101111014735.GQ2211@zzz.isi.edu> <20101115185452.GE26869@zzz.isi.edu> <4CE18BBC.2050706@codemonkey.ws> <20101115195212.GG26869@zzz.isi.edu> <4CE1A127.5080209@codemonkey.ws> In-Reply-To: <4CE1A127.5080209@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Mike Ryan , qemu-devel@nongnu.org Am 15.11.2010 22:07, schrieb Anthony Liguori: > On 11/15/2010 01:52 PM, Mike Ryan wrote: >> I'll clarify/elaborate a bit: >> >> When using a multicast socket, the OS chooses a default physical >> interface to send packets. The patch I've supplied allows the user to >> select the interface. >> >> Suppose you have a setup like so: >> >> BoxA --- BoxB --- BoxC >> >> You wish to run virtual machines on BoxB and BoxC and network them using >> a multicast UDP socket. >> >> BoxB has two network interfaces, and the default multicast interface may >> be the link between BoxA and BoxB. In this situation, BoxC will not >> receive any multicast packets from BoxB and networking between the boxes >> is therefore impossible. >> >> The utility of a multicast socket is obviously limited in my simplified >> example. Generalize BoxC to a LAN of physical machines all running >> virtual machines you wish to network and the use case should become a >> bit clearer. > > Thanks. Second question is how portable is SIOCGIFADDR? I suspect > that's very Linux-centric.. > > Regards, > > Anthony Liguori Yes. It is unavailable for mingw32 (windows). Regards, Stefan Weil