mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
net: Remove IFF_DOWN flag to compatible with Linux/*BSD
turn off interface by checking IFF_UP flag isn't set: https://github.com/apache/nuttx/issues/1838 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -904,7 +904,7 @@ static int netinit_monitor(void)
|
||||
|
||||
ninfo("Taking the link down\n");
|
||||
|
||||
ifr.ifr_flags = IFF_DOWN;
|
||||
ifr.ifr_flags = 0;
|
||||
ret = ioctl(sd, SIOCSIFFLAGS, (unsigned long)&ifr);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user