<p></p>
<p><b>@JKRhb</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16228#discussion_r685418346">sys/net/application_layer/dhcpv6/client.c</a>:</p>
<pre style='color:#555'>> +        if ((iaaddr != NULL)) {
+            uint32_t valid = byteorder_ntohl(iaaddr->valid);
+            uint32_t pref = byteorder_ntohl(iaaddr->pref);
+
+            lease->leased = 1U;
+            memcpy(&lease->addr, &iaaddr->addr, sizeof(ipv6_addr_t));
+            if (dhcpv6_client_add_addr(lease->parent.ia_id.info.netif,
+                                        &lease->addr)) {
+                DEBUG("IP ADDRESS successfully added!\n");
+                lease->pref_until = pref;
+                lease->valid_until = valid;
+
+                _set_event_timeout_sec(&deprecate_timeout, &deprecate_addrs,
+                                        pref);
+                _set_event_timeout_sec(&remove_timeout, &remove_addrs,
+                                        valid);
+            }
+        }
</pre>
<p>Refactored in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/RIOT-OS/RIOT/commit/2c81f7a247936c7b62f1f0d617d8a98fba03b0b4/hovercard" href="https://github.com/RIOT-OS/RIOT/commit/2c81f7a247936c7b62f1f0d617d8a98fba03b0b4"><tt>2c81f7a</tt></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16228#discussion_r685418346">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDEBNL4MUMKY3IKJNDT4ALSJANCNFSM4ZX5VNFA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYH53QTVKVZMVHBPEMLT4ALSJA5CNFSM4ZX5VNFKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFNAPD2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16228#discussion_r685418346",
"url": "https://github.com/RIOT-OS/RIOT/pull/16228#discussion_r685418346",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>