]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-network-gperf.gperf
networkd: Add EmitRouter= option for DHCP Server (#3251)
[thirdparty/systemd.git] / src / network / networkd-network-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "networkd.h"
5 #include "networkd-conf.h"
6 #include "network-internal.h"
7 %}
8 struct ConfigPerfItem;
9 %null_strings
10 %language=ANSI-C
11 %define slot-name section_and_lvalue
12 %define hash-function-name network_network_gperf_hash
13 %define lookup-function-name network_network_gperf_lookup
14 %readonly-tables
15 %omit-struct-type
16 %struct-type
17 %includes
18 %%
19 Match.MACAddress, config_parse_hwaddr, 0, offsetof(Network, match_mac)
20 Match.Path, config_parse_strv, 0, offsetof(Network, match_path)
21 Match.Driver, config_parse_strv, 0, offsetof(Network, match_driver)
22 Match.Type, config_parse_strv, 0, offsetof(Network, match_type)
23 Match.Name, config_parse_ifnames, 0, offsetof(Network, match_name)
24 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(Network, match_host)
25 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(Network, match_virt)
26 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel)
27 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch)
28 Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac)
29 Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu)
30 Network.Description, config_parse_string, 0, offsetof(Network, description)
31 Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
32 Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
33 Network.VLAN, config_parse_netdev, 0, 0
34 Network.MACVLAN, config_parse_netdev, 0, 0
35 Network.MACVTAP, config_parse_netdev, 0, 0
36 Network.IPVLAN, config_parse_netdev, 0, 0
37 Network.VXLAN, config_parse_netdev, 0, 0
38 Network.Tunnel, config_parse_tunnel, 0, 0
39 Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
40 Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
41 Network.LinkLocalAddressing, config_parse_address_family_boolean, 0, offsetof(Network, link_local)
42 Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route)
43 Network.IPv6Token, config_parse_ipv6token, 0, offsetof(Network, ipv6_token)
44 Network.LLDP, config_parse_lldp_mode, 0, offsetof(Network, lldp_mode)
45 Network.EmitLLDP, config_parse_lldp_emit, 0, offsetof(Network, lldp_emit)
46 Network.Address, config_parse_address, 0, 0
47 Network.Gateway, config_parse_gateway, 0, 0
48 Network.Domains, config_parse_domains, 0, 0
49 Network.DNS, config_parse_strv, 0, offsetof(Network, dns)
50 Network.LLMNR, config_parse_resolve_support, 0, offsetof(Network, llmnr)
51 Network.MulticastDNS, config_parse_resolve_support, 0, offsetof(Network, mdns)
52 Network.DNSSEC, config_parse_dnssec_mode, 0, offsetof(Network, dnssec_mode)
53 Network.DNSSECNegativeTrustAnchors, config_parse_dnssec_negative_trust_anchors, 0, offsetof(Network, dnssec_negative_trust_anchors)
54 Network.NTP, config_parse_strv, 0, offsetof(Network, ntp)
55 Network.IPForward, config_parse_address_family_boolean_with_kernel,0, offsetof(Network, ip_forward)
56 Network.IPMasquerade, config_parse_bool, 0, offsetof(Network, ip_masquerade)
57 Network.IPv6PrivacyExtensions, config_parse_ipv6_privacy_extensions, 0, offsetof(Network, ipv6_privacy_extensions)
58 Network.IPv6AcceptRouterAdvertisements, config_parse_tristate, 0, offsetof(Network, ipv6_accept_ra)
59 Network.IPv6DuplicateAddressDetection, config_parse_int, 0, offsetof(Network, ipv6_dad_transmits)
60 Network.IPv6HopLimit, config_parse_int, 0, offsetof(Network, ipv6_hop_limit)
61 Network.ProxyARP, config_parse_tristate, 0, offsetof(Network, proxy_arp)
62 Network.BindCarrier, config_parse_strv, 0, offsetof(Network, bind_carrier)
63 Address.Address, config_parse_address, 0, 0
64 Address.Peer, config_parse_address, 0, 0
65 Address.Broadcast, config_parse_broadcast, 0, 0
66 Address.Label, config_parse_label, 0, 0
67 Address.PreferredLifetime, config_parse_lifetime, 0, 0
68 Route.Gateway, config_parse_gateway, 0, 0
69 Route.Destination, config_parse_destination, 0, 0
70 Route.Source, config_parse_destination, 0, 0
71 Route.Metric, config_parse_route_priority, 0, 0
72 Route.Scope, config_parse_route_scope, 0, 0
73 Route.PreferredSource, config_parse_preferred_src, 0, 0
74 Route.Table, config_parse_route_table, 0, 0
75 DHCP.ClientIdentifier, config_parse_dhcp_client_identifier, 0, offsetof(Network, dhcp_client_identifier)
76 DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
77 DHCP.UseNTP, config_parse_bool, 0, offsetof(Network, dhcp_use_ntp)
78 DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
79 DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
80 DHCP.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
81 DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_use_routes)
82 DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_send_hostname)
83 DHCP.Hostname, config_parse_hostname, 0, offsetof(Network, dhcp_hostname)
84 DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast)
85 DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
86 DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
87 DHCP.DUIDType, config_parse_duid_type, 0, offsetof(Network, duid.type)
88 DHCP.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Network, duid)
89 DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
90 DHCP.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
91 DHCP.IAID, config_parse_iaid, 0, offsetof(Network, iaid)
92 DHCPServer.MaxLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_max_lease_time_usec)
93 DHCPServer.DefaultLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_default_lease_time_usec)
94 DHCPServer.EmitDNS, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_dns)
95 DHCPServer.DNS, config_parse_dhcp_server_dns, 0, 0
96 DHCPServer.EmitNTP, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_ntp)
97 DHCPServer.NTP, config_parse_dhcp_server_ntp, 0, 0
98 DHCPServer.EmitRouter, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_router)
99 DHCPServer.EmitTimezone, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_timezone)
100 DHCPServer.Timezone, config_parse_timezone, 0, offsetof(Network, dhcp_server_timezone)
101 DHCPServer.PoolOffset, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_offset)
102 DHCPServer.PoolSize, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_size)
103 Bridge.Cost, config_parse_unsigned, 0, offsetof(Network, cost)
104 Bridge.UseBPDU, config_parse_bool, 0, offsetof(Network, use_bpdu)
105 Bridge.HairPin, config_parse_bool, 0, offsetof(Network, hairpin)
106 Bridge.FastLeave, config_parse_bool, 0, offsetof(Network, fast_leave)
107 Bridge.AllowPortToBeRoot, config_parse_bool, 0, offsetof(Network, allow_port_to_be_root)
108 Bridge.UnicastFlood, config_parse_bool, 0, offsetof(Network, unicast_flood)
109 BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0
110 BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0
111 /* backwards compatibility: do not add new entries to this section */
112 Network.IPv4LL, config_parse_ipv4ll, 0, offsetof(Network, link_local)
113 DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
114 DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
115 DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
116 DHCP.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
117 DHCPv4.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
118 DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)