[gssdp] gssdp-client: Fill the device interface index for bionic
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] gssdp-client: Fill the device interface index for bionic
- Date: Sat, 18 Jun 2016 07:37:44 +0000 (UTC)
commit 11e20cfb93bf64aa8fd42b4225f87f3497165648
Author: Aurélien Chabot <aurelien chabot parrot com>
Date: Wed Apr 27 17:46:48 2016 +0200
gssdp-client: Fill the device interface index for bionic
This is possible now due to the recent support of if_nametoindex that is
available on android. Without that, the device index is never filled
leading to all packets that are received on the socket to be dropped.
Signed-off-by: Aurélien Chabot <aurelien chabot parrot com>
https://bugzilla.gnome.org/show_bug.cgi?id=765688
libgssdp/gssdp-client.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 6fec14c..a3ae123 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -1779,6 +1779,8 @@ get_host_ip (GSSDPNetworkDevice *device)
if (!device->iface_name)
device->iface_name = g_strdup (iface->ifr_name);
+ device->index = query_ifindex (device->iface_name);
+
goto success;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]