Imported Upstream version 1.4.14
[platform/upstream/iptables.git] / include / linux / netfilter / xt_connlimit.h
1 #ifndef _XT_CONNLIMIT_H
2 #define _XT_CONNLIMIT_H
3
4 #include <linux/types.h>
5
6 struct xt_connlimit_data;
7
8 enum {
9         XT_CONNLIMIT_INVERT = 1 << 0,
10         XT_CONNLIMIT_DADDR  = 1 << 1,
11 };
12
13 struct xt_connlimit_info {
14         union {
15                 union nf_inet_addr mask;
16                 union {
17                         __be32 v4_mask;
18                         __be32 v6_mask[4];
19                 };
20         };
21         unsigned int limit;
22         union {
23                 /* revision 0 */
24                 unsigned int inverse;
25
26                 /* revision 1 */
27                 __u32 flags;
28         };
29
30         /* Used internally by the kernel */
31         struct xt_connlimit_data *data __attribute__((aligned(8)));
32 };
33
34 #endif /* _XT_CONNLIMIT_H */