projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ndp: fix wrong interface name in syslog message
[project/odhcpd.git]
/
src
/
ndp.c
diff --git
a/src/ndp.c
b/src/ndp.c
index
3b472de
..
1e3714e
100644
(file)
--- a/
src/ndp.c
+++ b/
src/ndp.c
@@
-362,8
+362,6
@@
static void check_addr_updates(struct interface *iface)
qsort(addr, len, sizeof(*addr), prefixcmp);
for (int i = 0; i < len; ++i) {
qsort(addr, len, sizeof(*addr), prefixcmp);
for (int i = 0; i < len; ++i) {
- addr[i].addr.s6_addr32[3] = 0;
-
if (addr[i].preferred < UINT32_MAX - now)
addr[i].preferred += now;
if (addr[i].preferred < UINT32_MAX - now)
addr[i].preferred += now;
@@
-409,10
+407,10
@@
static void setup_addr_for_relaying(struct in6_addr *addr, struct interface *ifa
if (odhcpd_setup_proxy_neigh(addr, c, add))
syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s%%%s",
if (odhcpd_setup_proxy_neigh(addr, c, add))
syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s%%%s",
- add ? "add" : "delete", ipbuf,
iface
->ifname);
+ add ? "add" : "delete", ipbuf,
c
->ifname);
else
syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s",
else
syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s",
- add ? "Added" : "Deleted", ipbuf,
iface
->ifname);
+ add ? "Added" : "Deleted", ipbuf,
c
->ifname);
}
}
}
}