Detecting wireless network interfaces under Linux
My C++ program must be able to detect EVERY Wireless Network Interfaces under Linux operating system and display the interface names on the screen.
How can my application achieve this? Is there any sample codes? Is there any third party libraries can do this? Notes: The detected wireless network interfaces should also include the virtual interfaces, like the one created by Aircrack-NG's Airmon-NG script. |
Hi -
You can use "iwlist" to scan for wireless networks from the command line. You can call "iwlist" using the "popen()" API from your C/C++ program, and parse the results. You can use "man iwlist" or "man open", or Google for examples, to get more details. |
All times are GMT -5. The time now is 03:23 PM. |