mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

  1. copied from git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git
  2. for 2.6.21 kernels
  3. 2007-07-10
  4. --- iproute-2.6.20-070313/include/linux/netfilter/xt_tcpudp.h 1970-01-01 01:00:00.000000000 +0100
  5. +++ iproute2/include/linux/netfilter/xt_tcpudp.h 2007-07-10 16:30:20.000000000 +0200
  6. @@ -0,0 +1,36 @@
  7. +#ifndef _XT_TCPUDP_H
  8. +#define _XT_TCPUDP_H
  9. +
  10. +/* TCP matching stuff */
  11. +struct xt_tcp
  12. +{
  13. + u_int16_t spts[2]; /* Source port range. */
  14. + u_int16_t dpts[2]; /* Destination port range. */
  15. + u_int8_t option; /* TCP Option iff non-zero*/
  16. + u_int8_t flg_mask; /* TCP flags mask byte */
  17. + u_int8_t flg_cmp; /* TCP flags compare byte */
  18. + u_int8_t invflags; /* Inverse flags */
  19. +};
  20. +
  21. +/* Values for "inv" field in struct ipt_tcp. */
  22. +#define XT_TCP_INV_SRCPT 0x01 /* Invert the sense of source ports. */
  23. +#define XT_TCP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
  24. +#define XT_TCP_INV_FLAGS 0x04 /* Invert the sense of TCP flags. */
  25. +#define XT_TCP_INV_OPTION 0x08 /* Invert the sense of option test. */
  26. +#define XT_TCP_INV_MASK 0x0F /* All possible flags. */
  27. +
  28. +/* UDP matching stuff */
  29. +struct xt_udp
  30. +{
  31. + u_int16_t spts[2]; /* Source port range. */
  32. + u_int16_t dpts[2]; /* Destination port range. */
  33. + u_int8_t invflags; /* Inverse flags */
  34. +};
  35. +
  36. +/* Values for "invflags" field in struct ipt_udp. */
  37. +#define XT_UDP_INV_SRCPT 0x01 /* Invert the sense of source ports. */
  38. +#define XT_UDP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
  39. +#define XT_UDP_INV_MASK 0x03 /* All possible flags. */
  40. +
  41. +
  42. +#endif