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 --- slirp/tcp_output.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'slirp/tcp_output.c') 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 -/* - * 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, -- cgit v1.2.1