From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMYgM-0005Zc-Pj for qemu-devel@nongnu.org; Thu, 02 Jul 2009 22:39:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMYgI-0005K7-F0 for qemu-devel@nongnu.org; Thu, 02 Jul 2009 22:39:22 -0400 Received: from [199.232.76.173] (port=35739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMYgI-0005Jf-5a for qemu-devel@nongnu.org; Thu, 02 Jul 2009 22:39:18 -0400 Received: from mail2.shareable.org ([80.68.89.115]:50005) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MMYgH-0004lt-1l for qemu-devel@nongnu.org; Thu, 02 Jul 2009 22:39:17 -0400 Date: Fri, 3 Jul 2009 03:39:12 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH] net: add raw backend Message-ID: <20090703023911.GD938@shareable.org> References: <20090701162115.GA4555@shareable.org> <4A4CA747.1050509@Voltaire.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4CA747.1050509@Voltaire.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Or Gerlitz Cc: Herbert Xu , qemu-devel@nongnu.org Or Gerlitz wrote: > Jamie Lokier wrote: > > It looks like it would be functionally identical to the pcap > > network backend, with the same advantages and problems, but one > > less dependency on an external library (and removes any > > compatibility with ancient kernels that are in libpcap, but QEMU > > doesn't work on them anyway). > > Assuming that by "pcap network backend" you refer to the -net dump > backend, I don't think this (the idea/patch being functionally > identical) is the case with the current code: the dump backend opens a > file and writes there packets received from the vlan in pcap format, > that's all. So first, there's no direct linking with libpcap, and more > important, the packets aren't going to the network through the dump > backend. With the raw backend, there's no pcap file, but packets are > sent to and received from the network through packet socket. No, I meant "-net pcap", whose patch is announced at http://lists.freebsd.org/pipermail/freebsd-emulation/2007-February/003108.html and found here: http://people.freebsd.org/~jkim/patch-qemu-pcap.diff I saw it mention on this list in the last few months. It sends and receives packets over a host network interface using libpcap. -- Jamie