mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 16:31:18 +01:00
Merge pull request #10483 from miri64/gnrc_ipv6_nib/fix/no-auto-config-wo-l2addr
gnrc_ipv6_nib: don't autoconfig IPv6 address without L2 addr
This commit is contained in:
commit
9a6473104d
@ -34,6 +34,10 @@ void _auto_configure_addr(gnrc_netif_t *netif, const ipv6_addr_t *pfx,
|
||||
int idx;
|
||||
uint8_t flags = GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_TENTATIVE;
|
||||
|
||||
if (!(netif->flags & GNRC_NETIF_FLAGS_HAS_L2ADDR)) {
|
||||
DEBUG("nib: interface %i has no link-layer addresses\n", netif->pid);
|
||||
return;
|
||||
}
|
||||
DEBUG("nib: add address based on %s/%u automatically to interface %u\n",
|
||||
ipv6_addr_to_str(addr_str, pfx, sizeof(addr_str)),
|
||||
pfx_len, netif->pid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user