mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Make Slirp statistics gathering and output conditional to LOG_ENABLED
Add 'info slirp' command to monitor to display statistics Disable Slirp debugging code by default git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3451 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7d294b61ed
commit
31a60e2275
22 changed files with 203 additions and 125 deletions
|
@ -72,6 +72,7 @@ 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 */
|
||||
|
@ -85,6 +86,7 @@ struct udpstat {
|
|||
/* output statistics: */
|
||||
u_long udps_opackets; /* total output packets */
|
||||
};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Names for UDP sysctl objects
|
||||
|
@ -92,7 +94,10 @@ struct udpstat {
|
|||
#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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue