]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: fix handling of uninitialized and zero IAID setting
authorThomas Haller <thaller@redhat.com>
Fri, 23 Nov 2018 21:19:26 +0000 (22:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Dec 2018 13:25:28 +0000 (14:25 +0100)
commit8217ed5ec34e58ef791bcf9637e301aba608b711
tree1987286a501bc34555b0025436c575f79a886bd2
parent1d4c6f5befbc35e71f424c7e8a69c85a5a2272d5
network: fix handling of uninitialized and zero IAID setting

An earlier commit 0e408b82b (dhcp6-client: handle IAID with value zero)
introduced a flag to sd_dhcp6_client to distinguish between an unset
IAID and a value set to zero.

However, that was not sufficient and broke leaving the setting
uninitialized in networkd configuration. The configuration parsing
also must distinguish between the default, unset value and an
explict zero configuration.

Fixes: 0e408b82b8bd7675234cf58009475d4f4c0a491a
src/libsystemd-network/network-internal.c
src/libsystemd-network/network-internal.h
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-dhcp6-client.c
src/network/networkd-dhcp4.c
src/network/networkd-dhcp6.c
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h
src/systemd/sd-dhcp-client.h