From 0317a48280486b8cc4ee758566058f3f3951f9fa Mon Sep 17 00:00:00 2001 From: Tau Date: Thu, 7 Nov 2019 18:11:26 -0500 Subject: [PATCH] platform/netenv.c: Fix GetIfTable() for idz --- platform/netenv.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/netenv.c b/platform/netenv.c index d3d06c4..6126aa9 100644 --- a/platform/netenv.c +++ b/platform/netenv.c @@ -395,10 +395,6 @@ static uint32_t WINAPI hook_GetIfTable( uint32_t *pdwSize, BOOL bOrder) { - /* This only gets called if the link is down, or something like that. - Well, I took the time to write this hook, so let's at least preserve it - in the Git history. */ - MIB_IFROW *row; uint32_t nbytes; @@ -413,7 +409,7 @@ static uint32_t WINAPI hook_GetIfTable( return ERROR_BUFFER_OVERFLOW; } - dprintf("Netenv: Virtualized GetIfTable (shouldn't get called?)\n"); + pIfTable->dwNumEntries = 1; row = pIfTable->table; memset(row, 0, sizeof(*row)); @@ -426,7 +422,7 @@ static uint32_t WINAPI hook_GetIfTable( row->dwPhysAddrLen = sizeof(netenv_mac_addr); memcpy(row->bPhysAddr, netenv_mac_addr, sizeof(netenv_mac_addr)); row->dwAdminStatus = 1; - row->dwOperStatus = IF_OPER_STATUS_CONNECTED; + row->dwOperStatus = IF_OPER_STATUS_OPERATIONAL; return ERROR_SUCCESS; }