[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: Add IA_NA support to the DHCPv6 client (#16228)

Martine Lenders notifications at github.com
Tue Jul 27 19:44:51 CEST 2021


@miri64 commented on this pull request.



> @@ -828,6 +1055,16 @@ static void _request_renew_rebind(uint8_t type)
                     mrd = valid_until;
                 }
             }
+            if (IS_USED(MODULE_GNRC_DHCPV6_CLIENT_IA_NA)) {
+                /* calculate MRD from addr_leases */
+                for (unsigned i = 0; i < CONFIG_DHCPV6_CLIENT_ADDR_LEASE_MAX; i++) {
+                    const addr_lease_t *lease = &addr_leases[i];
+                    uint32_t valid_until = lease->valid_until / MS_PER_SEC;

With #16668 and #16679 some clarity about the time units should be in the current code now. I think it makes more sense to borrow from that ;-).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16228#discussion_r677668371
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210727/e2b14fc5/attachment.htm>


More information about the notifications mailing list