diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-26 19:19:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-26 20:44:20 +0200 |
commit | 8eb9058dc1f99a5eb9b8726a978fcc0720837a10 (patch) | |
tree | 9e2670f8a77d6fd01d763c7097908f6824694571 /src/network/networkd.h | |
parent | 43f447b121b38c01a7c5626a51cc571a822250b8 (diff) |
dhcp,network: implement RFC 4833 (DHCP Timezone option)
This one is simply to add: encode the tzdata timezone in the DHCP
options and optionally make use of it.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 5340922bf1..a337ea7bf0 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -143,12 +143,15 @@ struct Network { bool dhcp_broadcast; bool dhcp_critical; bool dhcp_routes; + bool dhcp_timezone; unsigned dhcp_route_metric; AddressFamilyBoolean link_local; bool ipv4ll_route; union in_addr_union ipv6_token; bool dhcp_server; + char *dhcp_server_timezone; + bool dhcp_server_emit_timezone; bool use_bpdu; bool hairpin; @@ -461,3 +464,5 @@ int config_parse_ipv6_privacy_extensions(const char *unit, const char *filename, /* Hostname */ int config_parse_hostname(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); + +int config_parse_timezone(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |