4 #include <linux/types.h>
5 #include <linux/netfilter/ipset/ip_set.h>
7 /* Revision 0 interface: backward compatible with netfilter/iptables */
10 * Option flags for kernel operations (xt_set_info_v0)
12 #define IPSET_SRC 0x01 /* Source match/add */
13 #define IPSET_DST 0x02 /* Destination match/add */
14 #define IPSET_MATCH_INV 0x04 /* Inverse matching */
16 struct xt_set_info_v0
{
19 __u32 flags
[IPSET_DIM_MAX
+ 1];
21 __u32 __flags
[IPSET_DIM_MAX
];
28 /* match and target infos */
29 struct xt_set_info_match_v0
{
30 struct xt_set_info_v0 match_set
;
33 struct xt_set_info_target_v0
{
34 struct xt_set_info_v0 add_set
;
35 struct xt_set_info_v0 del_set
;
38 /* Revision 1 match and target */
46 /* match and target infos */
47 struct xt_set_info_match_v1
{
48 struct xt_set_info match_set
;
51 struct xt_set_info_target_v1
{
52 struct xt_set_info add_set
;
53 struct xt_set_info del_set
;
56 /* Revision 2 target */
58 struct xt_set_info_target_v2
{
59 struct xt_set_info add_set
;
60 struct xt_set_info del_set
;
65 /* Revision 3 match */
67 struct xt_set_info_match_v3
{
68 struct xt_set_info match_set
;
69 struct ip_set_counter_match0 packets
;
70 struct ip_set_counter_match0 bytes
;
74 /* Revision 3 target */
76 struct xt_set_info_target_v3
{
77 struct xt_set_info add_set
;
78 struct xt_set_info del_set
;
79 struct xt_set_info map_set
;
84 /* Revision 4 match */
86 struct xt_set_info_match_v4
{
87 struct xt_set_info match_set
;
88 struct ip_set_counter_match packets
;
89 struct ip_set_counter_match bytes
;