Received: from [140.186.70.92] (port=60471 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIQvt-0000jJ-Mv for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:11:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIQvs-0007Q3-Hf for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:11:09 -0500 Received: from boreas.isi.edu ([128.9.160.161]:36786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIQvs-0007PG-3A for qemu-devel@nongnu.org; Tue, 16 Nov 2010 14:11:08 -0500 Received: from zzz.isi.edu (zzz.isi.edu [128.9.168.250]) by boreas.isi.edu (8.13.8/8.13.8) with ESMTP id oAGJAlhx003685 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 16 Nov 2010 11:10:47 -0800 (PST) Received: from mikeryan by zzz.isi.edu with local (Exim 4.71) (envelope-from ) id 1PIQvX-0003M9-FQ for qemu-devel@nongnu.org; Tue, 16 Nov 2010 11:10:47 -0800 Date: Tue, 16 Nov 2010 11:10:47 -0800 From: Mike Ryan Subject: Re: [Qemu-devel] Re: [PATCH] add a command line option to specify the interface to send multicast packets on Message-ID: <20101116191047.GJ26869@zzz.isi.edu> References: <20101111014735.GQ2211@zzz.isi.edu> <20101116175458.GD4077@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101116175458.GD4077@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, Nov 16, 2010 at 07:54:58PM +0200, Michael S. Tsirkin wrote: > > > > Let's let the user pass in the IP address? That would solve the > portability issue. Further, we could be doing IPv6, right? > So you'd need IPV6_MULTICAST_IF? > Also - you might also want to control > IP_MULTICAST_LOOP/IPV6_MULTICAST_LOOP? IP address seems like a good alternative and does indeed get rid of the messy platform-specific bits. The multicast code all assumes IPv4. For instance, it uses v4-only parse_host_port to get the multicast destination address. Given that, I'm not going to bother shoehorning in IPV6_MULTICAST_IF.