]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp6: fix prefix delegations from spamming syslog
authorRoy Marples <roy@marples.name>
Fri, 8 Dec 2017 10:29:49 +0000 (10:29 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Dec 2017 10:29:49 +0000 (10:29 +0000)
This test was broken because pdp.vltime was already converted from
network order to host order.

src/dhcp6.c

index a2252e38b3e43eeed52bb8526e350c4f0d639840..1aaa0306c2235dbd0de27af37776c9e6b08c739f 100644 (file)
@@ -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;
                }