[gupnp/wip/ipv6-everywhere: 4/7] NetworkManager: Pass on address family to context
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/ipv6-everywhere: 4/7] NetworkManager: Pass on address family to context
- Date: Tue, 21 Jun 2022 16:28:29 +0000 (UTC)
commit 851609475f3c17760396c917ab174778f01c042e
Author: Jens Georg <mail jensge org>
Date: Sun Jun 19 23:44:37 2022 +0200
NetworkManager: Pass on address family to context
This way it starts supporting IPv6
Part of #10
libgupnp/gupnp-network-manager.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/libgupnp/gupnp-network-manager.c b/libgupnp/gupnp-network-manager.c
index 5a7de01..b540a29 100644
--- a/libgupnp/gupnp-network-manager.c
+++ b/libgupnp/gupnp-network-manager.c
@@ -253,13 +253,20 @@ create_context_for_device (NMDevice *nm_device)
}
}
- nm_device->context = g_initable_new (GUPNP_TYPE_CONTEXT,
- NULL,
- &error,
- "interface", iface,
- "network", ssid,
- "port", port,
- NULL);
+ nm_device->context = g_initable_new (
+ GUPNP_TYPE_CONTEXT,
+ NULL,
+ &error,
+ "interface",
+ iface,
+ "network",
+ ssid,
+ "port",
+ port,
+ "address-family",
+ gupnp_context_manager_get_socket_family (
+ GUPNP_CONTEXT_MANAGER (nm_device->manager)),
+ NULL);
g_free (iface);
g_free (ssid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]