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/libsystemd-network/test-dhcp-client.c | |
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/libsystemd-network/test-dhcp-client.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c index 4e9b388a45..80a8566194 100644 --- a/src/libsystemd-network/test-dhcp-client.c +++ b/src/libsystemd-network/test-dhcp-client.c @@ -4,10 +4,11 @@ ***/ #include <errno.h> +#include <net/if.h> +#include <net/if_arp.h> #include <stdio.h> #include <sys/socket.h> #include <unistd.h> -#include <net/if.h> #include "sd-dhcp-client.h" #include "sd-event.h" |