summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp4.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-10-19 18:35:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-10-20 18:54:08 +0200
commit0bc30a20382d944908897c226e5675f7152b38f5 (patch)
tree85b9b05c55e7821b34ac643550e86aac50bab333 /src/network/networkd-dhcp4.h
parentsd-dhcp-client: always use sd_dhcp_client.timeout_ipv6_only_mode for delaying... (diff)
downloadsystemd-0bc30a20382d944908897c226e5675f7152b38f5.tar.xz
systemd-0bc30a20382d944908897c226e5675f7152b38f5.zip
network,dhcp: restart client with 'networkctl renew' when delayed by IPv6 only mode
This is convenient when the server supports IPv6 only mode. Otherwise, we cannot request a new address during the client is waiting an IPv6 connectivity. Note, the minimal timespan is 5min, and a server may send a quite large value.
Diffstat (limited to 'src/network/networkd-dhcp4.h')
-rw-r--r--src/network/networkd-dhcp4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp4.h b/src/network/networkd-dhcp4.h
index d36b058546..b3fe0272fc 100644
--- a/src/network/networkd-dhcp4.h
+++ b/src/network/networkd-dhcp4.h
@@ -20,6 +20,7 @@ int dhcp4_start_full(Link *link, bool set_ipv6_connectivity);
static inline int dhcp4_start(Link *link) {
return dhcp4_start_full(link, true);
}
+int dhcp4_renew(Link *link);
int dhcp4_lease_lost(Link *link);
int dhcp4_check_ready(Link *link);