diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2023-08-18 04:49:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2023-08-18 04:49:09 +0000 |
commit | 55a8cb66f17760298b58996e2dce68cd33dd1578 (patch) | |
tree | f8bc858f6f5d0e28d281722e5e42be92fe8ef7d4 | |
parent | 18600624478196c40b3506806fb81a6783938911 (diff) | |
parent | f40557245f6dc00d306d31321787d6b96a21287d (diff) | |
download | connman-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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")) { |