未验证 提交 c8e1fbf6 编写于 作者: N nicedayzhu 提交者: GitHub

[Bugfix]Update netdev info after registered

修复ifconfig命令无法正确显示IP,网关,掩码的问题
上级 c10f087d
......@@ -315,7 +315,6 @@ static int netdev_add(struct netif *lwip_netif)
/* Update netdev info after registered */
netdev->flags = lwip_netif->flags;
netdev->mtu = lwip_netif->mtu;
netdev->ops = &lwip_netdev_ops;
netdev->hwaddr_len = lwip_netif->hwaddr_len;
rt_memcpy(netdev->hwaddr, lwip_netif->hwaddr, lwip_netif->hwaddr_len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册