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_tcpudp.h (1250B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_TCPUDP_H
  3. #define _XT_TCPUDP_H
  4. #include <linux/types.h>
  5. /* TCP matching stuff */
  6. struct xt_tcp {
  7. __u16 spts[2]; /* Source port range. */
  8. __u16 dpts[2]; /* Destination port range. */
  9. __u8 option; /* TCP Option iff non-zero*/
  10. __u8 flg_mask; /* TCP flags mask byte */
  11. __u8 flg_cmp; /* TCP flags compare byte */
  12. __u8 invflags; /* Inverse flags */
  13. };
  14. /* Values for "inv" field in struct ipt_tcp. */
  15. #define XT_TCP_INV_SRCPT 0x01 /* Invert the sense of source ports. */
  16. #define XT_TCP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
  17. #define XT_TCP_INV_FLAGS 0x04 /* Invert the sense of TCP flags. */
  18. #define XT_TCP_INV_OPTION 0x08 /* Invert the sense of option test. */
  19. #define XT_TCP_INV_MASK 0x0F /* All possible flags. */
  20. /* UDP matching stuff */
  21. struct xt_udp {
  22. __u16 spts[2]; /* Source port range. */
  23. __u16 dpts[2]; /* Destination port range. */
  24. __u8 invflags; /* Inverse flags */
  25. };
  26. /* Values for "invflags" field in struct ipt_udp. */
  27. #define XT_UDP_INV_SRCPT 0x01 /* Invert the sense of source ports. */
  28. #define XT_UDP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
  29. #define XT_UDP_INV_MASK 0x03 /* All possible flags. */
  30. #endif