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

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

Comments

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

Patch

diff --git a/net/slirp.c b/net/slirp.c
index b41c60a..5823699 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -240,6 +240,9 @@  static int net_slirp_init(VLANState *vlan, const char *model,
 
     nc = qemu_new_net_client(&net_slirp_info, vlan, NULL, model, name);
 
+    /* XXX: Handle dump and dumplen here */
+    nc->dump = net_client_create_dump("/tmp/slirp.pcap", 0);
+
     snprintf(nc->info_str, sizeof(nc->info_str),
              "net=%s, restricted=%c", inet_ntoa(net), restricted ? 'y' : 'n');