diff options
author | Patrick McHardy <kaber@trash.net> | 2008-06-05 16:18:41 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-06-05 16:18:41 +0200 |
commit | e0bba47e550420e371c97425cc6d39909a6e059b (patch) | |
tree | d146977b56f11a4cda11c2f6880b12eed573fb2a /include/linux/netfilter/xt_rateest.h | |
parent | 5a2208c3e62a150e6f6297abbfa63056ab4a8066 (diff) |
Resync header files with kernel
Resync headers and add types.h file for endian annotated types, which
are not available with old headers.
Diffstat (limited to 'include/linux/netfilter/xt_rateest.h')
-rw-r--r-- | include/linux/netfilter/xt_rateest.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/netfilter/xt_rateest.h b/include/linux/netfilter/xt_rateest.h index e4e06532..2010cb74 100644 --- a/include/linux/netfilter/xt_rateest.h +++ b/include/linux/netfilter/xt_rateest.h @@ -2,12 +2,12 @@ #define _XT_RATEEST_MATCH_H enum xt_rateest_match_flags { - XT_RATEEST_MATCH_INVERT = 0x01, - XT_RATEEST_MATCH_ABS = 0x02, - XT_RATEEST_MATCH_REL = 0x04, - XT_RATEEST_MATCH_DELTA = 0x08, - XT_RATEEST_MATCH_BPS = 0x10, - XT_RATEEST_MATCH_PPS = 0x20, + XT_RATEEST_MATCH_INVERT = 1<<0, + XT_RATEEST_MATCH_ABS = 1<<1, + XT_RATEEST_MATCH_REL = 1<<2, + XT_RATEEST_MATCH_DELTA = 1<<3, + XT_RATEEST_MATCH_BPS = 1<<4, + XT_RATEEST_MATCH_PPS = 1<<5, }; enum xt_rateest_match_mode { @@ -26,6 +26,8 @@ struct xt_rateest_match_info { u_int32_t pps1; u_int32_t bps2; u_int32_t pps2; + + /* Used internally by the kernel */ struct xt_rateest *est1 __attribute__((aligned(8))); struct xt_rateest *est2 __attribute__((aligned(8))); }; |