diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-15 17:27:04 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-01-15 17:27:04 +0000 |
commit | 6afc5b720ed78173e4e21b759df16577fbce13d6 (patch) | |
tree | 288060538476ab56c87dd8ebdc235175bc1ee38f /include/linux/netfilter | |
parent | 2528258ddf066a5147394dc65cae3bde8e80e3c0 (diff) |
Add rateest match extension
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r-- | include/linux/netfilter/xt_rateest.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_rateest.h b/include/linux/netfilter/xt_rateest.h new file mode 100644 index 00000000..e4e06532 --- /dev/null +++ b/include/linux/netfilter/xt_rateest.h @@ -0,0 +1,33 @@ +#ifndef _XT_RATEEST_MATCH_H +#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, +}; + +enum xt_rateest_match_mode { + XT_RATEEST_MATCH_NONE, + XT_RATEEST_MATCH_EQ, + XT_RATEEST_MATCH_LT, + XT_RATEEST_MATCH_GT, +}; + +struct xt_rateest_match_info { + char name1[IFNAMSIZ]; + char name2[IFNAMSIZ]; + u_int16_t flags; + u_int16_t mode; + u_int32_t bps1; + u_int32_t pps1; + u_int32_t bps2; + u_int32_t pps2; + struct xt_rateest *est1 __attribute__((aligned(8))); + struct xt_rateest *est2 __attribute__((aligned(8))); +}; + +#endif /* _XT_RATEEST_MATCH_H */ |