]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: dhcp4: also support semi-static routes with Gateway=_dhcp4 when UseGateway...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Jul 2021 16:06:08 +0000 (01:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Jul 2021 19:17:09 +0000 (04:17 +0900)
commit0ebab55f4f7550737d3db0985c5735580e59c7e7
tree2e2961c6e1bee5c220f3685c78646a9f8df18ded
parent77976a6877d9b115814ddff19cd4cdbf8ca91848
network: dhcp4: also support semi-static routes with Gateway=_dhcp4 when UseGateway=no or UseRoutes=no

This makes the default gateway is read from classless static routes or
router option even if UseGateway=no or UseRoutes=no, and will be used
when configuring semi-static routes such that specified with Gateway=_dhcp4.

This also changes the behavior of RoutesToDNS= or RoutesToNTP=.
Previously, the DNS or NTP servers are not in the same network, then the
routes to the servers were not configured when UseGateway=no or
UseRoutes=no. With this commit, the default gateway in classless static
routes or router option will used to connecting the servers even if
UseGateway=no or UseRoutes=no.

Fixes #20208.
src/network/networkd-dhcp4.c