mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-25 17:37:07 +02:00
fx
This commit is contained in:
parent
b191e1023c
commit
08dd0eacab
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue