quota: convert macros to inline functions
[linux-2.6] / include / linux / netfilter / xt_rateest.h
1 #ifndef _XT_RATEEST_MATCH_H
2 #define _XT_RATEEST_MATCH_H
3
4 enum xt_rateest_match_flags {
5         XT_RATEEST_MATCH_INVERT = 1<<0,
6         XT_RATEEST_MATCH_ABS    = 1<<1,
7         XT_RATEEST_MATCH_REL    = 1<<2,
8         XT_RATEEST_MATCH_DELTA  = 1<<3,
9         XT_RATEEST_MATCH_BPS    = 1<<4,
10         XT_RATEEST_MATCH_PPS    = 1<<5,
11 };
12
13 enum xt_rateest_match_mode {
14         XT_RATEEST_MATCH_NONE,
15         XT_RATEEST_MATCH_EQ,
16         XT_RATEEST_MATCH_LT,
17         XT_RATEEST_MATCH_GT,
18 };
19
20 struct xt_rateest_match_info {
21         char                    name1[IFNAMSIZ];
22         char                    name2[IFNAMSIZ];
23         u_int16_t               flags;
24         u_int16_t               mode;
25         u_int32_t               bps1;
26         u_int32_t               pps1;
27         u_int32_t               bps2;
28         u_int32_t               pps2;
29
30         /* Used internally by the kernel */
31         struct xt_rateest       *est1 __attribute__((aligned(8)));
32         struct xt_rateest       *est2 __attribute__((aligned(8)));
33 };
34
35 #endif /* _XT_RATEEST_MATCH_H */