[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_nib: consider fib when deciding if host on-link (#16557)

benpicco notifications at github.com
Sat Aug 7 14:15:26 CEST 2021


@benpicco commented on this pull request.



>              (entry->pfx_len > best_pfx)) {
+
+            /* prefix is on-link */
+            if ((entry->mode & _PL) && (entry->flags & _PFX_ON_LINK)) {
+                on_link = true;
+            /* prefix is behind another hop */
+            } else if (entry->mode & _FT) {
+                on_link = false;
+            } else {
+                continue;
+            }
+
             *iface = _nib_onl_get_if(entry->next_hop);

Huh, if the WPAN got a prefix from the border router, all addresses with that prefix should be on-link too, no?

-- 
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/16557#discussion_r684625930
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210807/c2478e2e/attachment.htm>


More information about the notifications mailing list