From: Steven Barth Date: Fri, 8 Aug 2014 05:30:34 +0000 (+0200) Subject: Add host-entries for all IPv6 addresses X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=commitdiff_plain;h=e59238f32a47616091d8c78acb317d7b4023745f Add host-entries for all IPv6 addresses --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 8f0307e..90dcaf5 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -269,7 +269,7 @@ void dhcpv6_write_statefile(void) inet_ntop(AF_INET6, &addr, ipbuf, sizeof(ipbuf) - 1); - if (c->length == 128 && c->hostname && i == 0) { + if (c->length == 128 && c->hostname) { fputs(ipbuf, fp); char b[256];