aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libui_sdl/LAN_PCap.cpp24
-rw-r--r--src/libui_sdl/LAN_PCap.h5
2 files changed, 0 insertions, 29 deletions
diff --git a/src/libui_sdl/LAN_PCap.cpp b/src/libui_sdl/LAN_PCap.cpp
index d1c0dd9..c7f3a5a 100644
--- a/src/libui_sdl/LAN_PCap.cpp
+++ b/src/libui_sdl/LAN_PCap.cpp
@@ -223,30 +223,6 @@ bool Init()
ipaddr = ipaddr->Next;
}
- IP_ADAPTER_DNS_SERVER_ADDRESS* dnsaddr = addr->FirstDnsServerAddress;
- int ndns = 0;
- while (dnsaddr)
- {
- SOCKADDR* sa = dnsaddr->Address.lpSockaddr;
- if (sa->sa_family == AF_INET)
- {
- struct in_addr sa4 = ((sockaddr_in*)sa)->sin_addr;
- memcpy(adata->DNS[ndns++], &sa4.S_un.S_addr, 4);
- }
-
- if (ndns >= 8) break;
- dnsaddr = dnsaddr->Next;
- }
-
- if (addr->Dhcpv4Enabled && addr->Dhcpv4Server.lpSockaddr)
- {
- SOCKADDR* sa = addr->Dhcpv4Server.lpSockaddr;
- struct in_addr sa4 = ((sockaddr_in*)sa)->sin_addr;
- memcpy(adata->DHCP_IP_v4, &sa4.S_un.S_addr, 4);
- }
- else
- memset(adata->DHCP_IP_v4, 0, 4);
-
break;
}
}
diff --git a/src/libui_sdl/LAN_PCap.h b/src/libui_sdl/LAN_PCap.h
index 1af3cef..6d369c3 100644
--- a/src/libui_sdl/LAN_PCap.h
+++ b/src/libui_sdl/LAN_PCap.h
@@ -33,11 +33,6 @@ typedef struct
u8 MAC[6];
u8 IP_v4[4];
- u8 DNS[8][4];
-
- u8 DHCP_MAC[6];
- u8 DHCP_IP_v4[4];
-
void* Internal;
} AdapterData;