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