projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3e3bb
)
main: fix missing parameter while iterating neighbors
author
Steven Barth
<steven@midlink.org>
Tue, 7 Jul 2015 14:04:05 +0000
(16:04 +0200)
committer
Steven Barth
<steven@midlink.org>
Tue, 7 Jul 2015 14:04:05 +0000
(16:04 +0200)
src/odhcpd.c
patch
|
blob
|
history
diff --git
a/src/odhcpd.c
b/src/odhcpd.c
index 3fb3009e56e5a14b12731b88ac324ab5b85f554d..93740529454a9379b8f120738412d4da9f1a7006 100644
(file)
--- a/
src/odhcpd.c
+++ b/
src/odhcpd.c
@@
-234,9
+234,9
@@
int odhcpd_iterate_interface_neighbors(const struct interface *iface,
size_t alen = NLMSG_PAYLOAD(nhm, sizeof(*ndm));
while (RTA_OK(rta, alen)) {
- if (rta->rta_type == NDA_DST
) {
- // TODO
- cb_neigh(
NULL
, iface, data);
+ if (rta->rta_type == NDA_DST
&&
+ RTA_PAYLOAD(rta) == sizeof(struct in6_addr)) {
+ cb_neigh(
RTA_DATA(rta)
, iface, data);
break;
} else {
rta = RTA_NEXT(rta, alen);