Explorar o código

[Bugfix]Update netdev info after registered

修复ifconfig命令无法正确显示IP,网关,掩码的问题
nicedayzhu %!s(int64=6) %!d(string=hai) anos
pai
achega
c8e1fbf673
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      components/net/lwip-2.1.0/src/netif/ethernetif.c

+ 0 - 1
components/net/lwip-2.1.0/src/netif/ethernetif.c

@@ -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);