aboutsummaryrefslogtreecommitdiff
path: root/slirp/tcp_output.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:29 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:46 -0500
commit6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab (patch)
tree7dacffebeea9f5534cda6a19276e8a5da6c57344 /slirp/tcp_output.c
parent4a82347a470eb087b2cb3075c506c42051d20230 (diff)
downloadqemu-6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab.zip
qemu-6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab.tar.gz
qemu-6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab.tar.bz2
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/tcp_output.c')
-rw-r--r--slirp/tcp_output.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/slirp/tcp_output.c b/slirp/tcp_output.c
index 9ed50f5..5daf58e 100644
--- a/slirp/tcp_output.c
+++ b/slirp/tcp_output.c
@@ -40,17 +40,6 @@
#include <slirp.h>
-/*
- * Since this is only used in "stats socket", we give meaning
- * names instead of the REAL names
- */
-const char * const tcpstates[] = {
-/* "CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD", */
- "REDIRECT", "LISTEN", "SYN_SENT", "SYN_RCVD",
- "ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",
- "LAST_ACK", "FIN_WAIT_2", "TIME_WAIT",
-};
-
static const u_char tcp_outflags[TCP_NSTATES] = {
TH_RST|TH_ACK, 0, TH_SYN, TH_SYN|TH_ACK,
TH_ACK, TH_ACK, TH_FIN|TH_ACK, TH_FIN|TH_ACK,