[lwip] update list_if: add BROADCAST.

This commit is contained in:
aozima 2018-05-22 23:29:34 +08:00
parent 0819abda7a
commit 18941a1e69
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ void list_if(void)
if (netif->flags & NETIF_FLAG_LINK_UP) rt_kprintf(" LINK_UP"); if (netif->flags & NETIF_FLAG_LINK_UP) rt_kprintf(" LINK_UP");
else rt_kprintf(" LINK_DOWN"); else rt_kprintf(" LINK_DOWN");
if (netif->flags & NETIF_FLAG_ETHARP) rt_kprintf(" ETHARP"); if (netif->flags & NETIF_FLAG_ETHARP) rt_kprintf(" ETHARP");
if (netif->flags & NETIF_FLAG_BROADCAST) rt_kprintf(" BROADCAST");
if (netif->flags & NETIF_FLAG_IGMP) rt_kprintf(" IGMP"); if (netif->flags & NETIF_FLAG_IGMP) rt_kprintf(" IGMP");
rt_kprintf("\n"); rt_kprintf("\n");
rt_kprintf("ip address: %s\n", ipaddr_ntoa(&(netif->ip_addr))); rt_kprintf("ip address: %s\n", ipaddr_ntoa(&(netif->ip_addr)));