diff mbox

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

Message ID 1279225380-28790-4-git-send-email-miguel.filho@gmail.com
State New
Headers show

Commit Message

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

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