diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-01-09 15:05:59 -0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-01-09 15:05:59 -0800 |
commit | d4dbdb67cac22f22ceb70055090b492b3010bd13 (patch) | |
tree | 62b5afc30427a0462c3aca90d26ed725a68a30ad /sysroot/usr/include/linux/netfilter/xt_limit.h | |
parent | 4c0f9817f605ad9f6da98b46aa1530f6af97de1b (diff) | |
download | i686-linux-glibc2.7-4.4.3-d4dbdb67cac22f22ceb70055090b492b3010bd13.tar.gz |
Relocate SDK toolchain
Change-Id: I4aa13a365108300e29cf3de3e5c463c3b13e10a8
Diffstat (limited to 'sysroot/usr/include/linux/netfilter/xt_limit.h')
-rw-r--r-- | sysroot/usr/include/linux/netfilter/xt_limit.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sysroot/usr/include/linux/netfilter/xt_limit.h b/sysroot/usr/include/linux/netfilter/xt_limit.h new file mode 100644 index 0000000..b3ce653 --- /dev/null +++ b/sysroot/usr/include/linux/netfilter/xt_limit.h @@ -0,0 +1,21 @@ +#ifndef _XT_RATE_H +#define _XT_RATE_H + +/* timings are in milliseconds. */ +#define XT_LIMIT_SCALE 10000 + +/* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 + seconds, or one every 59 hours. */ +struct xt_rateinfo { + u_int32_t avg; /* Average secs between packets * scale */ + u_int32_t burst; /* Period multiplier for upper limit. */ + + /* Used internally by the kernel */ + unsigned long prev; + u_int32_t credit; + u_int32_t credit_cap, cost; + + /* Ugly, ugly fucker. */ + struct xt_rateinfo *master; +}; +#endif /*_XT_RATE_H*/ |