1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

fix IPv6 link local address determination

This commit is contained in:
Martin 2013-09-23 14:56:15 +02:00
parent dea48c84c1
commit adf1e7003d

View File

@ -543,7 +543,7 @@ void ipv6_addr_init(ipv6_addr_t *out, uint16_t addr0, uint16_t addr1,
int ipv6_addr_is_link_local(const ipv6_addr_t *addr)
{
return (addr->uint8[0] == 0xfe && addr->uint8[0] == 0x80);
return (addr->uint16[0] == HTONS(0xfe80));
}
int ipv6_addr_is_unique_local_unicast(const ipv6_addr_t *addr)