forked from enlightenment/enlightenment
e17: connman: show current IP when using dhcp
When service is configured as 'dhcp', instead of showing blank values for IP and netmask, show the currently configured ones. SVN revision: 57946
This commit is contained in:
parent
0cddc7cee2
commit
bba300c20a
|
@ -353,8 +353,19 @@ _connman_service_changed(void *data,
|
|||
GSTR(error, e_connman_service_error_get);
|
||||
GSTR(security, e_connman_service_security_get);
|
||||
GSTR(ipv4_method, e_connman_service_ipv4_configuration_method_get);
|
||||
GSTR(ipv4_address, e_connman_service_ipv4_configuration_address_get);
|
||||
GSTR(ipv4_netmask, e_connman_service_ipv4_configuration_netmask_get);
|
||||
|
||||
if (strcmp(service->ipv4_method, "dhcp") == 0)
|
||||
{
|
||||
GSTR(ipv4_address, e_connman_service_ipv4_address_get);
|
||||
GSTR(ipv4_netmask, e_connman_service_ipv4_netmask_get);
|
||||
}
|
||||
else
|
||||
{
|
||||
GSTR(ipv4_address,
|
||||
e_connman_service_ipv4_configuration_address_get);
|
||||
GSTR(ipv4_netmask,
|
||||
e_connman_service_ipv4_configuration_netmask_get);
|
||||
}
|
||||
#undef GSTR
|
||||
|
||||
if ((service->state != e_str_failure) && (service->error))
|
||||
|
|
Loading…
Reference in New Issue