summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-04-28 09:58:54 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-04-28 10:19:24 +0200
commit2b3355f14e2030ce5af46ec946af496fadbd31cb (patch)
treedf31cb8aed5fcaa3462ed5b5a81e25c555a9c138
parent7dff5b40fa81949881f04abdaa9d51e8008e1246 (diff)
ndp: fix adding proxy neighbor entries
Proxy neighbor entries were not created for proxy enabled interfaces if the first interface was not enabled Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--src/ndp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 1e3714e..49aea1c 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -403,14 +403,14 @@ static void setup_addr_for_relaying(struct in6_addr *addr, struct interface *ifa
if (iface == c || (c->ndp != RELAYD_RELAY && !add))
continue;
- add = (c->ndp == RELAYD_RELAY ? add : false);
+ bool neigh_add = (c->ndp == RELAYD_RELAY ? add : false);
- if (odhcpd_setup_proxy_neigh(addr, c, add))
+ if (odhcpd_setup_proxy_neigh(addr, c, neigh_add))
syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s%%%s",
- add ? "add" : "delete", ipbuf, c->ifname);
+ neigh_add ? "add" : "delete", ipbuf, c->ifname);
else
syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s",
- add ? "Added" : "Deleted", ipbuf, c->ifname);
+ neigh_add ? "Added" : "Deleted", ipbuf, c->ifname);
}
}