[PATCH] QEMU networking with bpf/libpcap

Jung-uk Kim jkim at FreeBSD.org
Sat Feb 10 01:02:35 UTC 2007


I have hacked bpf(4) to make connection between host and guest.  The 
patch against -CURRENT is here:

http://people.freebsd.org/~jkim/bpf_feedback.diff

Basically, injected packet is fed back as if it is incoming packet 
from the interface.  To use the hack, you need the following patch 
for QEMU:

http://people.freebsd.org/~jkim/patch-qemu-pcap_feedback.diff

The usage is exactly the same as before:

http://docs.freebsd.org/cgi/mid.cgi?200702061748.03125.jkim

If you use network controller with checksum offloading feature, you 
have to turn it off to connect between host and guest, i.e., 
'ifconfig <YOUR_NIC_HERE> -rxcsum -txcsum' before starting QEMU.

Enjoy,

Jung-uk Kim


More information about the freebsd-emulation mailing list