dhcpv6-ia: fix preferred and valid lifetimes in ubus ipv6leases
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 2 Apr 2020 19:26:57 +0000 (21:26 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 4 Apr 2020 18:53:43 +0000 (20:53 +0200)
commitf61964c66be050716089d31f13688c1ab382f0b7
tree057fbd4fa9dd0de35f4f029f9b7c747a4e0d7c8b
parentfbf14aee4ad321ac3702b60ff8193d82812c2270
dhcpv6-ia: fix preferred and valid lifetimes in ubus ipv6leases

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>
src/dhcpv6-ia.c