From: Roy Marples Date: Fri, 8 Dec 2017 10:29:49 +0000 (+0000) Subject: dhcp6: fix prefix delegations from spamming syslog X-Git-Tag: v7.0.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47bd7ce4826f85b725c8e8912e838c436fd9ad49;p=thirdparty%2Fdhcpcd.git dhcp6: fix prefix delegations from spamming syslog This test was broken because pdp.vltime was already converted from network order to host order. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index a2252e38..1aaa0306 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -2051,7 +2051,7 @@ dhcp6_findpd(struct interface *ifp, const uint8_t *iaid, a->flags &= ~(IPV6_AF_STALE | IPV6_AF_EXTENDED | IPV6_AF_REQUEST); - if (a->prefix_vltime != ntohl(pdp.vltime)) + if (a->prefix_vltime != pdp.vltime) a->flags |= IPV6_AF_NEW; }