From 34844da8f53ec80b34ad094f2fca2519a7079ec2 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 1 May 2013 00:56:35 +0200 Subject: Introduce a new revision for the set match with the counters support The revision add the support of matching the packet/byte counters if the set was defined with the extension. Also, a new flag is introduced to suppress updating the packet/byte counters if required. Signed-off-by: Jozsef Kadlecsik --- include/linux/netfilter/xt_set.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/linux/netfilter/xt_set.h') diff --git a/include/linux/netfilter/xt_set.h b/include/linux/netfilter/xt_set.h index e3a9978f..964d3d42 100644 --- a/include/linux/netfilter/xt_set.h +++ b/include/linux/netfilter/xt_set.h @@ -62,4 +62,13 @@ struct xt_set_info_target_v2 { __u32 timeout; }; +/* Revision 3 match */ + +struct xt_set_info_match_v3 { + struct xt_set_info match_set; + struct ip_set_counter_match packets; + struct ip_set_counter_match bytes; + __u32 flags; +}; + #endif /*_XT_SET_H*/ -- cgit v1.2.3