Skip to content
Snippets Groups Projects
Unverified Commit 6265da28 authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #9912 from miri64/gnrc_ipv6_nib/enh/always-long-ieee802154-addr

gnrc_ipv6_nib: always configure 802.15.4 long address with IPv6 included
parents a7b83e92 23566166
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,7 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif) ...@@ -112,6 +112,7 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif)
_init_iface_router(netif); _init_iface_router(netif);
#if GNRC_IPV6_NIB_CONF_6LN #if GNRC_IPV6_NIB_CONF_6LN
netif->ipv6.rs_sent = 0; netif->ipv6.rs_sent = 0;
#endif /* GNRC_IPV6_NIB_CONF_6LN */
if (netif->device_type == NETDEV_TYPE_IEEE802154) { if (netif->device_type == NETDEV_TYPE_IEEE802154) {
/* see https://tools.ietf.org/html/rfc6775#section-5.2 */ /* see https://tools.ietf.org/html/rfc6775#section-5.2 */
uint16_t src_len = IEEE802154_LONG_ADDRESS_LEN; uint16_t src_len = IEEE802154_LONG_ADDRESS_LEN;
...@@ -123,7 +124,6 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif) ...@@ -123,7 +124,6 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif)
* directly everything else would deadlock anyway */ * directly everything else would deadlock anyway */
netif->ops->set(netif, &opt); netif->ops->set(netif, &opt);
} }
#endif /* GNRC_IPV6_NIB_CONF_6LN */
netif->ipv6.na_sent = 0; netif->ipv6.na_sent = 0;
if (gnrc_netif_ipv6_group_join_internal(netif, if (gnrc_netif_ipv6_group_join_internal(netif,
&ipv6_addr_all_nodes_link_local) < 0) { &ipv6_addr_all_nodes_link_local) < 0) {
......
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