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
This commit is contained in:
commit
6265da2894
@ -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)
|
|||||||
* 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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user