mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +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:
@@ -118,8 +118,6 @@ int netlib_ifdown(const char *ifname)
|
||||
|
||||
/* Perform the ioctl to ifup flag */
|
||||
|
||||
req.ifr_flags |= IFF_DOWN;
|
||||
|
||||
ret = ioctl(sockfd, SIOCSIFFLAGS, (unsigned long)&req);
|
||||
close(sockfd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user