From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56930 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZUxb-0002N5-Ll for qemu-devel@nongnu.org; Thu, 15 Jul 2010 16:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZUxa-0006RF-Ea for qemu-devel@nongnu.org; Thu, 15 Jul 2010 16:23:11 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:56062) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZUxa-0006R6-8U for qemu-devel@nongnu.org; Thu, 15 Jul 2010 16:23:10 -0400 Received: by gxk19 with SMTP id 19so930723gxk.4 for ; Thu, 15 Jul 2010 13:23:09 -0700 (PDT) From: Miguel Di Ciurcio Filho Date: Thu, 15 Jul 2010 17:22:59 -0300 Message-Id: <1279225380-28790-4-git-send-email-miguel.filho@gmail.com> In-Reply-To: <1279225380-28790-1-git-send-email-miguel.filho@gmail.com> References: <1279225380-28790-1-git-send-email-miguel.filho@gmail.com> Subject: [Qemu-devel] [PATCH RFC 3/4] net/tap: Suggested support for NetClientDump List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Miguel Di Ciurcio Filho , jan.kiszka@web.de, armbru@redhat.com, avi@redhat.com Signed-off-by: Miguel Di Ciurcio Filho --- net/tap.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/net/tap.c b/net/tap.c index 0147dab..5bd069b 100644 --- a/net/tap.c +++ b/net/tap.c @@ -442,6 +442,9 @@ int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan return -1; } + /* XXX: Handle dump and dumplen here */ + s->nc.dump = net_client_create_dump("/tmp/tap0.dump", 0); + if (tap_set_sndbuf(s->fd, opts) < 0) { return -1; } -- 1.7.1