[riot-notifications] [RIOT] gnrc_sixlowpan_nd: initial import of host behavior of 6LoWPAN-ND (#3748)

Oleg Hahm notifications at github.com
Tue Sep 8 18:19:44 CEST 2015


> +    }
> +
> +    /* address resolution of next_hop: https://tools.ietf.org/html/rfc6775#section-5.7 */
> +    if (ipv6_addr_is_link_local(next_hop)) {
> +        kernel_pid_t ifs[GNRC_NETIF_NUMOF];
> +        size_t ifnum = gnrc_netif_get(ifs);
> +        /* we don't need address resolution, the EUI-64 is in next_hop's IID */
> +        *l2addr_len = sizeof(eui64_t);
> +        memcpy(l2addr, &next_hop->u8[8], sizeof(eui64_t));
> +        _revert_iid(l2addr);
> +#if (GNRC_NETIF_NUMOF == 1)
> +        (void)ifnum;
> +        return ifs[0];
> +#else
> +        for (unsigned i = 0; i < ifnum; i++) {
> +            iface = gnrc_ipv6_netif_get(ifs[i]);

`iface` is of type `kernel_pid_t` while `gnrc_ipv6_netif_get()` returns a pointer to `gnrc_ipv6_netif_t`.

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


More information about the notifications mailing list