ndp: code cleanup
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 23 Jan 2017 15:49:15 +0000 (16:49 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 23 Jan 2017 15:51:30 +0000 (16:51 +0100)
ia_reconf is only set but nowhere used; so let's remove it ...

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/ndp.c
src/odhcpd.h

index d2fbe07fd515bb5bfd0846853eb06fc4afa5e4e7..30ebaf4b13456e028c25f250d02775b47c4161fc 100644 (file)
--- 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;
index cbeaaf82644f36c8ce6f51afa0a54d76d79514ac..043360b8ba44841fddaba7521e8406de12962b4c 100644 (file)
@@ -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;