mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
shell: exit early if no IPv6 interface is found
This commit is contained in:
parent
04022be770
commit
000caf4e87
@ -326,6 +326,11 @@ static void _netif_list(kernel_pid_t dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MODULE_GNRC_IPV6_NETIF
|
#ifdef MODULE_GNRC_IPV6_NETIF
|
||||||
|
if (entry == NULL) {
|
||||||
|
puts("");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
printf("Link type: %s", (entry->flags & GNRC_IPV6_NETIF_FLAGS_IS_WIRED) ?
|
printf("Link type: %s", (entry->flags & GNRC_IPV6_NETIF_FLAGS_IS_WIRED) ?
|
||||||
"wired" : "wireless");
|
"wired" : "wireless");
|
||||||
printf("\n ");
|
printf("\n ");
|
||||||
|
Loading…
Reference in New Issue
Block a user