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

shell: exit early if no IPv6 interface is found

This commit is contained in:
Oleg Hahm 2015-09-11 21:30:38 +02:00
parent 04022be770
commit 000caf4e87

View File

@ -326,6 +326,11 @@ static void _netif_list(kernel_pid_t dev)
}
#ifdef MODULE_GNRC_IPV6_NETIF
if (entry == NULL) {
puts("");
return;
}
printf("Link type: %s", (entry->flags & GNRC_IPV6_NETIF_FLAGS_IS_WIRED) ?
"wired" : "wireless");
printf("\n ");