From: "Eduardo Felipe" <edusaper@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5135] pcnet: add loopback mode emulation
Date: Wed, 3 Sep 2008 01:03:18 +0200 [thread overview]
Message-ID: <83a4d4ca0809021603y398f931bq424fb68327f731e8@mail.gmail.com> (raw)
In-Reply-To: <E1KaYad-0004HT-9I@cvs.savannah.gnu.org>
2008/9/2 Aurelien Jarno <aurelien@aurel32.net>:
> 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 <jan.kiszka@siemens.com>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
>
> 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"
next prev parent reply other threads:[~2008-09-02 23:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 16:18 [Qemu-devel] [5135] pcnet: add loopback mode emulation Aurelien Jarno
2008-09-02 23:03 ` Eduardo Felipe [this message]
2008-09-02 23:26 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a4d4ca0809021603y398f931bq424fb68327f731e8@mail.gmail.com \
--to=edusaper@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).