networkd: Allow to retain configs even if carrier is lost
authorSusant Sahani <susant@redhat.com>
Fri, 1 Jun 2018 09:34:49 +0000 (15:04 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 12:35:11 +0000 (13:35 +0100)
commit93b4dab57e2e13bd804cbee999241be65a443e2e
tree0da945d0aa79a987f2192be738dd3c5bff3528d9
parent2b3943a02b6088f999f9392cc9aa179c85958d8e
networkd: Allow to retain configs even if carrier is lost

When there is bad link in the network the carrier goes up/down.
This makes networkd stops all the clients and drop config.
But if the remote router/dhcpserver running a prevention
of DHCP Starvation attack or DHCP Flood attack it does not allow
networkd to take a DHCP lease resulting failure in configuration.
This patch allows to keep the client running and keep the conf
also for this scenario.

Closes #9111
man/systemd.network.xml
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.h
test/fuzz/fuzz-network-parser/directives.network