[riot-notifications] [RIOT-OS/RIOT] gnrc/nib: consolidate prefix removal code in _nib_offl_remove_prefix() (#16729)

benpicco notifications at github.com
Tue Aug 24 16:07:02 CEST 2021


@benpicco commented on this pull request.



> +            if (ipv6_addr_match_prefix(&netif->ipv6.addrs[i],
+                                       &pfx->pfx) >= pfx->pfx_len) {
+                gnrc_netif_ipv6_addr_remove_internal(netif,
+                                                     &netif->ipv6.addrs[i]);
+            }

So do you suggest a second, nested loop to check if there is another prefix that is a stronger match?

-- 
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/16729#discussion_r694885675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210824/2924cfd9/attachment.htm>


More information about the notifications mailing list