summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2023-08-18 04:49:09 +0000
committerGerrit Code Review <gerrit@review>2023-08-18 04:49:09 +0000
commit55a8cb66f17760298b58996e2dce68cd33dd1578 (patch)
treef8bc858f6f5d0e28d281722e5e42be92fe8ef7d4
parent18600624478196c40b3506806fb81a6783938911 (diff)
parentf40557245f6dc00d306d31321787d6b96a21287d (diff)
downloadconnman-55a8cb66f17760298b58996e2dce68cd33dd1578.tar.gz
connman-55a8cb66f17760298b58996e2dce68cd33dd1578.tar.bz2
connman-55a8cb66f17760298b58996e2dce68cd33dd1578.zip
Merge "Add macros for DHCP_FAIL and DHCP_STARTED" into tizen
-rw-r--r--src/dhcp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index b17bc653..4b6cbf63 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -45,6 +45,8 @@
#if defined TIZEN_EXT
#define DHCP_SUCCESS "DHCP_SUCCESS"
+#define DHCP_FAIL "DHCP_FAIL"
+#define DHCP_STARTED "DHCP_STARTED"
#endif
struct connman_dhcp {
@@ -294,7 +296,7 @@ static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data)
connman_network_set_bool(dhcp->network, "WiFi.RoamingDHCP", false);
__connman_network_enable_ipconfig(dhcp->network, dhcp->ipconfig);
- __connman_network_notify_dhcp_changed("DHCP_FAIL",
+ __connman_network_notify_dhcp_changed(DHCP_FAIL,
g_dhcp_client_get_interface(dhcp_client));
return;
@@ -305,7 +307,7 @@ static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data)
if (dhcp->network) {
DBG("[DHCP-C] auto ip is not used, set dhcp-fail error and disconnect");
- __connman_network_notify_dhcp_changed("DHCP_FAIL",
+ __connman_network_notify_dhcp_changed(DHCP_FAIL,
g_dhcp_client_get_interface(dhcp_client));
connman_network_set_error(dhcp->network, CONNMAN_NETWORK_ERROR_DHCP_FAIL);
}
@@ -657,7 +659,7 @@ static void ipv4ll_available_cb(GDHCPClient *ipv4ll_client, gpointer user_data)
g_free(netmask);
#if defined TIZEN_EXT
- __connman_network_notify_dhcp_changed("DHCP_FAIL",
+ __connman_network_notify_dhcp_changed(DHCP_FAIL,
g_dhcp_client_get_interface(ipv4ll_client));
#endif
}
@@ -867,7 +869,7 @@ int __connman_dhcp_start(struct connman_ipconfig *ipconfig,
dhcp->user_data = user_data;
#if defined TIZEN_EXT
- __connman_network_notify_dhcp_changed("DHCP_STARTED",
+ __connman_network_notify_dhcp_changed(DHCP_STARTED,
g_dhcp_client_get_interface(dhcp->dhcp_client));
if (network && connman_network_get_bool(network, "WiFi.RoamingDHCP")) {