Patchwork [RFC,3/4] net/tap: Suggested support for NetClientDump

login
register
mail settings
Submitter Miguel Di Ciurcio Filho
Date July 15, 2010, 8:22 p.m.
Message ID <1279225380-28790-4-git-send-email-miguel.filho@gmail.com>
Download mbox | patch
Permalink /patch/59045/
State New
Headers show

Comments

Miguel Di Ciurcio Filho - July 15, 2010, 8:22 p.m.
Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
---
 net/tap.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

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;
     }