]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-network-gperf.gperf
Merge pull request #7745 from poettering/sockaddr-size
[thirdparty/systemd.git] / src / network / networkd-network-gperf.gperf
1 %{
2 #if __GNUC__ >= 7
3 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4 #endif
5 #include <stddef.h>
6 #include "conf-parser.h"
7 #include "networkd-conf.h"
8 #include "networkd-network.h"
9 #include "network-internal.h"
10 #include "vlan-util.h"
11 %}
12 struct ConfigPerfItem;
13 %null_strings
14 %language=ANSI-C
15 %define slot-name section_and_lvalue
16 %define hash-function-name network_network_gperf_hash
17 %define lookup-function-name network_network_gperf_lookup
18 %readonly-tables
19 %omit-struct-type
20 %struct-type
21 %includes
22 %%
23 Match.MACAddress, config_parse_hwaddr, 0, offsetof(Network, match_mac)
24 Match.Path, config_parse_strv, 0, offsetof(Network, match_path)
25 Match.Driver, config_parse_strv, 0, offsetof(Network, match_driver)
26 Match.Type, config_parse_strv, 0, offsetof(Network, match_type)
27 Match.Name, config_parse_ifnames, 0, offsetof(Network, match_name)
28 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(Network, match_host)
29 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(Network, match_virt)
30 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel_cmdline)
31 Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(Network, match_kernel_version)
32 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch)
33 Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac)
34 Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu)
35 Link.ARP, config_parse_tristate, 0, offsetof(Network, arp)
36 Link.Unmanaged, config_parse_bool, 0, offsetof(Network, unmanaged)
37 Link.RequiredForOnline, config_parse_bool, 0, offsetof(Network, required_for_online)
38 Network.Description, config_parse_string, 0, offsetof(Network, description)
39 Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
40 Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
41 Network.VLAN, config_parse_netdev, 0, 0
42 Network.MACVLAN, config_parse_netdev, 0, 0
43 Network.MACVTAP, config_parse_netdev, 0, 0
44 Network.IPVLAN, config_parse_netdev, 0, 0
45 Network.VXLAN, config_parse_netdev, 0, 0
46 Network.Tunnel, config_parse_tunnel, 0, 0
47 Network.VRF, config_parse_netdev, 0, 0
48 Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
49 Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
50 Network.LinkLocalAddressing, config_parse_address_family_boolean, 0, offsetof(Network, link_local)
51 Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route)
52 Network.IPv6Token, config_parse_ipv6token, 0, offsetof(Network, ipv6_token)
53 Network.LLDP, config_parse_lldp_mode, 0, offsetof(Network, lldp_mode)
54 Network.EmitLLDP, config_parse_lldp_emit, 0, offsetof(Network, lldp_emit)
55 Network.Address, config_parse_address, 0, 0
56 Network.Gateway, config_parse_gateway, 0, 0
57 Network.Domains, config_parse_domains, 0, 0
58 Network.DNS, config_parse_dns, 0, 0
59 Network.LLMNR, config_parse_resolve_support, 0, offsetof(Network, llmnr)
60 Network.MulticastDNS, config_parse_resolve_support, 0, offsetof(Network, mdns)
61 Network.DNSSEC, config_parse_dnssec_mode, 0, offsetof(Network, dnssec_mode)
62 Network.DNSSECNegativeTrustAnchors, config_parse_dnssec_negative_trust_anchors, 0, 0
63 Network.NTP, config_parse_ntp, 0, offsetof(Network, ntp)
64 Network.IPForward, config_parse_address_family_boolean_with_kernel,0, offsetof(Network, ip_forward)
65 Network.IPMasquerade, config_parse_bool, 0, offsetof(Network, ip_masquerade)
66 Network.IPv6PrivacyExtensions, config_parse_ipv6_privacy_extensions, 0, offsetof(Network, ipv6_privacy_extensions)
67 Network.IPv6AcceptRA, config_parse_tristate, 0, offsetof(Network, ipv6_accept_ra)
68 Network.IPv6AcceptRouterAdvertisements, config_parse_tristate, 0, offsetof(Network, ipv6_accept_ra)
69 Network.IPv6DuplicateAddressDetection, config_parse_int, 0, offsetof(Network, ipv6_dad_transmits)
70 Network.IPv6HopLimit, config_parse_int, 0, offsetof(Network, ipv6_hop_limit)
71 Network.IPv6ProxyNDP, config_parse_tristate, 0, offsetof(Network, ipv6_proxy_ndp)
72 Network.ActiveSlave, config_parse_bool, 0, offsetof(Network, active_slave)
73 Network.PrimarySlave, config_parse_bool, 0, offsetof(Network, primary_slave)
74 Network.IPv4ProxyARP, config_parse_tristate, 0, offsetof(Network, proxy_arp)
75 Network.ProxyARP, config_parse_tristate, 0, offsetof(Network, proxy_arp)
76 Network.IPv6ProxyNDPAddress, config_parse_ipv6_proxy_ndp_address, 0, 0
77 Network.BindCarrier, config_parse_strv, 0, offsetof(Network, bind_carrier)
78 Network.ConfigureWithoutCarrier, config_parse_bool, 0, offsetof(Network, configure_without_carrier)
79 Address.Address, config_parse_address, 0, 0
80 Address.Peer, config_parse_address, 0, 0
81 Address.Broadcast, config_parse_broadcast, 0, 0
82 Address.Label, config_parse_label, 0, 0
83 Address.PreferredLifetime, config_parse_lifetime, 0, 0
84 Address.HomeAddress, config_parse_address_flags, 0, 0
85 Address.DuplicateAddressDetection, config_parse_address_flags, 0, 0
86 Address.ManageTemporaryAddress, config_parse_address_flags, 0, 0
87 Address.PrefixRoute, config_parse_address_flags, 0, 0
88 Address.AutoJoin, config_parse_address_flags, 0, 0
89 Address.Scope, config_parse_address_scope, 0, 0
90 IPv6AddressLabel.Prefix, config_parse_address_label_prefix, 0, 0
91 IPv6AddressLabel.Label, config_parse_address_label, 0, 0
92 RoutingPolicyRule.TypeOfService, config_parse_routing_policy_rule_tos, 0, 0
93 RoutingPolicyRule.Priority, config_parse_routing_policy_rule_priority, 0, 0
94 RoutingPolicyRule.Table, config_parse_routing_policy_rule_table, 0, 0
95 RoutingPolicyRule.FirewallMark, config_parse_routing_policy_rule_fwmark_mask, 0, 0
96 RoutingPolicyRule.From, config_parse_routing_policy_rule_prefix, 0, 0
97 RoutingPolicyRule.To, config_parse_routing_policy_rule_prefix, 0, 0
98 RoutingPolicyRule.IncomingInterface, config_parse_routing_policy_rule_device, 0, 0
99 RoutingPolicyRule.OutgoingInterface, config_parse_routing_policy_rule_device, 0, 0
100 Route.Gateway, config_parse_gateway, 0, 0
101 Route.Destination, config_parse_destination, 0, 0
102 Route.Source, config_parse_destination, 0, 0
103 Route.Metric, config_parse_route_priority, 0, 0
104 Route.Scope, config_parse_route_scope, 0, 0
105 Route.PreferredSource, config_parse_preferred_src, 0, 0
106 Route.Table, config_parse_route_table, 0, 0
107 Route.GatewayOnlink, config_parse_gateway_onlink, 0, 0
108 Route.IPv6Preference, config_parse_ipv6_route_preference, 0, 0
109 Route.Protocol, config_parse_route_protocol, 0, 0
110 Route.Type, config_parse_route_type, 0, 0
111 DHCP.ClientIdentifier, config_parse_dhcp_client_identifier, 0, offsetof(Network, dhcp_client_identifier)
112 DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
113 DHCP.UseNTP, config_parse_bool, 0, offsetof(Network, dhcp_use_ntp)
114 DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
115 DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
116 DHCP.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
117 DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_use_routes)
118 DHCP.Anonymize, config_parse_bool, 0, offsetof(Network, dhcp_anonymize)
119 DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_send_hostname)
120 DHCP.Hostname, config_parse_hostname, 0, offsetof(Network, dhcp_hostname)
121 DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast)
122 DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
123 DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
124 DHCP.DUIDType, config_parse_duid_type, 0, offsetof(Network, duid.type)
125 DHCP.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Network, duid)
126 DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
127 DHCP.RouteTable, config_parse_dhcp_route_table, 0, 0
128 DHCP.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
129 DHCP.IAID, config_parse_iaid, 0, offsetof(Network, iaid)
130 DHCP.ListenPort, config_parse_uint16, 0, offsetof(Network, dhcp_client_port)
131 IPv6AcceptRA.UseDNS, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_dns)
132 IPv6AcceptRA.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, ipv6_accept_ra_use_domains)
133 IPv6AcceptRA.RouteTable, config_parse_uint32, 0, offsetof(Network, ipv6_accept_ra_route_table)
134 DHCPServer.MaxLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_max_lease_time_usec)
135 DHCPServer.DefaultLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_default_lease_time_usec)
136 DHCPServer.EmitDNS, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_dns)
137 DHCPServer.DNS, config_parse_dhcp_server_dns, 0, 0
138 DHCPServer.EmitNTP, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_ntp)
139 DHCPServer.NTP, config_parse_dhcp_server_ntp, 0, 0
140 DHCPServer.EmitRouter, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_router)
141 DHCPServer.EmitTimezone, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_timezone)
142 DHCPServer.Timezone, config_parse_timezone, 0, offsetof(Network, dhcp_server_timezone)
143 DHCPServer.PoolOffset, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_offset)
144 DHCPServer.PoolSize, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_size)
145 Bridge.Cost, config_parse_uint32, 0, offsetof(Network, cost)
146 Bridge.UseBPDU, config_parse_bool, 0, offsetof(Network, use_bpdu)
147 Bridge.HairPin, config_parse_bool, 0, offsetof(Network, hairpin)
148 Bridge.FastLeave, config_parse_bool, 0, offsetof(Network, fast_leave)
149 Bridge.AllowPortToBeRoot, config_parse_bool, 0, offsetof(Network, allow_port_to_be_root)
150 Bridge.UnicastFlood, config_parse_bool, 0, offsetof(Network, unicast_flood)
151 Bridge.Priority, config_parse_bridge_port_priority, 0, offsetof(Network, priority)
152 BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0
153 BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0
154 BridgeVLAN.PVID, config_parse_brvlan_pvid, 0, 0
155 BridgeVLAN.VLAN, config_parse_brvlan_vlan, 0, 0
156 BridgeVLAN.EgressUntagged, config_parse_brvlan_untagged, 0, 0
157 Network.IPv6PrefixDelegation, config_parse_bool, 0, offsetof(Network, router_prefix_delegation)
158 IPv6PrefixDelegation.RouterLifetimeSec, config_parse_sec, 0, offsetof(Network, router_lifetime_usec)
159 IPv6PrefixDelegation.Managed, config_parse_bool, 0, offsetof(Network, router_managed)
160 IPv6PrefixDelegation.OtherInformation, config_parse_bool, 0, offsetof(Network, router_other_information)
161 IPv6PrefixDelegation.RouterPreference, config_parse_router_preference, 0, 0
162 IPv6PrefixDelegation.EmitDNS, config_parse_bool, 0, offsetof(Network, router_emit_dns)
163 IPv6PrefixDelegation.DNS, config_parse_radv_dns, 0, 0
164 IPv6PrefixDelegation.EmitDomains, config_parse_bool, 0, offsetof(Network, router_emit_domains)
165 IPv6PrefixDelegation.Domains, config_parse_radv_search_domains, 0, 0
166 IPv6PrefixDelegation.DNSLifetimeSec, config_parse_sec, 0, offsetof(Network, router_dns_lifetime_usec)
167 IPv6Prefix.Prefix, config_parse_prefix, 0, 0
168 IPv6Prefix.OnLink, config_parse_prefix_flags, 0, 0
169 IPv6Prefix.AddressAutoconfiguration, config_parse_prefix_flags, 0, 0
170 IPv6Prefix.ValidLifetimeSec, config_parse_prefix_lifetime, 0, 0
171 IPv6Prefix.PreferredLifetimeSec, config_parse_prefix_lifetime, 0, 0
172 /* backwards compatibility: do not add new entries to this section */
173 Network.IPv4LL, config_parse_ipv4ll, 0, offsetof(Network, link_local)
174 DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
175 DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
176 DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
177 DHCP.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
178 DHCPv4.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
179 DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)