DEV9: Make DHCP_Server::GetGatewaysLinux() public

Needed for auto adapter on linux, if only to check if an adapter has a gateway
This commit is contained in:
TheLastRar 2021-08-09 01:12:46 +01:00 committed by refractionpcsx2
parent e20a357340
commit 1aaadd6228
1 changed files with 4 additions and 3 deletions

View File

@ -61,14 +61,15 @@ namespace InternalServers
PacketReader::IP::UDP::UDP_Packet* Recv();
bool Send(PacketReader::IP::UDP::UDP_Packet* payload);
#ifdef __linux__
static std::vector<PacketReader::IP::IP_Address> GetGatewaysLinux(char* interfaceName);
#endif
~DHCP_Server();
private:
#ifdef __POSIX__
static std::vector<std::string> SplitString(std::string str, char delimiter);
#ifdef __linux__
static std::vector<PacketReader::IP::IP_Address> GetGatewaysLinux(char* interfaceName);
#endif
static std::vector<PacketReader::IP::IP_Address> GetDNSUnix();
#endif