/[lwip]/lwip/src/include/lwip/stats.h
ViewVC logotype

Diff of /lwip/src/include/lwip/stats.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by jani, Wed Mar 19 12:37:46 2003 UTC revision 1.7.6.1 by jani, Tue Oct 28 11:44:44 2003 UTC
# Line 101  extern struct stats_ lwip_stats; Line 101  extern struct stats_ lwip_stats;
101    
102    
103  void stats_init(void);  void stats_init(void);
104    
105    #define STATS_INC(x) ++lwip_stats.x
106  #else  #else
107  #define stats_init()  #define stats_init()
108    #define STATS_INC(x)
109  #endif /* LWIP_STATS */  #endif /* LWIP_STATS */
110    
111    #if TCP_STATS
112    #define TCP_STATS_INC(x) STATS_INC(x)
113    #else
114    #define TCP_STATS_INC(x)
115    #endif
116    
117    #if UDP_STATS
118    #define UDP_STATS_INC(x) STATS_INC(x)
119    #else
120    #define UDP_STATS_INC(x)
121    #endif
122    
123    #if ICMP_STATS
124    #define ICMP_STATS_INC(x) STATS_INC(x)
125    #else
126    #define ICMP_STATS_INC(x)
127    #endif
128    
129    #if IP_STATS
130    #define IP_STATS_INC(x) STATS_INC(x)
131    #else
132    #define IP_STATS_INC(x)
133    #endif
134    
135    #if IPFRAG_STATS
136    #define IPFRAG_STATS_INC(x) STATS_INC(x)
137    #else
138    #define IPFRAG_STATS_INC(x)
139    #endif
140    
141    #if LINK_STATS
142    #define LINK_STATS_INC(x) STATS_INC(x)
143    #else
144    #define LINK_STATS_INC(x)
145    #endif
146    
147  #endif /* __LWIP_STATS_H__ */  #endif /* __LWIP_STATS_H__ */
148    
149    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.6.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26