Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/lwip: implement netif_get_name() #16741

Merged
merged 2 commits into from
Aug 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
sys/shell: lwIP: make use of netif_get_name()
  • Loading branch information
benpicco committed Aug 26, 2021
commit 4464999259534bf9272d1c3aba541e9b48628372
5 changes: 3 additions & 2 deletions sys/shell/commands/sc_lwip_netif.c
Original file line number Diff line number Diff line change
@@ -43,9 +43,10 @@ static void _netif_list_ipv6(struct netif *netif, int addr_index) {

static void _netif_list(struct netif *netif) {
int i;
char name[8];
struct netdev *dev = netif->state;
printf("Iface %c%c%u ", netif->name[0], netif->name[1], netif->num);
printf("HWaddr: ");
netif_get_name((netif_t *)netif, name);
printf("Iface %s HWaddr: ", name);
for (i = 0; i < netif->hwaddr_len; i++) {
printf("%02x", netif->hwaddr[i]);
if ((i+1) < netif->hwaddr_len) {