From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoOdx-0006K4-01 for qemu-devel@nongnu.org; Tue, 20 Oct 2015 00:35:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoOds-0003mQ-Vw for qemu-devel@nongnu.org; Tue, 20 Oct 2015 00:35:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoOds-0003mK-Qt for qemu-devel@nongnu.org; Tue, 20 Oct 2015 00:35:20 -0400 References: <1444732802-14732-1-git-send-email-thuth@redhat.com> From: Jason Wang Message-ID: <5625C483.2040901@redhat.com> Date: Tue, 20 Oct 2015 12:35:15 +0800 MIME-Version: 1.0 In-Reply-To: <1444732802-14732-1-git-send-email-thuth@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/5] Network traffic dumping via netfilter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-devel@nongnu.org Cc: yanghy@cn.fujitsu.com, armbru@redhat.com, stefanha@redhat.com, mst@redhat.com On 10/13/2015 06:39 PM, Thomas Huth wrote: > The "-net dump" option only works with the "-net" option. So far, it > is not possible to dump network traffic with the "-netdev" option yet. > This patch series now fixes this ugliness by enabling dumping for the > netdev devices via the new netfilter infrastructure from Yang Hongyang. > The dumping filter can be used like this for example: > > ppc64-softmmu/qemu-system-ppc64 -device virtio-net,netdev=mynet \ > -netdev user,id=mynet,tftp=/tmp/tftp,bootfile=zImage \ > -object filter-dump,id=f0,netdev=mynet,file=/tmp/dumpfile.dat > > Changes in v2: > - Only rebased to master branch (to suit the final version of the > netfilter patches that are now merged into master) > > Thomas Huth (5): > net/dump: Add support for receive_iov function > net/dump: Rework net-dump init functions > net/dump: Separate the NetClientState from the DumpState > net/dump: Provide the dumping facility as a net filter > options: Add documentation for filter-dump > > net/dump.c | 228 ++++++++++++++++++++++++++++++++++++++++++++++++-------- > qemu-options.hx | 8 ++ > vl.c | 7 +- > 3 files changed, 212 insertions(+), 31 deletions(-) > Applied in https://github.com/jasowang/qemu/commits/net Thanks.