diff options
-rw-r--r-- | include/dhcp.h | 1 | ||||
-rw-r--r-- | src/dhcp.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/dhcp.h b/include/dhcp.h index e10f874d..ce3e6f41 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -57,6 +57,7 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp, void connman_dhcp_bound(struct connman_dhcp *dhcp); void connman_dhcp_renew(struct connman_dhcp *dhcp); +void connman_dhcp_release(struct connman_dhcp *dhcp); void connman_dhcp_fail(struct connman_dhcp *dhcp); void *connman_dhcp_get_data(struct connman_dhcp *dhcp); @@ -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 * |