On 12.08.2022 14:01, dragon wrote: > Hi, > > Thans for your attention. > > I had a problem doing porting the network part。I want to get a list of network devices that can be implemented on Linux with an ioctl interface. A set of ioctl interfaces is also provided on Windows called WSAIoctl with cmd SIO_GET_INTERFACE_LIST。The WSAIoctl interface is also encapsulated in cygwin and placed in /usr/include/w32api/, libs place in /usr/lib/w32api/ws2_32 . mixing Posix and W32 API is seldom a good idea. The attached code provides the full list of Network interface and some details as internal_name: {E9617ED6-8C03-4C53-AA3F-4FD6DBC596D5} flags: AF_INET6 up multicast address: fe80::9cbb:5d97:6ef:565%22 friendly_name: LAN-Verbindung* 2 feel free to modify it for your purpose Regards Marco