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 | 78d34d604df103f622c7dcff4546096499c5282b (patch) | |
tree | 450145c474ae8fed5ff03859e3ab2611afbc4dc6 /slirp/tcp_subr.c | |
parent | 4010a7db103393a1393b7690520cbca6580198af (diff) | |
download | qemu-78d34d604df103f622c7dcff4546096499c5282b.tar.gz qemu-78d34d604df103f622c7dcff4546096499c5282b.tar.bz2 qemu-78d34d604df103f622c7dcff4546096499c5282b.zip |
slirp: Drop statistic code
As agreed on the mailing list, there is no interest in keeping the
usually disabled slirp statistics in the tree. So this patch removes
them.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/tcp_subr.c')
-rw-r--r-- | slirp/tcp_subr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index 892bd83325..868382a6c2 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -222,9 +222,7 @@ struct tcpcb *tcp_drop(struct tcpcb *tp, int err) if (TCPS_HAVERCVDSYN(tp->t_state)) { tp->t_state = TCPS_CLOSED; (void) tcp_output(tp); - STAT(tcpstat.tcps_drops++); - } else - STAT(tcpstat.tcps_conndrops++); + } return (tcp_close(tp)); } @@ -261,7 +259,6 @@ tcp_close(struct tcpcb *tp) sbfree(&so->so_rcv); sbfree(&so->so_snd); sofree(so); - STAT(tcpstat.tcps_closed++); return ((struct tcpcb *)0); } @@ -442,8 +439,6 @@ tcp_connect(struct socket *inso) tcp_template(tp); - STAT(tcpstat.tcps_connattempt++); - tp->t_state = TCPS_SYN_SENT; tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT; tp->iss = tcp_iss; |