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:
0573422
)
dhcpv6: fix compile issues when CER-ID extension is enabled
author
Hans Dedecker
<dedeckeh@gmail.com>
Sat, 25 Nov 2017 16:42:00 +0000
(17:42 +0100)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Sat, 25 Nov 2017 16:49:25 +0000
(17:49 +0100)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index
3edde95
..
462a85e
100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-331,12
+331,12
@@
static void handle_client_request(void *addr, void *data, size_t len,
if (IN6_IS_ADDR_UNSPECIFIED(&cerid.addr)) {
struct odhcpd_ipaddr *addrs;
- ssize_t len =
odhcpd_get_interface_addresse
s(0, true, &addrs);
+ ssize_t len =
netlink_get_interface_addr
s(0, true, &addrs);
for (ssize_t i = 0; i < len; ++i)
if (IN6_IS_ADDR_UNSPECIFIED(&cerid.addr)
|| memcmp(&addrs[i].addr, &cerid.addr, sizeof(cerid.addr)) < 0)
- cerid.addr = addrs[i].addr;
+ cerid.addr = addrs[i].addr
.in6
;
free(addrs);
}