From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlx0F-0001sK-16 for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:40:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlx0C-0006Dz-GO for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:40:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlx0C-0006Du-C9 for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:40:16 -0400 From: Thomas Huth Date: Tue, 13 Oct 2015 12:40:02 +0200 Message-Id: <1444732802-14732-6-git-send-email-thuth@redhat.com> In-Reply-To: <1444732802-14732-1-git-send-email-thuth@redhat.com> References: <1444732802-14732-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH v2 5/5] options: Add documentation for filter-dump 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 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 2485b94..3ab753d 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2012,6 +2012,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 @@ queue @var{all|rx|tx} is an option that can be applied to any netfilter. @option{tx}: the filter is attached to the transmit queue of the netdev, where it will receive packets sent by 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 -- 1.8.3.1