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_u32.h (752B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_U32_H
  3. #define _XT_U32_H 1
  4. #include <linux/types.h>
  5. enum xt_u32_ops {
  6. XT_U32_AND,
  7. XT_U32_LEFTSH,
  8. XT_U32_RIGHTSH,
  9. XT_U32_AT,
  10. };
  11. struct xt_u32_location_element {
  12. __u32 number;
  13. __u8 nextop;
  14. };
  15. struct xt_u32_value_element {
  16. __u32 min;
  17. __u32 max;
  18. };
  19. /*
  20. * Any way to allow for an arbitrary number of elements?
  21. * For now, I settle with a limit of 10 each.
  22. */
  23. #define XT_U32_MAXSIZE 10
  24. struct xt_u32_test {
  25. struct xt_u32_location_element location[XT_U32_MAXSIZE+1];
  26. struct xt_u32_value_element value[XT_U32_MAXSIZE+1];
  27. __u8 nnums;
  28. __u8 nvalues;
  29. };
  30. struct xt_u32 {
  31. struct xt_u32_test tests[XT_U32_MAXSIZE+1];
  32. __u8 ntests;
  33. __u8 invert;
  34. };
  35. #endif /* _XT_U32_H */