summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-01 22:35:43 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-02 02:02:44 +0100
commit32f8a613c542a30eb48317db3f446360afa89a73 (patch)
tree35c34c3087e858064614f1961948c0b7aab8e3bf /src/libsystemd-network/dhcp-lease-internal.h
parentMerge pull request #22351 from mrc0mmand/TEST-56-cgroupsv1 (diff)
downloadsystemd-32f8a613c542a30eb48317db3f446360afa89a73.tar.xz
systemd-32f8a613c542a30eb48317db3f446360afa89a73.zip
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().
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-lease-internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-network/dhcp-lease-internal.h b/src/libsystemd-network/dhcp-lease-internal.h
index 992ac9f325..c67e9511a1 100644
--- a/src/libsystemd-network/dhcp-lease-internal.h
+++ b/src/libsystemd-network/dhcp-lease-internal.h
@@ -16,8 +16,6 @@ struct sd_dhcp_route {
struct in_addr dst_addr;
struct in_addr gw_addr;
unsigned char dst_prefixlen;
-
- uint8_t option;
};
struct sd_dhcp_raw_option {
@@ -52,8 +50,10 @@ struct sd_dhcp_lease {
DHCPServerData servers[_SD_DHCP_LEASE_SERVER_TYPE_MAX];
- struct sd_dhcp_route *static_route;
- size_t static_route_size;
+ struct sd_dhcp_route *static_routes;
+ size_t n_static_routes;
+ struct sd_dhcp_route *classless_routes;
+ size_t n_classless_routes;
uint16_t mtu; /* 0 if unset */