mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
94d0ec58e6
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
36 lines
653 B
C
36 lines
653 B
C
#ifndef _XT_STATISTIC_H
|
|
#define _XT_STATISTIC_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum xt_statistic_mode {
|
|
XT_STATISTIC_MODE_RANDOM,
|
|
XT_STATISTIC_MODE_NTH,
|
|
__XT_STATISTIC_MODE_MAX
|
|
};
|
|
#define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
|
|
|
|
enum xt_statistic_flags {
|
|
XT_STATISTIC_INVERT = 0x1,
|
|
};
|
|
#define XT_STATISTIC_MASK 0x1
|
|
|
|
struct xt_statistic_priv;
|
|
|
|
struct xt_statistic_info {
|
|
__u16 mode;
|
|
__u16 flags;
|
|
union {
|
|
struct {
|
|
__u32 probability;
|
|
} random;
|
|
struct {
|
|
__u32 every;
|
|
__u32 packet;
|
|
__u32 count; /* unused */
|
|
} nth;
|
|
} u;
|
|
struct xt_statistic_priv *master __attribute__((aligned(8)));
|
|
};
|
|
|
|
#endif /* _XT_STATISTIC_H */
|