mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +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)
|
static char *netconfig_ipv4_get_gateway(struct netconfig *netconfig)
|
||||||
{
|
{
|
||||||
const struct l_dhcp_lease *lease;
|
const struct l_dhcp_lease *lease;
|
||||||
|
char *gateway;
|
||||||
|
|
||||||
switch (netconfig->rtm_protocol) {
|
switch (netconfig->rtm_protocol) {
|
||||||
case RTPROT_STATIC:
|
case RTPROT_STATIC:
|
||||||
|
gateway = l_settings_get_string(netconfig->active_settings,
|
||||||
return l_settings_get_string(netconfig->active_settings,
|
"IPv4", "Gateway");
|
||||||
|
if (!gateway)
|
||||||
|
gateway = l_settings_get_string(
|
||||||
|
netconfig->active_settings,
|
||||||
"IPv4", "gateway");
|
"IPv4", "gateway");
|
||||||
|
|
||||||
|
return gateway;
|
||||||
|
|
||||||
case RTPROT_DHCP:
|
case RTPROT_DHCP:
|
||||||
lease = l_dhcp_client_get_lease(netconfig->dhcp_client);
|
lease = l_dhcp_client_get_lease(netconfig->dhcp_client);
|
||||||
if (!lease)
|
if (!lease)
|
||||||
|
Loading…
Reference in New Issue
Block a user