[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_nib: fix preparation of delayed NA (#10985)

Cenk Gündoğan notifications at github.com
Tue Feb 12 20:47:16 CET 2019


cgundogan commented on this pull request.



>          return;
     }
-    nce = _nib_onl_get(tgt, netif->pid);
-    if ((nce != NULL) && (nce->mode & _NC)) {
-        /* usually this should be the case, but when NCE is full, just
-         * ignore the sending. Other nodes in this anycast group are
-         * then preferred */
-        _evtimer_add(nce, GNRC_IPV6_NIB_SND_NA, &nce->snd_na,
-                     random_uint32_range(0, NDP_MAX_ANYCAST_MS_DELAY));
+    pkt = gnrc_ipv6_hdr_build(payload, NULL, &ipv6_hdr->src);
+    if ((payload = _check_release_pkt(pkt, payload)) == NULL) {
+        return;
+    }
+    ((ipv6_hdr_t *)payload->data)->hl = 255;

>Sure, but since I use this magic number also in `gnrc_ndp_*_send()` I'd rather do this in a follow-up, so I don't need to touch these functions in a PR that needs to be backported.

:+1:

-- 
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/10985#discussion_r256118633
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190212/ae8f5d8f/attachment.html>


More information about the notifications mailing list