[Pkg-voip-commits] [libre] 04/12: net: larger buffer for net_if_list (#100)
Jonas Smedegaard
dr at jones.dk
Thu Feb 1 20:08:31 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.5.7-1
in repository libre.
commit 49504cf22e6fdb440ee0ce3f80721e166e29e20d
Author: Alfred E. Heggestad <alfred.heggestad at gmail.com>
Date: Mon Dec 11 08:07:09 2017 +0100
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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/libre.git
More information about the Pkg-voip-commits
mailing list