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_rateest.h (859B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_RATEEST_MATCH_H
  3. #define _XT_RATEEST_MATCH_H
  4. #include <linux/types.h>
  5. #include <linux/if.h>
  6. enum xt_rateest_match_flags {
  7. XT_RATEEST_MATCH_INVERT = 1<<0,
  8. XT_RATEEST_MATCH_ABS = 1<<1,
  9. XT_RATEEST_MATCH_REL = 1<<2,
  10. XT_RATEEST_MATCH_DELTA = 1<<3,
  11. XT_RATEEST_MATCH_BPS = 1<<4,
  12. XT_RATEEST_MATCH_PPS = 1<<5,
  13. };
  14. enum xt_rateest_match_mode {
  15. XT_RATEEST_MATCH_NONE,
  16. XT_RATEEST_MATCH_EQ,
  17. XT_RATEEST_MATCH_LT,
  18. XT_RATEEST_MATCH_GT,
  19. };
  20. struct xt_rateest_match_info {
  21. char name1[IFNAMSIZ];
  22. char name2[IFNAMSIZ];
  23. __u16 flags;
  24. __u16 mode;
  25. __u32 bps1;
  26. __u32 pps1;
  27. __u32 bps2;
  28. __u32 pps2;
  29. /* Used internally by the kernel */
  30. struct xt_rateest *est1 __attribute__((aligned(8)));
  31. struct xt_rateest *est2 __attribute__((aligned(8)));
  32. };
  33. #endif /* _XT_RATEEST_MATCH_H */