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
This commit is contained in:
Alfred E. Heggestad 2017-12-11 08:07:09 +01:00 committed by Richard Aas
parent ce68a8f09d
commit 49504cf22e

View file

@ -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;