network: fixes gateway assignment through DHCPv4
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Aug 2020 13:31:01 +0000 (22:31 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2020 09:12:03 +0000 (11:12 +0200)
commit2200c3cf56ca6ddede06c15ca1d9b3dfc60c33ae
tree64d93f6d54a4de0811a5121adb382b35f730c9c5
parent5b49641015adcc7e8edbb9e8e54d5ac5ddf3bf52
network: fixes gateway assignment through DHCPv4

This fixes the following issue:
- If a DHCP lease does not contains router option, then routes with
`Gateway=_dhcp` setting introduce unexpected results.

This also makes several failure paths critical. And adjust warnings when
classless routes are provided.
src/network/networkd-dhcp4.c