mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-24 23:18:23 +00:00
Ensure netlib will not be broken when setip will not bring the network up anymore
This commit is contained in:
parent
0bcd50d7a1
commit
60ca4a1ef4
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ static void netest_initialize(void)
|
|||
netlib_set_ipv6netmask("eth0",
|
||||
(FAR const struct in6_addr *)g_ipv6_netmask);
|
||||
|
||||
/* New versions of netlib_set_ipv6addr will not bring the network up,
|
||||
* So ensure the network is really up at this point. */
|
||||
|
||||
netlib_ifup("eth0");
|
||||
|
||||
#endif /* CONFIG_NET_ICMPv6_AUTOCONF */
|
||||
#else /* CONFIG_EXAMPLES_NETTEST_IPv6 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue