Skip to content

Commit

Permalink
shell/netif: Add link status to interface status output
Browse files Browse the repository at this point in the history
  • Loading branch information
bergzand committed Mar 18, 2018
1 parent 831e763 commit 9d61314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/shell/commands/sc_gnrc_netif.c
Expand Up @@ -426,6 +426,10 @@ static void _netif_list(kernel_pid_t iface)
if (res >= 0) {
printf(" CR: %s ", _netopt_coding_rate_str[u8]);
}
res = gnrc_netapi_get(iface, NETOPT_LINK_CONNECTED, 0, &u8, sizeof(u8));
if (res >= 0) {
printf(" Link: %s ", (netopt_enable_t)u8 ? "up" : "down" );
}
line_thresh = _newline(0U, line_thresh);
res = gnrc_netapi_get(iface, NETOPT_ADDRESS_LONG, 0, hwaddr, sizeof(hwaddr));
if (res >= 0) {
Expand Down

0 comments on commit 9d61314

Please sign in to comment.