X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ndk%2Fandroid-ndk-r6%2Fplatforms%2Fandroid-3%2Farch-arm%2Fusr%2Finclude%2Flinux%2Fnetfilter_ipv4%2Fipt_ECN.h;fp=ndk%2Fandroid-ndk-r6%2Fplatforms%2Fandroid-3%2Farch-arm%2Fusr%2Finclude%2Flinux%2Fnetfilter_ipv4%2Fipt_ECN.h;h=67c16fee9c632838fc52bc912969675ecc3896d9;hb=ae8ddbace5b5cabc96f8b12120e87d9e4d7e9176;hp=0000000000000000000000000000000000000000;hpb=a7f8648da556c3c8535e062720b72780897e118c;p=android-x86%2Fprebuilt.git diff --git a/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/netfilter_ipv4/ipt_ECN.h b/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/netfilter_ipv4/ipt_ECN.h new file mode 100644 index 0000000..67c16fe --- /dev/null +++ b/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/netfilter_ipv4/ipt_ECN.h @@ -0,0 +1,34 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IPT_ECN_TARGET_H +#define _IPT_ECN_TARGET_H +#include + +#define IPT_ECN_IP_MASK (~IPT_DSCP_MASK) + +#define IPT_ECN_OP_SET_IP 0x01 +#define IPT_ECN_OP_SET_ECE 0x10 +#define IPT_ECN_OP_SET_CWR 0x20 + +#define IPT_ECN_OP_MASK 0xce + +struct ipt_ECN_info { + u_int8_t operation; + u_int8_t ip_ect; + union { + struct { + u_int8_t ece:1, cwr:1; + } tcp; + } proto; +}; + +#endif