firewall3: fix left shift on 64 bit systems in fw3_bitlen2netmask
[project/firewall3.git] / options.h
index 0a2fa7f..8489b8b 100644 (file)
--- a/options.h
+++ b/options.h
@@ -175,7 +175,6 @@ struct fw3_address
        bool invert;
        bool resolved;
        enum fw3_family family;
-       int mask;
        union {
                struct in_addr v4;
                struct in6_addr v6;
@@ -185,7 +184,7 @@ struct fw3_address
                struct in_addr v4;
                struct in6_addr v6;
                struct ether_addr mac;
-       } address2;
+       } mask;
 };
 
 struct fw3_mac
@@ -315,6 +314,8 @@ struct fw3_zone
        bool custom_chains;
 
        uint32_t flags[2];
+
+       struct list_head old_addrs;
 };
 
 struct fw3_rule
@@ -563,6 +564,6 @@ bool fw3_parse_blob_options(void *s, const struct fw3_option *opts,
                        struct blob_attr *a);
 
 const char * fw3_address_to_string(struct fw3_address *address,
-                                   bool allow_invert);
+                                   bool allow_invert, bool as_cidr);
 
 #endif