From 60ca4a1ef4dbc47da9d85703a9c277a63d8565d5 Mon Sep 17 00:00:00 2001 From: Sebastien Lorquet Date: Fri, 19 May 2017 17:13:27 +0200 Subject: [PATCH] Ensure netlib will not be broken when setip will not bring the network up anymore --- examples/nettest/nettest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/nettest/nettest.c b/examples/nettest/nettest.c index 12b33e02b..5f6c97b4e 100644 --- a/examples/nettest/nettest.c +++ b/examples/nettest/nettest.c @@ -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 */