summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 01:30:09 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 17:15:25 +0900
commit6906794dd1698954b349ec3ec84f1494ecd63cd3 (patch)
treec23e9fd5a2dfd3047370d8b10f115b2712d8c158 /src/network/networkd-link.h
parent5d976f5f64a29e9df0afe95724716eb9c4221b24 (diff)
downloadsystemd-6906794dd1698954b349ec3ec84f1494ecd63cd3.tar.gz
network: dhcp4: do not assign new address before old one is not removed
If DHCP4 client lost a lease, and then soon acquire new lease, then the removal of the old address may not be completed. If that happens, and the new and old addresses are the same, then the new address will be considered as a foreign address. Such a situation can occur when the DHCP4 server is restarted. This makes networkd wait for the removal of the old address when a new lease is acquired. This also makes the link in configuring state when renewing address.
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index 5e5e1c8335..7b39dd91ae 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -100,6 +100,7 @@ typedef struct Link {
char *lease_file;
uint32_t original_mtu;
unsigned dhcp4_messages;
+ unsigned dhcp4_remove_messages;
unsigned dhcp6_address_messages;
unsigned dhcp6_route_messages;
unsigned dhcp6_pd_address_messages;