diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-28 14:16:22 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-28 15:44:05 +0900 |
commit | 3def88503a623334febdd213c1121a66fd6bb222 (patch) | |
tree | c750d0a178ea831c33438c420f17f63419cba020 /src/network/networkd-address.h | |
parent | a149d4a95eabe39f36e913f0a0ad9c84007b4e4f (diff) | |
download | systemd-3def88503a623334febdd213c1121a66fd6bb222.tar.gz |
network: set previous DHCP4 address in link->addresses_foreign
Previously, the address was taken from the state file, but DHCP4_ADDRESS=
entry was dropped by 46986251d6eb4c78bb56c080ce310fd2b1f9439f.
Moreover, the link state file is always removed when networkd is
stopping. Let's take the address from the list of enumerated addresses.
Diffstat (limited to 'src/network/networkd-address.h')
-rw-r--r-- | src/network/networkd-address.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-address.h b/src/network/networkd-address.h index 0104747d9a..8b0fb9b0df 100644 --- a/src/network/networkd-address.h +++ b/src/network/networkd-address.h @@ -64,6 +64,7 @@ int link_drop_addresses(Link *link); int link_drop_foreign_addresses(Link *link); int link_serialize_addresses(Link *link, FILE *f); int link_deserialize_addresses(Link *link, const char *addresses); +bool link_address_is_dynamic(const Link *link, const Address *address); void ipv4_dad_unref(Link *link); int ipv4_dad_stop(Link *link); |