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_statistic.h (716B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_STATISTIC_H
  3. #define _XT_STATISTIC_H
  4. #include <linux/types.h>
  5. enum xt_statistic_mode {
  6. XT_STATISTIC_MODE_RANDOM,
  7. XT_STATISTIC_MODE_NTH,
  8. __XT_STATISTIC_MODE_MAX
  9. };
  10. #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
  11. enum xt_statistic_flags {
  12. XT_STATISTIC_INVERT = 0x1,
  13. };
  14. #define XT_STATISTIC_MASK 0x1
  15. struct xt_statistic_priv;
  16. struct xt_statistic_info {
  17. __u16 mode;
  18. __u16 flags;
  19. union {
  20. struct {
  21. __u32 probability;
  22. } random;
  23. struct {
  24. __u32 every;
  25. __u32 packet;
  26. __u32 count; /* unused */
  27. } nth;
  28. } u;
  29. struct xt_statistic_priv *master __attribute__((aligned(8)));
  30. };
  31. #endif /* _XT_STATISTIC_H */