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_ecn.h (736B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* iptables module for matching the ECN header in IPv4 and TCP header
  3. *
  4. * (C) 2002 Harald Welte <laforge@gnumonks.org>
  5. *
  6. * This software is distributed under GNU GPL v2, 1991
  7. *
  8. * ipt_ecn.h,v 1.4 2002/08/05 19:39:00 laforge Exp
  9. */
  10. #ifndef _XT_ECN_H
  11. #define _XT_ECN_H
  12. #include <linux/types.h>
  13. #include <linux/netfilter/xt_dscp.h>
  14. #define XT_ECN_IP_MASK (~XT_DSCP_MASK)
  15. #define XT_ECN_OP_MATCH_IP 0x01
  16. #define XT_ECN_OP_MATCH_ECE 0x10
  17. #define XT_ECN_OP_MATCH_CWR 0x20
  18. #define XT_ECN_OP_MATCH_MASK 0xce
  19. /* match info */
  20. struct xt_ecn_info {
  21. __u8 operation;
  22. __u8 invert;
  23. __u8 ip_ect;
  24. union {
  25. struct {
  26. __u8 ect;
  27. } tcp;
  28. } proto;
  29. };
  30. #endif /* _XT_ECN_H */