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

Martine Lenders notifications at github.com
Sat Aug 7 14:22:33 CEST 2021


@miri64 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);

Ah I just remembered: No the prefix should not be advertised as on-link in the first place: https://datatracker.ietf.org/doc/html/rfc6775#section-5.4

-- 
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_r684626659
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210807/963faae4/attachment-0001.htm>


More information about the notifications mailing list