Skip to content
Snippets Groups Projects
Commit f6f112ab authored by Peter Kietzmann's avatar Peter Kietzmann
Browse files

Merge pull request #3388 from authmillenon/ng_ipv6_netif/enh/use-long

ng_ipv6_netif: use EUI-64 as base for 6LoWPAN IPv6 addresses
parents fa4e0595 618df448
No related branches found
No related tags found
No related merge requests found
......@@ -473,8 +473,13 @@ void ng_ipv6_netif_init_by_dev(void)
if ((ng_netapi_get(ifs[i], NETCONF_OPT_PROTO, 0, &if_type,
sizeof(if_type)) != -ENOTSUP) &&
(if_type == NG_NETTYPE_SIXLOWPAN)) {
uint16_t src_len = 8;
DEBUG("Set 6LoWPAN flag\n");
ipv6_ifs[i].flags |= NG_IPV6_NETIF_FLAGS_SIXLOWPAN;
/* use EUI-64 (8-byte address) for IID generation and for sending
* packets */
ng_netapi_set(ifs[i], NETCONF_OPT_SRC_LEN, 0, &src_len,
sizeof(src_len)); /* don't care for result */
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment