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:
parent
0d9487d4ec
commit
994c1a4b5a
@ -204,13 +204,19 @@ 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:
|
||||
|
||||
return l_settings_get_string(netconfig->active_settings,
|
||||
gateway = l_settings_get_string(netconfig->active_settings,
|
||||
"IPv4", "Gateway");
|
||||
if (!gateway)
|
||||
gateway = l_settings_get_string(
|
||||
netconfig->active_settings,
|
||||
"IPv4", "gateway");
|
||||
|
||||
return gateway;
|
||||
|
||||
case RTPROT_DHCP:
|
||||
lease = l_dhcp_client_get_lease(netconfig->dhcp_client);
|
||||
if (!lease)
|
||||
|
Loading…
Reference in New Issue
Block a user