From 0fe6a7f28455cd003b2668e77d5bd1e1cf15309e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- slirp/ip_output.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'slirp/ip_output.c') diff --git a/slirp/ip_output.c b/slirp/ip_output.c index 94bb0f27eb..3031f4d112 100644 --- a/slirp/ip_output.c +++ b/slirp/ip_output.c @@ -72,7 +72,6 @@ ip_output(struct socket *so, struct mbuf *m0) ip->ip_off &= IP_DF; ip->ip_id = htons(ip_id++); ip->ip_hl = hlen >> 2; - STAT(ipstat.ips_localout++); /* * If small enough for interface, can just send directly. @@ -93,7 +92,6 @@ ip_output(struct socket *so, struct mbuf *m0) */ if (ip->ip_off & IP_DF) { error = -1; - STAT(ipstat.ips_cantfrag++); goto bad; } @@ -118,7 +116,6 @@ ip_output(struct socket *so, struct mbuf *m0) m = m_get(); if (m == NULL) { error = -1; - STAT(ipstat.ips_odropped++); goto sendorfree; } m->m_data += IF_MAXLINKHDR; @@ -145,7 +142,6 @@ ip_output(struct socket *so, struct mbuf *m0) mhip->ip_sum = cksum(m, mhlen); *mnext = m; mnext = &m->m_nextpkt; - STAT(ipstat.ips_ofragments++); } /* * Update first fragment by trimming what's been copied out @@ -166,9 +162,6 @@ sendorfree: else m_freem(m); } - - if (error == 0) - STAT(ipstat.ips_fragmented++); } done: -- cgit v1.2.1