1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2%{
3#if __GNUC__ >= 7
4_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
5#endif
6#include <stddef.h>
7#include "conf-parser.h"
8#include "networkd-conf.h"
9#include "networkd-dhcp-common.h"
10#include "networkd-manager.h"
11#include "networkd-route-util.h"
12%}
13struct ConfigPerfItem;
14%null_strings
15%language=ANSI-C
16%define slot-name section_and_lvalue
17%define hash-function-name networkd_gperf_hash
18%define lookup-function-name networkd_gperf_lookup
19%readonly-tables
20%omit-struct-type
21%struct-type
22%includes
23%%
24Network.SpeedMeter,                      config_parse_bool,                      0,          offsetof(Manager, use_speed_meter)
25Network.SpeedMeterIntervalSec,           config_parse_sec,                       0,          offsetof(Manager, speed_meter_interval_usec)
26Network.ManageForeignRoutingPolicyRules, config_parse_bool,                      0,          offsetof(Manager, manage_foreign_rules)
27Network.ManageForeignRoutes,             config_parse_bool,                      0,          offsetof(Manager, manage_foreign_routes)
28Network.RouteTable,                      config_parse_route_table_names,         0,          0
29DHCPv4.DUIDType,                         config_parse_duid_type,                 0,          offsetof(Manager, dhcp_duid)
30DHCPv4.DUIDRawData,                      config_parse_duid_rawdata,              0,          offsetof(Manager, dhcp_duid)
31DHCPv6.DUIDType,                         config_parse_duid_type,                 0,          offsetof(Manager, dhcp6_duid)
32DHCPv6.DUIDRawData,                      config_parse_duid_rawdata,              0,          offsetof(Manager, dhcp6_duid)
33/* Deprecated */
34DHCP.DUIDType,                           config_parse_manager_duid_type,         0,          0
35DHCP.DUIDRawData,                        config_parse_manager_duid_rawdata,      0,          0
36