diff mbox

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

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

Commit Message

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

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');