summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/network-internal.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-02 06:35:43 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-02 10:02:44 +0900
commit32f8a613c542a30eb48317db3f446360afa89a73 (patch)
tree35c34c3087e858064614f1961948c0b7aab8e3bf /src/libsystemd-network/network-internal.h
parent64a6b5ed213beea453cfa13575f5d319dd9c5991 (diff)
downloadsystemd-32f8a613c542a30eb48317db3f446360afa89a73.tar.gz
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/network-internal.h')
-rw-r--r--src/libsystemd-network/network-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h
index 895a00d01b..5aa225e977 100644
--- a/src/libsystemd-network/network-internal.h
+++ b/src/libsystemd-network/network-internal.h
@@ -21,7 +21,7 @@ int deserialize_in6_addrs(struct in6_addr **addresses, const char *string);
struct sd_dhcp_route;
struct sd_dhcp_lease;
-void serialize_dhcp_routes(FILE *f, const char *key, sd_dhcp_route **routes, size_t size);
+void serialize_dhcp_routes(FILE *f, const char *key, struct sd_dhcp_route **routes, size_t size);
int deserialize_dhcp_routes(struct sd_dhcp_route **ret, size_t *ret_size, const char *string);
/* It is not necessary to add deserialize_dhcp_option(). Use unhexmem() instead. */