1/* iptables module for matching the ECN header in IPv4 and TCP header 2 * 3 * (C) 2002 Harald Welte <laforge@netfilter.org> 4 * 5 * This software is distributed under GNU GPL v2, 1991 6*/ 7#ifndef _XT_ECN_H 8#define _XT_ECN_H 9 10#include <linux/types.h> 11#include <linux/netfilter/xt_dscp.h> 12 13#define XT_ECN_IP_MASK (~XT_DSCP_MASK) 14 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 19#define XT_ECN_OP_MATCH_MASK 0xce 20 21/* match info */ 22struct xt_ecn_info { 23 __u8 operation; 24 __u8 invert; 25 __u8 ip_ect; 26 union { 27 struct { 28 __u8 ect; 29 } tcp; 30 } proto; 31}; 32 33#endif /* _XT_ECN_H */ 34