Mark fw3_address objects that got resolved by fw3_parse_network()
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 26 May 2013 15:19:39 +0000 (17:19 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 26 May 2013 15:19:50 +0000 (17:19 +0200)
options.c
options.h

index c5cfc9e..43025a8 100644 (file)
--- a/options.c
+++ b/options.c
@@ -342,6 +342,7 @@ fw3_parse_network(void *ptr, const char *val, bool is_list)
                        list_for_each_entry(addr, addr_list, list)
                        {
                                addr->invert = dev.invert;
                        list_for_each_entry(addr, addr_list, list)
                        {
                                addr->invert = dev.invert;
+                               addr->resolved = true;
 
                                if (!put_value(ptr, addr, sizeof(*addr), is_list))
                                        break;
 
                                if (!put_value(ptr, addr, sizeof(*addr), is_list))
                                        break;
index 004eeee..aeecef0 100644 (file)
--- a/options.h
+++ b/options.h
@@ -162,6 +162,7 @@ struct fw3_address
        bool set;
        bool range;
        bool invert;
        bool set;
        bool range;
        bool invert;
+       bool resolved;
        enum fw3_family family;
        int mask;
        union {
        enum fw3_family family;
        int mask;
        union {