1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_netif: guard usage of gnrc_ipv6 member

This commit is contained in:
Martine S. Lenders 2020-09-01 13:58:47 +02:00
parent 4fe7bb003a
commit 0e3443d006
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -588,8 +588,9 @@ int gnrc_netif_ipv6_addr_add_internal(gnrc_netif_t *netif,
gnrc_netif_ipv6_bus_post(netif, GNRC_IPV6_EVENT_ADDR_VALID, &netif->ipv6.addrs[idx]);
}
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_SLAAC)
else if (!gnrc_netif_is_6ln(netif)) {
else if (IS_USED(MODULE_GNRC_IPV6) &&
IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_SLAAC) &&
!gnrc_netif_is_6ln(netif)) {
/* cast to remove const qualifier (will still be used NIB internally as
* const) */
msg_t msg = { .type = GNRC_IPV6_NIB_DAD,
@ -597,7 +598,6 @@ int gnrc_netif_ipv6_addr_add_internal(gnrc_netif_t *netif,
msg_send(&msg, gnrc_ipv6_pid);
}
#endif
#else
(void)pfx_len;
#endif