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:
parent
ce68a8f09d
commit
49504cf22e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue