network/dhcp4: always honor specified gateway address
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 Jul 2023 14:34:18 +0000 (23:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Jul 2023 20:47:11 +0000 (05:47 +0900)
commit4001653ddb2067978af3c0aff59e41019559cd57
tree104e63bd28bb672af19f93f71fce726ff040b4c2
parent0ce86f5eeb0921b44a9782260a8c88aafb15ffde
network/dhcp4: always honor specified gateway address

Follow-up for 77451f654a89d822cd288883edfac315949d1cb6.

Now, gateway for routes to DNS or NTP servers should be correctly picked,
hence it is not necessary to adjust the gateway address in
dhcp4_request_route_auto() again.

Also, similar for classless static routes, let's always honor
gateway address specified in (non-classless) static routes.
src/network/networkd-dhcp4.c
test/test-network/systemd-networkd-tests.py