summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-10 12:23:18 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-14 07:33:26 (GMT)
commit61fb35755054736c69bee1cd067a64df5d772b47 (patch)
tree1c5c23b98815d498537078735b717526828fc821 /plugins
parent6b256ce8bd24af901d0b0abc0394b9a80ee1314f (diff)
downloadconnman-61fb35755054736c69bee1cd067a64df5d772b47.zip
connman-61fb35755054736c69bee1cd067a64df5d772b47.tar.gz
connman-61fb35755054736c69bee1cd067a64df5d772b47.tar.bz2
dundee Create ipconfig before setting index
Since connman_network_set_index() does not create magically the ipconfig for us anymore, we need to create it inside set_connected().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dundee.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/dundee.c b/plugins/dundee.c
index 99fc5c6..ed611dd 100644
--- a/plugins/dundee.c
+++ b/plugins/dundee.c
@@ -32,6 +32,7 @@
#include <connman/plugin.h>
#include <connman/device.h>
#include <connman/network.h>
+#include <connman/service.h>
#include <connman/inet.h>
#include <connman/dbus.h>
@@ -195,10 +196,17 @@ static int create_network(struct dundee_data *info)
static void set_connected(struct dundee_data *info)
{
+ struct connman_service *service;
+
DBG("%s", info->path);
connman_inet_ifup(info->index);
+ service = connman_service_lookup_from_network(info->network);
+ if (service == NULL)
+ return;
+
+ connman_service_create_ip4config(service, info->index);
connman_network_set_index(info->network, info->index);
connman_network_set_ipv4_method(info->network,
CONNMAN_IPCONFIG_METHOD_FIXED);