diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-04-16 04:56:33 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-04-16 04:56:33 -0700 |
commit | 9841d729919cd19016525e2b6b1670ab52ad0b16 (patch) | |
tree | 704b7df8fc7ff9d59a15737e9932a0cd46a0848a /sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h | |
parent | b832c77812d4735e04acf368e0f2b7628fc4b242 (diff) | |
parent | 373d8e9f24e73a7a5507f2cb668b2b50ab8f27a3 (diff) | |
download | mipsel-linux-android-4.4.3-9841d729919cd19016525e2b6b1670ab52ad0b16.tar.gz |
Merge "Adding mipsel-linux-android- cross toolchain"android-sdk-adt_r20android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1tools_r20jb-releasejb-mr0-releasejb-devics-plus-aosp
Diffstat (limited to 'sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h')
-rw-r--r-- | sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h b/sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h new file mode 100644 index 0000000..adc1f41 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter_ipv4/ipt_hashlimit.h @@ -0,0 +1,45 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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_HASHLIMIT_H +#define _IPT_HASHLIMIT_H + +#define IPT_HASHLIMIT_SCALE 10000 + +struct ipt_hashlimit_htable; + +#define IPT_HASHLIMIT_HASH_DIP 0x0001 +#define IPT_HASHLIMIT_HASH_DPT 0x0002 +#define IPT_HASHLIMIT_HASH_SIP 0x0004 +#define IPT_HASHLIMIT_HASH_SPT 0x0008 + +struct hashlimit_cfg { + u_int32_t mode; + u_int32_t avg; + u_int32_t burst; + + u_int32_t size; + u_int32_t max; + u_int32_t gc_interval; + u_int32_t expire; +}; + +struct ipt_hashlimit_info { + char name [IFNAMSIZ]; + struct hashlimit_cfg cfg; + struct ipt_hashlimit_htable *hinfo; + + union { + void *ptr; + struct ipt_hashlimit_info *master; + } u; +}; +#endif |