dhcpcd
dhcpcd copied to clipboard
print the valid_lft and preferred_lft RA gave us
It would be desirable to print the valid_lft and preferred_lft RA gave us in the log e.g.
enp4s0: ADV 2001:14ba:a051:8200::/56 from fe80::bb (0)
enp4s0: REPLY6 received from fe80::bb
enp4s0: renew in 900, rebind in 1440, expire in 1800 seconds
enp4s0: preferred_lft 1440 seconds, valid_lft 1800 seconds
The address lifetimes are logged when debugging is enabled. https://github.com/NetworkConfiguration/dhcpcd/blob/master/src/ipv6.c#L777
Is this not sufficient?
I would print this by standard, not just when debuging is enabled.
PS: I assume that you meant this:
br0: pltime 1800 seconds, vltime 1800 seconds
Is this what RA gave us or what we configured for br0?