[riot-notifications] [RIOT-OS/RIOT] gnrc/nib: only consider neighbor cache entries in _nib_onl_get() (#16671)

benpicco notifications at github.com
Thu Jul 22 12:10:08 CEST 2021


@benpicco commented on this pull request.



> @@ -221,8 +221,9 @@ int gnrc_ipv6_nib_get_next_hop_l2addr(const ipv6_addr_t *dst,
         unsigned iface = (node == NULL) ? 0 : _nib_onl_get_if(node);
 
         if ((node != NULL) || _on_link(dst, &iface)) {
-            DEBUG("nib: %s is on-link or in NC, start address resolution\n",
-                  ipv6_addr_to_str(addr_str, dst, sizeof(addr_str)));
+            DEBUG("nib: %s is %s, start address resolution\n",
+                  ipv6_addr_to_str(addr_str, dst, sizeof(addr_str)),
+                  node ? "in NC" : "on-link");

I just found it useful for debugging to know whether `_on_link()` returned true or if `node` was not NULL.

-- 
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/16671#discussion_r674666429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210722/bac7bedf/attachment.htm>


More information about the notifications mailing list