diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-11-25 17:42:00 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-11-25 17:49:25 +0100 |
commit | 92e205df59af022e0cfe6e0243b3ef572fc38f5c (patch) | |
tree | cac71223248020f62ba06f6a6d66c0f3c3d2ab73 | |
parent | 057342245c79fbec788ac9873a85de77d0c0a5b8 (diff) |
dhcpv6: fix compile issues when CER-ID extension is enabled
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | src/dhcpv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 3edde95..462a85e 100644 --- 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_addresses(0, true, &addrs); + ssize_t len = netlink_get_interface_addrs(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); } |