[riot-notifications] [RIOT] ng_ndp: cache determined next-hop in FIB (#3148)

BytesGalore notifications at github.com
Wed Jun 3 09:10:12 CEST 2015


> @@ -370,11 +370,25 @@ kernel_pid_t ng_ndp_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
>              (ng_ipv6_netif_addr_get(prefix)->flags &
>               NG_IPV6_NETIF_ADDR_FLAGS_NDP_ON_LINK)) {
>              next_hop_ip = dst;
> +#ifdef MODULE_FIB
> +            /* We don't care if FIB is full, this is just for efficiency
> +             * for later sends */
> +            fib_add_entry(iface, (uint8_t *)dst, sizeof(ng_ipv6_addr_t), 0,
> +                          (uint8_t *)next_hop_ip, sizeof(ng_ipv6_addr_t), 0,
> +                          UINT32_MAX);

please change to `FIB_LIFETIME_NO_EXPIRE` (same below)

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3148/files#r31598458
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150603/3d13633e/attachment.html>


More information about the notifications mailing list