From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf0rE-00015x-AD for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf0rB-0002fL-6l for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf0rB-0002fD-2A for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:17 -0400 From: Thomas Huth Date: Thu, 24 Sep 2015 09:22:08 +0200 Message-Id: <1443079333-30097-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] Network traffic dumping via netfilter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, jasowang@redhat.com Cc: yanghy@cn.fujitsu.com, armbru@redhat.com, stefanha@redhat.com, mst@redhat.com 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 (integration into that infrastructure was pretty easy, so thanks for this great work!) 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 The patches have to be applied on top of the Jason's net branch (since the netfilter patches have not been pulled into master yet). 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 net/dump: Add documentation net/dump.c | 228 ++++++++++++++++++++++++++++++++++++++++++++++++-------- qemu-options.hx | 8 ++ vl.c | 8 +- 3 files changed, 212 insertions(+), 32 deletions(-) -- 1.8.3.1