Since commit
6db312a698e920ff61505ef1f42469880829774d the preferred and
valid lifetimes of the addresses/prefixes is based on the configured leasetime;
as a result the displayed preferred and valid lifetimes need to be
calculated based on the assignment lifetime as this is set to the lowest
valid lifetime of the addresses/prefixes.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
addr.s6_addr32[2] = addr.s6_addr32[3] = 0;
}
+ if (pref > (uint32_t)c->valid_until)
+ pref = c->valid_until;
+
if (pref != UINT32_MAX)
pref -= now;
+ if (valid > (uint32_t)c->valid_until)
+ valid = c->valid_until;
+
if (valid != UINT32_MAX)
valid -= now;