From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kaeu9-0006La-W3 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:03:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kaeu8-0006LO-Mq for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:03:20 -0400 Received: from [199.232.76.173] (port=52637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kaeu8-0006LL-H7 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:03:20 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:53325) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kaeu8-0000aX-1d for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:03:20 -0400 Received: by ey-out-1920.google.com with SMTP id 4so1005022eyk.4 for ; Tue, 02 Sep 2008 16:03:18 -0700 (PDT) Message-ID: <83a4d4ca0809021603y398f931bq424fb68327f731e8@mail.gmail.com> Date: Wed, 3 Sep 2008 01:03:18 +0200 From: "Eduardo Felipe" Subject: Re: [Qemu-devel] [5135] pcnet: add loopback mode emulation In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 2008/9/2 Aurelien Jarno : > Revision: 5135 > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5135 > Author: aurel32 > Date: 2008-09-02 16:18:46 +0000 (Tue, 02 Sep 2008) > > Log Message: > ----------- > pcnet: add loopback mode emulation > > This patch enhances the pcnet NIC emulation with better loopback mode > support, including CRC generation for looped-back packets in "raw" mode. > The patch has practically no impact on the normal RX and TX path. > > Successfully tested against an ancient proprietary pcnet driver that > does a lot of hardware checks on boot-up and now works fine over qemu as > well. > > Signed-off-by: Jan Kiszka > Signed-off-by: Aurelien Jarno > > Modified Paths: > -------------- > trunk/hw/pcnet.c > Hi, Windows compile fix. Regards, Edu --- hw/pcnet.c +++ hw/pcnet.c @@ -35,7 +35,11 @@ * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ +#ifdef _WIN32 +#include +#else #include +#endif #include "hw.h" #include "pci.h"