From 7b967a1e758a5024f08701cda3c4fd712cdae2ca Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Mon, 24 Aug 2015 00:24:58 +0200 Subject: [PATCH] shell: show link-type for IPv6 interfaces --- sys/shell/commands/sc_netif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/shell/commands/sc_netif.c b/sys/shell/commands/sc_netif.c index c550c57a4b..101925a210 100644 --- a/sys/shell/commands/sc_netif.c +++ b/sys/shell/commands/sc_netif.c @@ -293,6 +293,10 @@ static void _netif_list(kernel_pid_t dev) } #ifdef MODULE_GNRC_IPV6_NETIF + printf("Link type: %s", (entry->flags & GNRC_IPV6_NETIF_FLAGS_IS_WIRED) ? + "wired" : "wireless"); + printf("\n "); + for (int i = 0; i < GNRC_IPV6_NETIF_ADDR_NUMOF; i++) { if (!ipv6_addr_is_unspecified(&entry->addrs[i].addr)) { printf("inet6 addr: ");