Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 09:55:28 +0100
From:      =?UTF-8?Q?J=C4=99drzej_Kalinowski?= <kalinoj1@iem.pw.edu.pl>
To:        <freebsd-emulation@freebsd.org>
Subject:   qemu 0.10.1 PCAP networking on CURRENT
Message-ID:  <962f2e5dc273dac6f2a2aaf017763bb2@iem.pw.edu.pl>

next in thread | raw e-mail | index | archive | help

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 <pcap.h>
++#include <net/bpf.h>
 +#endif
 +
  #if defined(CONFIG_SLIRP)

-- 
JK



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?962f2e5dc273dac6f2a2aaf017763bb2>