[gupnp] linux-cm: Pass family to created contexts



commit 245fc9a8280822f78e853d9fc3125c0c3601f29b
Author: Jens Georg <mail jensge org>
Date:   Sun Feb 3 21:38:57 2019 +0100

    linux-cm: Pass family to created contexts

 libgupnp/gupnp-linux-context-manager.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 4e01bde..5b03118 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -272,6 +272,7 @@ network_device_update_essid (NetworkInterface *device)
 static void
 network_device_create_context (NetworkInterface *device,
                                const char       *address,
+                               GSocketFamily     family,
                                const char       *label,
                                const char       *mask,
                                GInetAddressMask *host_mask)
@@ -300,6 +301,7 @@ network_device_create_context (NetworkInterface *device,
                                   NULL,
                                   &error,
                                   "host-ip", address,
+                                  "address-family", family,
                                   "uda-version", version,
                                   "interface", label,
                                   "network", device->essid ? device->essid
@@ -566,6 +568,7 @@ create_context (GUPnPLinuxContextManager *self,
 
         network_device_create_context (device,
                                        address,
+                                       ifa->ifa_family,
                                        label,
                                        mask,
                                        host_mask);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]