From 6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: slirp: Add info usernet for dumping connection states Break out sockstats from the slirp statistics and present them under the new info category "usernet". This patch also improves the current output /wrt proper reporting connection source and destination. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net.c') diff --git a/net.c b/net.c index 603e77cae8..fe33b4f88e 100644 --- a/net.c +++ b/net.c @@ -1198,6 +1198,12 @@ static void slirp_guestfwd(Monitor *mon, const char *config_str, config_error(mon, "invalid guest forwarding rule '%s'\n", config_str); } +void do_info_usernet(Monitor *mon) +{ + monitor_printf(mon, "VLAN %d (%s):\n", slirp_vc->vlan->id, slirp_vc->name); + slirp_connection_info(mon); +} + #endif /* CONFIG_SLIRP */ #if !defined(_WIN32) -- cgit 1.4.1