3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

netconfig: Use CamelCase for IPv4 gateway setting

This commit is contained in:
Tim Kourt 2019-12-10 15:38:33 -08:00 committed by Denis Kenzior
parent 0d9487d4ec
commit 994c1a4b5a

View File

@ -204,12 +204,18 @@ static struct netconfig_ifaddr *netconfig_ipv4_get_ifaddr(
static char *netconfig_ipv4_get_gateway(struct netconfig *netconfig)
{
const struct l_dhcp_lease *lease;
char *gateway;
switch (netconfig->rtm_protocol) {
case RTPROT_STATIC:
gateway = l_settings_get_string(netconfig->active_settings,
"IPv4", "Gateway");
if (!gateway)
gateway = l_settings_get_string(
netconfig->active_settings,
"IPv4", "gateway");
return l_settings_get_string(netconfig->active_settings,
"IPv4", "gateway");
return gateway;
case RTPROT_DHCP:
lease = l_dhcp_client_get_lease(netconfig->dhcp_client);