summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 93401d7b..f0f28e42 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -64,6 +64,17 @@ void connman_dhcp_unref(struct connman_dhcp *dhcp)
}
/**
+ * connman_dhcp_get_index:
+ * @dhcp: DHCP structure
+ *
+ * Get network index of DHCP
+ */
+int connman_dhcp_get_index(struct connman_dhcp *dhcp)
+{
+ return dhcp->index;
+}
+
+/**
* connman_dhcp_get_interface:
* @dhcp: DHCP structure
*