logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

xt_limit.h (673B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_RATE_H
  3. #define _XT_RATE_H
  4. #include <linux/types.h>
  5. /* timings are in milliseconds. */
  6. #define XT_LIMIT_SCALE 10000
  7. struct xt_limit_priv;
  8. /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
  9. seconds, or one every 59 hours. */
  10. struct xt_rateinfo {
  11. __u32 avg; /* Average secs between packets * scale */
  12. __u32 burst; /* Period multiplier for upper limit. */
  13. /* Used internally by the kernel */
  14. unsigned long prev; /* moved to xt_limit_priv */
  15. __u32 credit; /* moved to xt_limit_priv */
  16. __u32 credit_cap, cost;
  17. struct xt_limit_priv *master;
  18. };
  19. #endif /*_XT_RATE_H*/