From patchwork Thu Jul 15 20:22:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Di Ciurcio Filho X-Patchwork-Id: 59045 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D9B3BB707C for ; Fri, 16 Jul 2010 06:31:22 +1000 (EST) Received: from localhost ([127.0.0.1]:46117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZV5U-0007FP-2N for incoming@patchwork.ozlabs.org; Thu, 15 Jul 2010 16:31:20 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=QfFLZOXPiEADGS1LxkFVPoCHI1uSqDBpba1EwZsiJVY=; b=hXHMMqrSD11zFCEynBK8DNPKAa3CSNUHhpC3CyAt8vx2d1ADtJ7QZwnwxbergo5lav /J3nyOS5ypr4HkbAoplI6KOA0+EeGj6euxrxRWQQZE/utmsPzZrRpSTfZqEn877uylr2 8fDuDkQeELDcgHfgppWXDMO/BwMKOhJ6eOdDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=D1oI5Gmfd5s7rwUFtGhxp9As9vpn0qOTDTOhmtKbvLumMCPAXKH8S3Yfn7O0M9JVLT XISB1O/h/km8wYHAS2DH4lx9lc+utWTJ3opEhnVDQnxz8pUAIKHTX9QXCRdV8cBnTfYo T1Y4yFSPMIIbleR++vbuhdAR8yawm3XiIyfy8= Received: by 10.150.225.17 with SMTP id x17mr526819ybg.39.1279225389320; Thu, 15 Jul 2010 13:23:09 -0700 (PDT) Received: from localhost.localdomain (curitiba.ic.unicamp.br [143.106.7.130]) by mx.google.com with ESMTPS id 3sm7365611ybi.13.2010.07.15.13.23.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Jul 2010 13:23:08 -0700 (PDT) From: Miguel Di Ciurcio Filho To: qemu-devel@nongnu.org Date: Thu, 15 Jul 2010 17:22:59 -0300 Message-Id: <1279225380-28790-4-git-send-email-miguel.filho@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1279225380-28790-1-git-send-email-miguel.filho@gmail.com> References: <1279225380-28790-1-git-send-email-miguel.filho@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Miguel Di Ciurcio Filho , jan.kiszka@web.de, armbru@redhat.com, avi@redhat.com Subject: [Qemu-devel] [PATCH RFC 3/4] net/tap: Suggested support for NetClientDump X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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; }