Support for Ubuntu iwlN wifi devices.

This commit is contained in:
Robin E. R. Davies
2024-11-25 18:14:32 -05:00
parent 8787073338
commit 7651bc97a2
5 changed files with 155 additions and 66 deletions
+20 -1
View File
@@ -22,13 +22,32 @@
#include <string>
#include <utility>
#include <boost/asio.hpp>
namespace pipedal {
namespace pipedal {
enum class NetworkInterfaceType {
Loopback,
Ethernet,
WiFi,
WiFiDirect,
Other,
};
NetworkInterfaceType GetNetworkInterfaceType(const char*interfaceName);
inline NetworkInterfaceType GetNetworkInterfaceType(const std::string&interfaceName)
{
return GetNetworkInterfaceType(interfaceName.c_str());
}
std::string GetInterfaceIpv4Address(const std::string& interfaceName);
std::optional<std::string> GetWlanInterfaceName();
std::optional<std::string> GetWlanIpv4Address();
std::vector<std::string> GetEthernetIpv4Addresses();
// bool IsLinkLocalAddress(const std::string &fromAddress);
std::string GetNonLinkLocalAddress(const std::string& fromAddress);