Skip to content

Commit fad0967

Browse files
lmaciejonczykrlubos
authored andcommitted
[nrf fromtree] net: config: Fix IPv6 setup when DAD is unused and...
When the dupplicate address detection mechanism is not used, we should not wait for IPv6 address configuration. Because of the bug we are waiting for it, when CONFIG_NET_CONFIG_MY_IVP6_ADDR is not set. This commit fixes it. Signed-off-by: Lukasz Maciejonczyk <[email protected]> (cherry-picked from commit 6edf5bd)
1 parent 9c6523e commit fad0967

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/net/lib/config/init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static void setup_ipv6(struct net_if *iface, uint32_t flags)
250250

251251
if (sizeof(CONFIG_NET_CONFIG_MY_IPV6_ADDR) == 1) {
252252
/* Empty address, skip setting ANY address in this case */
253-
return;
253+
goto exit;
254254
}
255255

256256
if (net_addr_pton(AF_INET6, CONFIG_NET_CONFIG_MY_IPV6_ADDR, &laddr)) {
@@ -282,6 +282,8 @@ static void setup_ipv6(struct net_if *iface, uint32_t flags)
282282
}
283283
}
284284

285+
exit:
286+
285287
#if !defined(CONFIG_NET_IPV6_DAD)
286288
services_notify_ready(NET_CONFIG_NEED_IPV6);
287289
#endif

0 commit comments

Comments
 (0)