From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Thomas Huth 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> Subject: [Qemu-devel] [PATCH 5/5] net/dump: Add documentation 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 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 -- 1.8.3.1