[gupnp/wip/ipv6-everywhere: 7/7] Windows CM: Pre-filter address family
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gupnp/wip/ipv6-everywhere: 7/7] Windows CM: Pre-filter address family
- Date: Tue, 21 Jun 2022 16:28:29 +0000 (UTC)
commit 42ddef7290aca82900cba1a442cf24a50a80e69e
Author: Jens Georg <mail jensge org>
Date:   Mon Jun 20 00:07:30 2022 +0200
    Windows CM: Pre-filter address family
    
    Together with the changes in SimpleCM, this should enable v6 support in
    Windows.
 libgupnp/gupnp-windows-context-manager.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-windows-context-manager.c b/libgupnp/gupnp-windows-context-manager.c
index 662c009..b7af31a 100644
--- a/libgupnp/gupnp-windows-context-manager.c
+++ b/libgupnp/gupnp-windows-context-manager.c
@@ -61,9 +61,12 @@ gupnp_windows_context_manager_get_interfaces
         PIP_ADAPTER_ADDRESSES adapters_addresses;
         PIP_ADAPTER_ADDRESSES adapter;
 
+        ULONG family = gupnp_context_manager_get_socket_family (
+                GUPNP_CONTEXT_MANAGER (manager));
+
         do {
                 adapters_addresses = (PIP_ADAPTER_ADDRESSES) g_malloc0 (size);
-                ret = GetAdaptersAddresses (AF_UNSPEC,
+                ret = GetAdaptersAddresses (family,
                                             flags,
                                             NULL,
                                             adapters_addresses,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]