summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Massot <jmassot@aldebaran-robotics.com>2010-12-10 11:00:35 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-14 01:42:38 +0100
commit8319638c7ec38544ceec1321766a57cc8ebfa470 (patch)
tree5dc8adde94dd2a8ccfa61c69e9ba8b4d966fdb9e /src
parent98d17b07f1609dd12d14a41f9734b5eae74cc6d0 (diff)
downloadconnman-8319638c7ec38544ceec1321766a57cc8ebfa470.tar.gz
connman-8319638c7ec38544ceec1321766a57cc8ebfa470.tar.bz2
connman-8319638c7ec38544ceec1321766a57cc8ebfa470.zip
dhcp: Add function to clear DHCP configuration
Diffstat (limited to 'src')
-rw-r--r--src/dhcp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 273912ba..36e2ff5b 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -186,6 +186,19 @@ void connman_dhcp_renew(struct connman_dhcp *dhcp)
}
/**
+ * connman_dhcp_release:
+ * @dhcp: DHCP structure
+ *
+ * Report DHCP release of the interface
+ */
+void connman_dhcp_release(struct connman_dhcp *dhcp)
+{
+ DBG("dhcp %p", dhcp);
+
+ connman_element_unregister_children(dhcp->element);
+}
+
+/**
* connman_dhcp_fail:
* @dhcp: DHCP structure
*