From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 10 01:02:35 2007 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7520A16A401 for ; Sat, 10 Feb 2007 01:02:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id CA95E13C49D for ; Sat, 10 Feb 2007 01:02:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l1A12XF0038988 for ; Fri, 9 Feb 2007 20:02:33 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Fri, 9 Feb 2007 20:02:28 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200702092002.31220.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2545/Fri Feb 9 15:26:25 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: [PATCH] QEMU networking with bpf/libpcap 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: Sat, 10 Feb 2007 01:02:35 -0000 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 -rxcsum -txcsum' before starting QEMU. Enjoy, Jung-uk Kim