[riot-notifications] [RIOT] kw2xrf: short address getter and iid option (#3914)

Thomas Eichinger notifications at github.com
Tue Sep 22 11:21:45 CEST 2015


> +        case NETOPT_IPV6_IID:
> +            if (max_len < sizeof(eui64_t)) {
> +                return -EOVERFLOW;
> +            }
> +            if (dev->option & KW2XRF_OPT_SRC_ADDR_LONG) {
> +                uint64_t addr = kw2xrf_get_addr_long(dev);
> +                ieee802154_get_iid(value, (uint8_t *)&addr, 8);
> +            }
> +            else {
> +                uint16_t addr = kw2xrf_get_addr_short(dev);
> +                ieee802154_get_iid(value, (uint8_t *)&addr, 2);
> +            }
> +            return sizeof(eui64_t);
> +
> +
> +

Please remove extra newlines.

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


More information about the notifications mailing list