mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
net/loopback: Fix flags of lo device
netdev_register will set IFF_LOOPBACK in d_flags, we should not just change it into IFF_UP only. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -357,7 +357,7 @@ int localhost_initialize(void)
|
||||
|
||||
/* Put the network in the UP state */
|
||||
|
||||
priv->lo_dev.d_flags = IFF_UP;
|
||||
IFF_SET_UP(priv->lo_dev.d_flags);
|
||||
return lo_ifup(&priv->lo_dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user