2007-07-15 03:47:26 +00:00
|
|
|
#ifndef _XT_CONNLIMIT_H
|
|
|
|
#define _XT_CONNLIMIT_H
|
|
|
|
|
2011-01-20 16:50:17 +00:00
|
|
|
#include <linux/types.h>
|
2011-08-24 18:45:42 +00:00
|
|
|
#include <linux/netfilter.h>
|
2011-01-20 16:50:17 +00:00
|
|
|
|
2007-07-15 03:47:26 +00:00
|
|
|
struct xt_connlimit_data;
|
|
|
|
|
2011-01-18 16:32:40 +00:00
|
|
|
enum {
|
|
|
|
XT_CONNLIMIT_INVERT = 1 << 0,
|
|
|
|
XT_CONNLIMIT_DADDR = 1 << 1,
|
|
|
|
};
|
|
|
|
|
2007-07-15 03:47:26 +00:00
|
|
|
struct xt_connlimit_info {
|
|
|
|
union {
|
2007-12-18 06:44:47 +00:00
|
|
|
union nf_inet_addr mask;
|
|
|
|
#ifndef __KERNEL__
|
|
|
|
union {
|
|
|
|
__be32 v4_mask;
|
|
|
|
__be32 v6_mask[4];
|
|
|
|
};
|
|
|
|
#endif
|
2007-07-15 03:47:26 +00:00
|
|
|
};
|
2011-01-20 13:01:12 +00:00
|
|
|
unsigned int limit;
|
2012-05-19 04:39:01 +00:00
|
|
|
/* revision 1 */
|
|
|
|
__u32 flags;
|
2007-07-15 03:47:26 +00:00
|
|
|
|
2008-01-15 07:33:14 +00:00
|
|
|
/* Used internally by the kernel */
|
2007-07-15 03:47:26 +00:00
|
|
|
struct xt_connlimit_data *data __attribute__((aligned(8)));
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _XT_CONNLIMIT_H */
|