summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@redhat.com>2019-05-04 17:10:54 +0530
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-05-07 17:12:04 +0200
commit715cedfbf03a2eb1d4dca5d1b2b876e52a3b652d (patch)
treec8d6c1671890b82c847f79b0c398f9c7314c97a0 /src/systemd
parent11793fcd638ea0511761c536696922e0dec6d495 (diff)
downloadsystemd-715cedfbf03a2eb1d4dca5d1b2b876e52a3b652d.tar.gz
networkd: Allow DHCP4 client to set the number to attempt to reconfigure.
Otherwise current value is 6 and after 6 it will give up.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-dhcp-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-dhcp-client.h b/src/systemd/sd-dhcp-client.h
index bd0d429df6..d9b57e2c73 100644
--- a/src/systemd/sd-dhcp-client.h
+++ b/src/systemd/sd-dhcp-client.h
@@ -154,6 +154,9 @@ int sd_dhcp_client_get_client_id(
int sd_dhcp_client_set_mtu(
sd_dhcp_client *client,
uint32_t mtu);
+int sd_dhcp_client_set_max_attempts(
+ sd_dhcp_client *client,
+ uint64_t attempt);
int sd_dhcp_client_set_client_port(
sd_dhcp_client *client,
uint16_t port);