From 41a74cba1bec349d1e1c5be4442e7fddb2d4adf7 Mon Sep 17 00:00:00 2001 From: Dainis Jonitis Date: Fri, 12 Apr 2019 13:46:43 +0300 Subject: config: remove 'ignore' config option 1. Remove 'ignore' config option for interface. Interface is still used if any of 'ra', 'ndp', 'dhcpv4' or 'dhcpv6' options are different from default 'disabled' mode. In config_parse_interface() update runtime ignore value according to all mode values. 2. Reset ignore, ra, ndp, dhcpv4 and dhcpv6 values in set_interface_defaults(). Otherwise if option is deleted from config file and config is reloaded, it will use the value from old config, potentiallly not turning services off. 3. Do not use implicit checks that 0 server mode means MODE_DISABLED. 4. Simplify code of all service setup functions if passed enabled = true argument, but service mode is disabled. Signed-off-by: Dainis Jonitis Signed-off-by: Hans Dedecker --- README | 3 --- 1 file changed, 3 deletions(-) (limited to 'README') diff --git a/README b/README index 49e1c51..a379c4c 100644 --- a/README +++ b/README @@ -73,9 +73,6 @@ Option Type Default Description interface string logical OpenWrt interface ifname string physical network interface networkid string same as ifname compat. alias for ifname -ignore bool 0 do not serve this interface - unless overridden by ra, ndp, - dhcpv4 or dhcpv6 options master bool 0 is a master interface for relaying -- cgit v1.2.3