diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:46 -0500 |
commit | 6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab (patch) | |
tree | 7dacffebeea9f5534cda6a19276e8a5da6c57344 /slirp/tcp_output.c | |
parent | 4a82347a470eb087b2cb3075c506c42051d20230 (diff) |
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.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/slirp/tcp_output.c b/slirp/tcp_output.c index 9ed50f5002..5daf58e73a 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, |