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_string.h (664B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_STRING_H
  3. #define _XT_STRING_H
  4. #include <linux/types.h>
  5. #define XT_STRING_MAX_PATTERN_SIZE 128
  6. #define XT_STRING_MAX_ALGO_NAME_SIZE 16
  7. enum {
  8. XT_STRING_FLAG_INVERT = 0x01,
  9. XT_STRING_FLAG_IGNORECASE = 0x02
  10. };
  11. struct xt_string_info {
  12. __u16 from_offset;
  13. __u16 to_offset;
  14. char algo[XT_STRING_MAX_ALGO_NAME_SIZE];
  15. char pattern[XT_STRING_MAX_PATTERN_SIZE];
  16. __u8 patlen;
  17. union {
  18. struct {
  19. __u8 invert;
  20. } v0;
  21. struct {
  22. __u8 flags;
  23. } v1;
  24. } u;
  25. /* Used internally by the kernel */
  26. struct ts_config __attribute__((aligned(8))) *config;
  27. };
  28. #endif /*_XT_STRING_H*/