Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2007 20:02:28 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-emulation@FreeBSD.org
Subject:   [PATCH] QEMU networking with bpf/libpcap
Message-ID:  <200702092002.31220.jkim@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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



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