[riot-notifications] [RIOT] Refactor 6LoWPAN module (#133)

Oleg Hahm notifications at github.com
Wed Aug 14 17:26:55 CEST 2013


> +                    uint16_t addr2, uint16_t addr3, uint16_t addr4,
> +                    uint16_t addr5, uint16_t addr6, uint16_t addr7)
> +{
> +    out->uint16[0] = HTONS(addr0);
> +    out->uint16[1] = HTONS(addr1);
> +    out->uint16[2] = HTONS(addr2);
> +    out->uint16[3] = HTONS(addr3);
> +    out->uint16[4] = HTONS(addr4);
> +    out->uint16[5] = HTONS(addr5);
> +    out->uint16[6] = HTONS(addr6);
> +    out->uint16[7] = HTONS(addr7);
> +}
> +
> +int ipv6_addr_is_link_local(const ipv6_addr_t *addr)
> +{
> +    return addr->uint8[0] == 0xfe && addr->uint8[0] == 0x80;

Right - was just a suggestion to improve the readability.

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


More information about the notifications mailing list