From patchwork Thu Sep 24 07:22:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 522141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 93DE11401F6 for ; Thu, 24 Sep 2015 17:23:01 +1000 (AEST) Received: from localhost ([::1]:53328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf0rr-0002Ao-FB for incoming@patchwork.ozlabs.org; Thu, 24 Sep 2015 03:22:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf0rN-0001K0-Pg for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf0rL-0002ja-De for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf0rL-0002jV-8q for qemu-devel@nongnu.org; Thu, 24 Sep 2015 03:22:27 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id DFA6B9247D; Thu, 24 Sep 2015 07:22:26 +0000 (UTC) Received: from thh440s.redhat.com (vpn1-5-9.ams2.redhat.com [10.36.5.9]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8O7MDZv018652; Thu, 24 Sep 2015 03:22:25 -0400 From: Thomas Huth To: qemu-devel@nongnu.org, jasowang@redhat.com Date: Thu, 24 Sep 2015 09:22:13 +0200 Message-Id: <1443079333-30097-6-git-send-email-thuth@redhat.com> In-Reply-To: <1443079333-30097-1-git-send-email-thuth@redhat.com> References: <1443079333-30097-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: yanghy@cn.fujitsu.com, armbru@redhat.com, stefanha@redhat.com, mst@redhat.com Subject: [Qemu-devel] [PATCH 5/5] net/dump: Add documentation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add a short description for the filter-dump command line options. Signed-off-by: Thomas Huth --- qemu-options.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index b09f97f..347ee28 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2011,6 +2011,7 @@ qemu -m 512 -object memory-backend-file,id=mem,size=512M,mem-path=/hugetlbfs,sha Dump network traffic on VLAN @var{n} to file @var{file} (@file{qemu-vlan0.pcap} by default). At most @var{len} bytes (64k by default) per packet are stored. The file format is libpcap, so it can be analyzed with tools such as tcpdump or Wireshark. +Note: For devices created with '-netdev', use '-object filter-dump,...' instead. @item -net none Indicate that no network devices should be configured. It is used to @@ -3660,6 +3661,13 @@ chain @var{all|in|out} is an option that can be applied to any netfilter, defaul @option{out} means this filter will receive packets sent from the netdev +@item -object filter-dump,id=@var{id},netdev=@var{dev},file=@var{filename}][,maxlen=@var{len}] + +Dump the network traffic on netdev @var{dev} to the file specified by +@var{filename}. At most @var{len} bytes (64k by default) per packet are stored. +The file format is libpcap, so it can be analyzed with tools such as tcpdump +or Wireshark. + @end table ETEXI