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

Merge pull request #4968 from immesys/fix-ndp

ndp: fix neighbor advertisement byte ordering
This commit is contained in:
Martine Lenders 2016-03-06 21:18:28 +01:00
commit c72bae6dba

View File

@ -181,7 +181,7 @@ void gnrc_ndp_nbr_sol_handle(kernel_pid_t iface, gnrc_pktsnip_t *pkt,
/* see https://tools.ietf.org/html/rfc6775#section-6.5.2 */ /* see https://tools.ietf.org/html/rfc6775#section-6.5.2 */
eui64_t iid; eui64_t iid;
ieee802154_get_iid(&iid, ar_opt->eui64.uint8, sizeof(eui64_t)); ieee802154_get_iid(&iid, ar_opt->eui64.uint8, sizeof(eui64_t));
ipv6_addr_set_iid(&nbr_adv_dst, iid.uint64.u64); ipv6_addr_set_aiid(&nbr_adv_dst, iid.uint8);
ipv6_addr_set_link_local_prefix(&nbr_adv_dst); ipv6_addr_set_link_local_prefix(&nbr_adv_dst);
} }
} }