From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 26 09:12:09 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B35A106566C for ; Thu, 26 Mar 2009 09:12:09 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.freebsd.org (Postfix) with ESMTP id E02008FC17 for ; Thu, 26 Mar 2009 09:12:08 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: by volt.iem.pw.edu.pl (Postfix, from userid 80) id 9F963A666FF; Thu, 26 Mar 2009 09:55:28 +0100 (CET) To: MIME-Version: 1.0 Date: Thu, 26 Mar 2009 09:55:28 +0100 From: =?UTF-8?Q?J=C4=99drzej_Kalinowski?= Message-ID: <962f2e5dc273dac6f2a2aaf017763bb2@iem.pw.edu.pl> X-Sender: kalinoj1@iem.pw.edu.pl User-Agent: RoundCube Webmail/0.2-beta Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Subject: qemu 0.10.1 PCAP networking on CURRENT X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 09:12:09 -0000 Hi, I'm working with latest qemu port (0.10.1) submitted by Juergen Lock. Pcap networking didn't work ok for me - it was terribly slow. I'm on a 8.0-CURRENT system, so I don't know if it is also the case in older releases. Nevertheless, if someone experiences similiar problems, you can try this patch - it helped me: --- /usr/ports/emulators/qemu/files/pcap-patch.orig 2009-03-08 18:09:43.000000000 +0100 +++ /usr/local/emulators/qemu/files/pcap-patch 2009-03-26 09:16:43.000000000 +0100 @@ -87,7 +87,7 @@ echo "CONFIG_SLIRP=yes" >> $config_mak echo "#define CONFIG_SLIRP 1" >> $config_h Index: net.c -@@ -105,6 +105,13 @@ +@@ -105,6 +105,15 @@ #include "qemu_socket.h" @@ -95,7 +95,9 @@ +#if defined(_WIN32) +#define WPCAP 1 +#endif ++#define PCAP_DONT_INCLUDE_PCAP_BPF_H +#include ++#include +#endif + #if defined(CONFIG_SLIRP) -- JK