[OpenWrt-Devel] odhcpd: [PATCH 3/3] Respect interface "ignore" settings as documented.
Karl Palsson
karlp at tweak.net.au
Thu Sep 22 13:32:19 EDT 2016
From: Karl Palsson <karlp at etactica.com>
The "ignore" option is correctly loaded. Actually observe it as
documented.
Signed-off-by: Karl Palsson <karlp at etactica.com>
---
src/config.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/config.c b/src/config.c
index ef51112..a1b6ab7 100644
--- a/src/config.c
+++ b/src/config.c
@@ -695,10 +695,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);
}
--
2.4.11
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list