[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: Refactor IA_NA implementation (#16724)

Jan Romann notifications at github.com
Thu Aug 12 01:05:20 CEST 2021

@JKRhb commented on this pull request.

>      """Check if the expected IA_NA address has been assigned"""
-    return IPv6Address(ia_na_addr) in IPv6Network("{}/64".format(IA_NA_ADDRESS_POOL_PREFIX))
+    result = IPv6Address(ia_na_addr) in IPv6Network(f"{IA_NA_ADDRESS_POOL_PREFIX}/64")
+    result &= check_prefix(ia_na_addr, global_pfx)

Oh, you are right, I somehow thought this was equivalent to `result = result and check_prefix(ia_na_addr, global_pfx)`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210811/0ecddf17/attachment-0001.htm>

More information about the notifications mailing list