]>
Commit | Line | Data |
---|---|---|
9ee03516 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
413708d1 | 2 | %{ |
4831981d SL |
3 | #if __GNUC__ >= 7 |
4 | _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") | |
5 | #endif | |
413708d1 VK |
6 | #include <stddef.h> |
7 | #include "conf-parser.h" | |
8 | #include "networkd-conf.h" | |
cde74a65 | 9 | #include "networkd-dhcp-common.h" |
54bb2c0e | 10 | #include "networkd-dns.h" |
23f53b99 | 11 | #include "networkd-manager.h" |
344b3cff | 12 | #include "networkd-route-util.h" |
413708d1 VK |
13 | %} |
14 | struct ConfigPerfItem; | |
15 | %null_strings | |
16 | %language=ANSI-C | |
17 | %define slot-name section_and_lvalue | |
18 | %define hash-function-name networkd_gperf_hash | |
19 | %define lookup-function-name networkd_gperf_lookup | |
20 | %readonly-tables | |
21 | %omit-struct-type | |
22 | %struct-type | |
23 | %includes | |
24 | %% | |
d94dfe70 YW |
25 | Network.SpeedMeter, config_parse_bool, 0, offsetof(Manager, use_speed_meter) |
26 | Network.SpeedMeterIntervalSec, config_parse_sec, 0, offsetof(Manager, speed_meter_interval_usec) | |
27 | Network.ManageForeignRoutingPolicyRules, config_parse_bool, 0, offsetof(Manager, manage_foreign_rules) | |
28 | Network.ManageForeignRoutes, config_parse_bool, 0, offsetof(Manager, manage_foreign_routes) | |
bbc05bec | 29 | Network.ManageForeignNextHops, config_parse_bool, 0, offsetof(Manager, manage_foreign_nexthops) |
d94dfe70 | 30 | Network.RouteTable, config_parse_route_table_names, 0, 0 |
3976c430 YW |
31 | Network.IPv4Forwarding, config_parse_tristate, 0, offsetof(Manager, ip_forwarding[0]) |
32 | Network.IPv6Forwarding, config_parse_tristate, 0, offsetof(Manager, ip_forwarding[1]) | |
932ef6ec | 33 | Network.IPv6PrivacyExtensions, config_parse_ipv6_privacy_extensions, 0, offsetof(Manager, ipv6_privacy_extensions) |
418f2dc7 YW |
34 | Network.UseDomains, config_parse_use_domains, 0, offsetof(Manager, use_domains) |
35 | IPv6AcceptRA.UseDomains, config_parse_use_domains, 0, offsetof(Manager, ndisc_use_domains) | |
78f5c649 | 36 | DHCPv4.UseDomains, config_parse_use_domains, 0, offsetof(Manager, dhcp_use_domains) |
4e26a5ba YW |
37 | DHCPv4.DUIDType, config_parse_duid_type, 0, offsetof(Manager, dhcp_duid) |
38 | DHCPv4.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Manager, dhcp_duid) | |
78f5c649 | 39 | DHCPv6.UseDomains, config_parse_use_domains, 0, offsetof(Manager, dhcp6_use_domains) |
4e26a5ba YW |
40 | DHCPv6.DUIDType, config_parse_duid_type, 0, offsetof(Manager, dhcp6_duid) |
41 | DHCPv6.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Manager, dhcp6_duid) | |
a3ed665a | 42 | DHCPServer.PersistLeases, config_parse_bool, 0, offsetof(Manager, dhcp_server_persist_leases) |
4e26a5ba YW |
43 | /* Deprecated */ |
44 | DHCP.DUIDType, config_parse_manager_duid_type, 0, 0 | |
45 | DHCP.DUIDRawData, config_parse_manager_duid_rawdata, 0, 0 |