Respect interface "ignore" settings as documented.
authorKarl Palsson <karlp@etactica.com>
Wed, 28 Sep 2016 16:32:41 +0000 (16:32 +0000)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Nov 2016 11:13:51 +0000 (12:13 +0100)
The "ignore" option is correctly loaded.  Actually observe it as
documented.

Signed-off-by: Karl Palsson <karlp@etactica.com>
src/config.c

index 44b049d409e313de90842b6b87bf8accab8a5864..8b0d9458287d6c951c500fd50f62a1450d2ef317 100644 (file)
@@ -696,10 +696,10 @@ void odhcpd_reload(void)
                                i->ndp = (master && master->ndp == RELAYD_RELAY) ?
                                                RELAYD_RELAY : RELAYD_DISABLED;
 
-                       setup_router_interface(i, true);
-                       setup_dhcpv6_interface(i, true);
-                       setup_ndp_interface(i, true);
-                       setup_dhcpv4_interface(i, true);
+                       setup_router_interface(i, !i->ignore);
+                       setup_dhcpv6_interface(i, !i->ignore);
+                       setup_ndp_interface(i, !i->ignore);
+                       setup_dhcpv4_interface(i, !i->ignore);
                } else {
                        close_interface(i);
                }