From 49504cf22e6fdb440ee0ce3f80721e166e29e20d Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 11 Dec 2017 08:07:09 +0100 Subject: [PATCH] net: larger buffer for net_if_list (#100) when compiling with mingw32 and running in wine emulator, I get this error when enumerating network interfaces: wif: if_list: GetAdaptersAddresses ret=111 use a large buffer for IP_ADAPTER_ADDRESSES fixes the error --- src/net/win32/wif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/win32/wif.c b/src/net/win32/wif.c index 74d03fd..f24894f 100644 --- a/src/net/win32/wif.c +++ b/src/net/win32/wif.c @@ -24,7 +24,7 @@ */ static int if_list_gaa(net_ifaddr_h *ifh, void *arg) { - IP_ADAPTER_ADDRESSES addrv[16], *cur; + IP_ADAPTER_ADDRESSES addrv[64], *cur; ULONG ret, len = sizeof(addrv); const ULONG flags = GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_MULTICAST; HANDLE hLib;