2007-12-05 00:40:05 -07:00
|
|
|
#ifndef _XT_RATEEST_H
|
|
|
|
#define _XT_RATEEST_H
|
|
|
|
|
|
|
|
struct xt_rateest {
|
|
|
|
struct hlist_node list;
|
|
|
|
char name[IFNAMSIZ];
|
|
|
|
unsigned int refcnt;
|
|
|
|
spinlock_t lock;
|
|
|
|
struct gnet_estimator params;
|
|
|
|
struct gnet_stats_rate_est rstats;
|
2009-08-16 03:36:49 -06:00
|
|
|
struct gnet_stats_basic_packed bstats;
|
2007-12-05 00:40:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct xt_rateest *xt_rateest_lookup(const char *name);
|
|
|
|
extern void xt_rateest_put(struct xt_rateest *est);
|
|
|
|
|
|
|
|
#endif /* _XT_RATEEST_H */
|