1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _XT_CONNLIMIT_H
3 #define _XT_CONNLIMIT_H
4 
5 #include <linux/types.h>
6 #include <linux/netfilter.h>
7 
8 struct xt_connlimit_data;
9 
10 enum {
11 	XT_CONNLIMIT_INVERT = 1 << 0,
12 	XT_CONNLIMIT_DADDR  = 1 << 1,
13 };
14 
15 struct xt_connlimit_info {
16 	union {
17 		union nf_inet_addr mask;
18 #ifndef __KERNEL__
19 		union {
20 			__be32 v4_mask;
21 			__be32 v6_mask[4];
22 		};
23 #endif
24 	};
25 	unsigned int limit;
26 	/* revision 1 */
27 	__u32 flags;
28 
29 	/* Used internally by the kernel */
30 	struct nf_conncount_data *data __attribute__((aligned(8)));
31 };
32 
33 #endif /* _XT_CONNLIMIT_H */
34