]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-client: report transient DHCP failure to the caller
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Oct 2020 14:51:25 +0000 (16:51 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 30 Nov 2020 03:37:36 +0000 (12:37 +0900)
commitfb536bc5daf4a57b3bdd277480d599cbf785b37d
tree7a3b8c02ecde0299d42bfa75c241571c87c76589
parent3ca1fab70a0db80dd0460478ead42c6db284ee7b
sd-dhcp-client: report transient DHCP failure to the caller

So far we only reported major state transitions like failure to acquire
the message. Let's report the initial failure after a few timeouts in
a new event type.

The number of timeouts is hardcoded as 3, since Windows seems to be using
that. I don't think we need to make this configurable out of the box. A
reasonable default may be enough.
src/libsystemd-network/sd-dhcp-client.c
src/systemd/sd-dhcp-client.h