diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-25 21:47:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-26 14:42:04 +0100 |
commit | 27cb34f57458758ee8615d72c6a60a39d4b92226 (patch) | |
tree | ed9c33c7375c3a8404b7acc82f69e9bd4af00bfd /src/network/networkd-manager.c | |
parent | 3a519900e18c6a36af084cdbcc468f670f4ffdb1 (diff) |
networkd: rename a few Network object properties to be more like the configuration settings
All booleans called dhcp_xyz are now called ".dhcp_use_xyz", to match their respective configuration file settings. This
should clarify things a bit, in particular as there is a DHCP hostname that was previously called just ".hostname"
because ".dhcp_hostname" was already existing as a bool. Since this confusion is removed now because the bool is called
".dhcp_use_hostname", the string field is now renamed to ".dhcp_hostname".
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index e8d4b042d4..0701dd02dd 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -892,7 +892,7 @@ static int manager_save(Manager *m) { continue; /* Secondly, add the entries acquired via DHCP */ - if (link->network->dhcp_dns) { + if (link->network->dhcp_use_dns) { const struct in_addr *addresses; r = sd_dhcp_lease_get_dns(link->dhcp_lease, &addresses); @@ -904,7 +904,7 @@ static int manager_save(Manager *m) { return r; } - if (link->network->dhcp_ntp) { + if (link->network->dhcp_use_ntp) { const struct in_addr *addresses; r = sd_dhcp_lease_get_ntp(link->dhcp_lease, &addresses); @@ -916,7 +916,7 @@ static int manager_save(Manager *m) { return r; } - if (link->network->dhcp_domains) { + if (link->network->dhcp_use_domains) { const char *domainname; r = sd_dhcp_lease_get_domainname(link->dhcp_lease, &domainname); |