diff options
-rw-r--r-- | config.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -307,7 +307,7 @@ config_init_rules(void) } static unsigned int -lookup_global_integer(const char *name, unsigned int default_value) +lookup_uint(const char *name, unsigned int default_value) { const char *value = uci_lookup_option_string( uci_ctx, globals, name); @@ -329,12 +329,14 @@ config_init_globals(void) uci_ctx, globals, "ula_prefix"); interface_ip_set_ula_prefix(ula_prefix); - unsigned int priority_addr = lookup_global_integer( - "priority_addr", IPRULE_PRIORITY_ADDR); + unsigned int priority_addr = lookup_uint( + globals, "priority_addr", + IPRULE_PRIORITY_ADDR); interface_ip_set_addr_priority(priority_addr); - unsigned int priority_addr_mask = lookup_global_integer( - "priority_addr_mask", IPRULE_PRIORITY_ADDR_MASK); + unsigned int priority_addr_mask = lookup_uint( + globals, "priority_addr_mask", + IPRULE_PRIORITY_ADDR_MASK); interface_ip_set_addr_priority_mask(priority_addr_mask); } |