summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-12-30 16:24:09 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-30 00:52:30 -0800
commit4373a96829d0ed1153b5c72f8ef7c9522e3b7a07 (patch)
tree8240b0d83d388172cdaf0be9e94b4e36ca67867c /plugins/ethernet.c
parentffb30866441664a7c2adcc3147ae4c8f34097692 (diff)
downloadconnman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.tar.gz
connman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.tar.bz2
connman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.zip
Set network method as CONNMAN_IPCONFIG_METHOD_DHCP
Before calling connman_network_set_connected(true), the method should be set to CONNMAN_IPCONFIG_METHOD_DHCP.
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 734523ae..2181bdee 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -106,6 +106,8 @@ static void add_network(struct connman_device *device)
connman_network_set_group(network, "cable");
+ connman_network_set_method(network, CONNMAN_IPCONFIG_METHOD_DHCP);
+
connman_network_set_connected(network, TRUE);
}