]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-lease: store static routes and classless static routes in different arrays
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Feb 2022 21:35:43 +0000 (06:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 01:02:44 +0000 (10:02 +0900)
commit32f8a613c542a30eb48317db3f446360afa89a73
tree35c34c3087e858064614f1961948c0b7aab8e3bf
parent64a6b5ed213beea453cfa13575f5d319dd9c5991
sd-dhcp-lease: store static routes and classless static routes in different arrays

When classless static routes option is provided, then static routes
option should not be used. Hence, let's not mix and store them in one
storage.

This introduce sd_dhcp_lease_get_static_routes() and
sd_dhcp_lease_get_classless_routes().
src/libsystemd-network/dhcp-lease-internal.h
src/libsystemd-network/network-internal.h
src/libsystemd-network/sd-dhcp-lease.c
src/network/networkd-dhcp4.c
src/systemd/sd-dhcp-lease.h