mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-30 11:15:51 +00:00
fx
This commit is contained in:
@@ -206,7 +206,9 @@ std::vector<Network::NetworkInterface> GetAvailableNetworkInterfaces() {
|
|||||||
break;
|
break;
|
||||||
if (i == RTA_NETMASK && sa->sa_family == AF_LINK) {
|
if (i == RTA_NETMASK && sa->sa_family == AF_LINK) {
|
||||||
struct sockaddr_dl const* sdl = reinterpret_cast<struct sockaddr_dl const*>(sa);
|
struct sockaddr_dl const* sdl = reinterpret_cast<struct sockaddr_dl const*>(sa);
|
||||||
#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD__ < 15)
|
#if defined(__APPLE__)
|
||||||
|
iface.name = std::string(sdl->sdl_data, sdl->sdl_nlen);
|
||||||
|
#elif defined(__FreeBSD__) && __FreeBSD__ < 15
|
||||||
iface.name = std::string{::link_ntoa(sdl)};
|
iface.name = std::string{::link_ntoa(sdl)};
|
||||||
#else
|
#else
|
||||||
size_t namelen = 0;
|
size_t namelen = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user