diff options
Diffstat (limited to 'slirp/udp.h')
-rw-r--r-- | slirp/udp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/slirp/udp.h b/slirp/udp.h index 67da6cd731..12435eb82c 100644 --- a/slirp/udp.h +++ b/slirp/udp.h @@ -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; |