qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [5135] pcnet: add loopback mode emulation


From: Eduardo Felipe
Subject: Re: [Qemu-devel] [5135] pcnet: add loopback mode emulation
Date: Wed, 3 Sep 2008 01:03:18 +0200

2008/9/2 Aurelien Jarno <address@hidden>:
> 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 <address@hidden>
> Signed-off-by: Aurelien Jarno <address@hidden>
>
> 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 <winsock2.h>
+#else
 #include <netinet/in.h>
+#endif

 #include "hw.h"
 #include "pci.h"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]