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:
parent
04022be770
commit
000caf4e87
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user