X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fndp.c;h=49aea1cb5e0479d2dbc7cecf9ee724a8cafbc5a1;hp=97a471338ca843a71f6a126379b8071e93fbe5d1;hb=2b3355f14e2030ce5af46ec946af496fadbd31cb;hpb=bc6c3ace738fd4eb28c06be533f6bbc75d0587a5 diff --git a/src/ndp.c b/src/ndp.c index 97a4713..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, iface->ifname); + neigh_add ? "add" : "delete", ipbuf, c->ifname); else syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s", - add ? "Added" : "Deleted", ipbuf, iface->ifname); + neigh_add ? "Added" : "Deleted", ipbuf, c->ifname); } }