zones: add interface/subnet bound LOG rules
[project/firewall3.git] / options.h
index 84bafed..08fecf6 100644 (file)
--- a/options.h
+++ b/options.h
@@ -289,6 +289,8 @@ struct fw3_defaults
 
        bool custom_chains;
        bool auto_helper;
+       bool flow_offloading;
+       bool flow_offloading_hw;
 
        bool disable_ipv6;
 
@@ -324,7 +326,7 @@ struct fw3_zone
 
        struct list_head cthelpers;
 
-       bool log;
+       int log;
        struct fw3_limit log_limit;
 
        bool custom_chains;
@@ -495,6 +497,9 @@ struct fw3_ipset
 
        const char *external;
 
+       struct list_head entries;
+       const char *loadfile;
+
        uint32_t flags[2];
 };
 
@@ -521,10 +526,16 @@ struct fw3_cthelper
        const char *module;
        const char *description;
        enum fw3_family family;
-       struct fw3_protocol proto;
+       struct list_head proto;
        struct fw3_port port;
 };
 
+struct fw3_setentry
+{
+       struct list_head list;
+       const char *value;
+};
+
 struct fw3_state
 {
        struct uci_context *uci;
@@ -593,6 +604,7 @@ bool fw3_parse_mark(void *ptr, const char *val, bool is_list);
 bool fw3_parse_setmatch(void *ptr, const char *val, bool is_list);
 bool fw3_parse_direction(void *ptr, const char *val, bool is_list);
 bool fw3_parse_cthelper(void *ptr, const char *val, bool is_list);
+bool fw3_parse_setentry(void *ptr, const char *val, bool is_list);
 
 bool fw3_parse_options(void *s, const struct fw3_option *opts,
                        struct uci_section *section);