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/udp.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'slirp/udp.h') diff --git a/slirp/udp.h b/slirp/udp.h index d4c2bea60e..3eed14a677 100644 --- a/slirp/udp.h +++ b/slirp/udp.h @@ -67,32 +67,12 @@ struct udpiphdr { #define ui_ulen ui_u.uh_ulen #define ui_sum ui_u.uh_sum -#ifdef LOG_ENABLED -struct udpstat { - /* input statistics: */ - u_long udps_ipackets; /* total input packets */ - u_long udps_hdrops; /* packet shorter than header */ - u_long udps_badsum; /* checksum error */ - u_long udps_badlen; /* data length larger than packet */ - u_long udps_noport; /* no socket on port */ - u_long udps_noportbcast; /* of above, arrived as broadcast */ - u_long udps_fullsock; /* not delivered, input socket full */ - u_long udpps_pcbcachemiss; /* input packets missing pcb cache */ - /* output statistics: */ - u_long udps_opackets; /* total output packets */ -}; -#endif - /* * Names for UDP sysctl objects */ #define UDPCTL_CHECKSUM 1 /* checksum UDP packets */ #define UDPCTL_MAXID 2 -#ifdef LOG_ENABLED -extern struct udpstat udpstat; -#endif - extern struct socket udb; struct mbuf; -- cgit v1.2.3