diff options
author | Eugene Yakubovich <eyakubovich@gmail.com> | 2014-06-27 15:00:06 -0700 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-29 15:18:21 +0200 |
commit | e1ea665edac17d75fce01b72dadfa3211b60df2c (patch) | |
tree | 9f1d4c8ae93862cf5ebae973cd48d053ef34c0dd /src/libsystemd-network/network-internal.h | |
parent | ed942a9eb22d50f667909ad6184b45015d28d054 (diff) |
Add support for DHCP static route options
This adds support for DHCP options 33 and 121: Static Route and
Classless Static Route. To enable this feature, set UseRoutes=true
in .network file. Returned routes are added to the routing table.
Diffstat (limited to 'src/libsystemd-network/network-internal.h')
-rw-r--r-- | src/libsystemd-network/network-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h index db48c2c06c..4bde14641e 100644 --- a/src/libsystemd-network/network-internal.h +++ b/src/libsystemd-network/network-internal.h @@ -70,3 +70,10 @@ const char *net_get_name(struct udev_device *device); void serialize_in_addrs(FILE *f, const char *key, struct in_addr *addresses, size_t size); int deserialize_in_addrs(struct in_addr **addresses, size_t *size, const char *string); int deserialize_in6_addrs(struct in6_addr **addresses, size_t *size, const char *string); + + +/* don't include "dhcp-lease-internal.h" as it causes conflicts between netinet/ip.h and linux/ip.h */ +struct sd_dhcp_route; + +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, size_t *ret_allocated, const char *string); |