ipt_ECN.h revision 435483c91cf16117fc2b864cb6994435ad669bc6
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _IPT_ECN_TARGET_H
13#define _IPT_ECN_TARGET_H
14#include <linux/netfilter_ipv4/ipt_DSCP.h>
15
16#define IPT_ECN_IP_MASK (~IPT_DSCP_MASK)
17
18#define IPT_ECN_OP_SET_IP 0x01
19#define IPT_ECN_OP_SET_ECE 0x10
20#define IPT_ECN_OP_SET_CWR 0x20
21
22#define IPT_ECN_OP_MASK 0xce
23
24struct ipt_ECN_info {
25 u_int8_t operation;
26 u_int8_t ip_ect;
27 union {
28 struct {
29 u_int8_t ece:1, cwr:1;
30 } tcp;
31 } proto;
32};
33
34#endif
35