mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Linus Torvalds](/assets/img/avatar_default.png)
* 'header-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (50 commits) x86: headers cleanup - setup.h emu101k1.h: fix duplicate include of <linux/types.h> compiler-gcc4: conditionalize #error on __KERNEL__ remove __KERNEL_STRICT_NAMES make netfilter use strict integer types make drm headers use strict integer types make MTD headers use strict integer types make most exported headers use strict integer types make exported headers use strict posix types unconditionally include asm/types.h from linux/types.h make linux/types.h as assembly safe Neither asm/types.h nor linux/types.h is required for arch/ia64/include/asm/fpu.h headers_check fix cleanup: linux/reiserfs_fs.h headers_check fix cleanup: linux/nubus.h headers_check fix cleanup: linux/coda_psdev.h headers_check fix: x86, setup.h headers_check fix: x86, prctl.h headers_check fix: linux/reinserfs_fs.h headers_check fix: linux/socket.h headers_check fix: linux/nubus.h ... Manually fix trivial conflicts in: include/linux/netfilter/xt_limit.h include/linux/netfilter/xt_statistic.h
24 lines
610 B
C
24 lines
610 B
C
#ifndef _XT_RATE_H
|
|
#define _XT_RATE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* timings are in milliseconds. */
|
|
#define XT_LIMIT_SCALE 10000
|
|
|
|
struct xt_limit_priv;
|
|
|
|
/* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
|
|
seconds, or one every 59 hours. */
|
|
struct xt_rateinfo {
|
|
__u32 avg; /* Average secs between packets * scale */
|
|
__u32 burst; /* Period multiplier for upper limit. */
|
|
|
|
/* Used internally by the kernel */
|
|
unsigned long prev; /* moved to xt_limit_priv */
|
|
__u32 credit; /* moved to xt_limit_priv */
|
|
__u32 credit_cap, cost;
|
|
|
|
struct xt_limit_priv *master;
|
|
};
|
|
#endif /*_XT_RATE_H*/
|