diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-05-29 11:26:24 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-05-30 14:18:43 +0200 |
commit | ddb82ec2a271cabea7781289bc504539519d6bd9 (patch) | |
tree | b71a53c93cbefe9ec486cb6f4018ea8ca508ca56 /src/network/networkd-util.h | |
parent | eed44b715d18295d9f408fe240c29e3c6a7f5272 (diff) | |
download | systemd-ddb82ec2a271cabea7781289bc504539519d6bd9.tar.gz |
sd-dhcp: clean-up of DHCP lease server code
This is an attempt to clean-up the DHCP lease server type code a bit. We
now strictly use the same enum everywhere, and store server info in an
array. Moreover, we use the same nomenclature everywhere.
This only makes the changes in the sd-dhcp code. The networkd code is
untouched so far (but should be fixed up like this too. But it's more
complicated since this would then touch actual settings in .network
files).
Note that this also changes some field names in serialized lease files.
But given that these field names have not been part of a released
version of systemd yet, such a change should be ok.
This is pure renaming/refactoring, shouldn't actually change any
behaviour.
Diffstat (limited to 'src/network/networkd-util.h')
-rw-r--r-- | src/network/networkd-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h index 48411b0cf5..0433f883a3 100644 --- a/src/network/networkd-util.h +++ b/src/network/networkd-util.h @@ -40,8 +40,8 @@ AddressFamily routing_policy_rule_address_family_from_string(const char *s) _pur const char *duplicate_address_detection_address_family_to_string(AddressFamily b) _const_; AddressFamily duplicate_address_detection_address_family_from_string(const char *s) _pure_; -const char *dhcp_lease_info_to_string(sd_dhcp_lease_info info) _const_; -sd_dhcp_lease_info dhcp_lease_info_from_string(const char *s) _pure_; +const char *dhcp_lease_server_type_to_string(sd_dhcp_lease_server_type t) _const_; +sd_dhcp_lease_server_type dhcp_lease_server_type_from_string(const char *s) _pure_; int kernel_route_expiration_supported(void); |