network/route: move several conf parsers to networkd-route-metric.c and networkd...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Jan 2024 20:08:40 +0000 (05:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Jan 2024 16:39:58 +0000 (01:39 +0900)
commitdf8767fc8d8824ffc0a6858de7647b3cc8ee5fa0
treef448b167e2d431c1ea6ea4b4c81a9a061834ff12
parentf48e52bda8eff38d5ae91168c1e02fbd4b53bd41
network/route: move several conf parsers to networkd-route-metric.c and networkd-route-nexthop.c

This also split config_parse_route_boolean() into two:
for GatewayOnline= and boolean route metrics.

No functional change, just refactoring and preparation for later commits.
src/network/meson.build
src/network/networkd-network-gperf.gperf
src/network/networkd-route-metric.c [new file with mode: 0644]
src/network/networkd-route-metric.h [new file with mode: 0644]
src/network/networkd-route-nexthop.c [new file with mode: 0644]
src/network/networkd-route-nexthop.h [new file with mode: 0644]
src/network/networkd-route.c
src/network/networkd-route.h