From: Hans Dedecker Date: Mon, 23 Jan 2017 15:49:15 +0000 (+0100) Subject: ndp: code cleanup X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=commitdiff_plain;h=048558077d1bcd4c4e5a7f45b020ae3a879965e4;ds=inline ndp: code cleanup ia_reconf is only set but nowhere used; so let's remove it ... Signed-off-by: Hans Dedecker --- diff --git a/src/ndp.c b/src/ndp.c index d2fbe07..30ebaf4 100644 --- a/src/ndp.c +++ b/src/ndp.c @@ -479,9 +479,6 @@ static void handle_rtnetlink(_unused void *addr, void *data, size_t len, if (is_addr) { check_updates(iface); - if (iface->dhcpv6 == RELAYD_SERVER) - iface->ia_reconf = true; - if (iface->ndp == RELAYD_RELAY && iface->master) { // Replay address changes on all slave interfaces nh->nlmsg_flags = NLM_F_REQUEST; diff --git a/src/odhcpd.h b/src/odhcpd.h index cbeaaf8..043360b 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -121,7 +121,6 @@ struct interface { struct list_head ia_assignments; struct odhcpd_ipaddr ia_addr[RELAYD_MAX_ADDRS]; size_t ia_addr_len; - bool ia_reconf; // DHCPv4 struct odhcpd_event dhcpv6_event;