qemu 0.10.1 PCAP networking on CURRENT

Jędrzej Kalinowski kalinoj1 at iem.pw.edu.pl
Thu Mar 26 02:12:09 PDT 2009


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


More information about the freebsd-emulation mailing list