From 1082a93a42c6d40b384426d1f7534169299b2305 Mon Sep 17 00:00:00 2001 From: Michael Andersen Date: Sat, 5 Mar 2016 11:25:20 -0800 Subject: [PATCH] ndp: fix neighbor advertisement byte ordering --- sys/net/gnrc/network_layer/ndp/gnrc_ndp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c index 92a23e88e3..893570ece1 100644 --- a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c +++ b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c @@ -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 */ eui64_t iid; 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); } }