]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-network-gperf.gperf
DHCP DUID, IAID configuration options
[thirdparty/systemd.git] / src / network / networkd-network-gperf.gperf
CommitLineData
c0dda186
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
4#include "networkd.h"
413708d1 5#include "networkd-conf.h"
c6f7c917 6#include "network-internal.h"
c0dda186
TG
7%}
8struct 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%%
4f2e437a
SS
19Match.MACAddress, config_parse_hwaddr, 0, offsetof(Network, match_mac)
20Match.Path, config_parse_strv, 0, offsetof(Network, match_path)
21Match.Driver, config_parse_strv, 0, offsetof(Network, match_driver)
22Match.Type, config_parse_strv, 0, offsetof(Network, match_type)
23Match.Name, config_parse_ifnames, 0, offsetof(Network, match_name)
24Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(Network, match_host)
25Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(Network, match_virt)
26Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel)
27Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch)
28Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac)
29Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu)
413708d1
VK
30Link.IAID, config_parse_iaid, 0, offsetof(Network, iaid)
31DUID.Type, config_parse_duid_type, 0, offsetof(Network, duid_type)
32DUID.RawData, config_parse_duid_rawdata, DUID_CONFIG_SOURCE_NETWORK, offsetof(Network, dhcp_duid)
4f2e437a
SS
33Network.Description, config_parse_string, 0, offsetof(Network, description)
34Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
35Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
36Network.VLAN, config_parse_netdev, 0, 0
37Network.MACVLAN, config_parse_netdev, 0, 0
38Network.MACVTAP, config_parse_netdev, 0, 0
39Network.IPVLAN, config_parse_netdev, 0, 0
40Network.VXLAN, config_parse_netdev, 0, 0
41Network.Tunnel, config_parse_tunnel, 0, 0
42Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
43Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
44Network.LinkLocalAddressing, config_parse_address_family_boolean, 0, offsetof(Network, link_local)
45Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route)
46Network.IPv6Token, config_parse_ipv6token, 0, offsetof(Network, ipv6_token)
34437b4f 47Network.LLDP, config_parse_lldp_mode, 0, offsetof(Network, lldp_mode)
8e1ad1ea 48Network.EmitLLDP, config_parse_bool, 0, offsetof(Network, lldp_emit)
4f2e437a
SS
49Network.Address, config_parse_address, 0, 0
50Network.Gateway, config_parse_gateway, 0, 0
3df9bec5 51Network.Domains, config_parse_domains, 0, 0
4f2e437a 52Network.DNS, config_parse_strv, 0, offsetof(Network, dns)
af49ca27 53Network.LLMNR, config_parse_resolve_support, 0, offsetof(Network, llmnr)
aaa297d4 54Network.MulticastDNS, config_parse_resolve_support, 0, offsetof(Network, mdns)
ad6c0475 55Network.DNSSEC, config_parse_dnssec_mode, 0, offsetof(Network, dnssec_mode)
8a516214 56Network.DNSSECNegativeTrustAnchors, config_parse_dnssec_negative_trust_anchors, 0, offsetof(Network, dnssec_negative_trust_anchors)
4f2e437a
SS
57Network.NTP, config_parse_strv, 0, offsetof(Network, ntp)
58Network.IPForward, config_parse_address_family_boolean_with_kernel,0, offsetof(Network, ip_forward)
59Network.IPMasquerade, config_parse_bool, 0, offsetof(Network, ip_masquerade)
60Network.IPv6PrivacyExtensions, config_parse_ipv6_privacy_extensions, 0, offsetof(Network, ipv6_privacy_extensions)
61Network.IPv6AcceptRouterAdvertisements, config_parse_tristate, 0, offsetof(Network, ipv6_accept_ra)
8749cbcd 62Network.IPv6DuplicateAddressDetection, config_parse_int, 0, offsetof(Network, ipv6_dad_transmits)
b69c3180 63Network.IPv6HopLimit, config_parse_int, 0, offsetof(Network, ipv6_hop_limit)
4f2e437a
SS
64Network.BindCarrier, config_parse_strv, 0, offsetof(Network, bind_carrier)
65Address.Address, config_parse_address, 0, 0
66Address.Peer, config_parse_address, 0, 0
67Address.Broadcast, config_parse_broadcast, 0, 0
68Address.Label, config_parse_label, 0, 0
69Route.Gateway, config_parse_gateway, 0, 0
70Route.Destination, config_parse_destination, 0, 0
71Route.Source, config_parse_destination, 0, 0
72Route.Metric, config_parse_route_priority, 0, 0
73Route.Scope, config_parse_route_scope, 0, 0
0d07e595 74Route.PreferredSource, config_parse_preferred_src, 0, 0
4f2e437a 75DHCP.ClientIdentifier, config_parse_dhcp_client_identifier, 0, offsetof(Network, dhcp_client_identifier)
27cb34f5
LP
76DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
77DHCP.UseNTP, config_parse_bool, 0, offsetof(Network, dhcp_use_ntp)
78DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
79DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
b2a81c0b 80DHCP.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
27cb34f5
LP
81DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_use_routes)
82DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_send_hostname)
83DHCP.Hostname, config_parse_hostname, 0, offsetof(Network, dhcp_hostname)
4f2e437a
SS
84DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast)
85DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
86DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
87DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
27cb34f5 88DHCP.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
4f2e437a
SS
89DHCPServer.MaxLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_max_lease_time_usec)
90DHCPServer.DefaultLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_default_lease_time_usec)
91DHCPServer.EmitDNS, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_dns)
92DHCPServer.DNS, config_parse_dhcp_server_dns, 0, 0
93DHCPServer.EmitNTP, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_ntp)
94DHCPServer.NTP, config_parse_dhcp_server_ntp, 0, 0
95DHCPServer.EmitTimezone, config_parse_bool, 0, offsetof(Network, dhcp_server_emit_timezone)
96DHCPServer.Timezone, config_parse_timezone, 0, offsetof(Network, dhcp_server_timezone)
97DHCPServer.PoolOffset, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_offset)
98DHCPServer.PoolSize, config_parse_uint32, 0, offsetof(Network, dhcp_server_pool_size)
99Bridge.Cost, config_parse_unsigned, 0, offsetof(Network, cost)
100Bridge.UseBPDU, config_parse_bool, 0, offsetof(Network, use_bpdu)
101Bridge.HairPin, config_parse_bool, 0, offsetof(Network, hairpin)
102Bridge.FastLeave, config_parse_bool, 0, offsetof(Network, fast_leave)
103Bridge.AllowPortToBeRoot, config_parse_bool, 0, offsetof(Network, allow_port_to_be_root)
104Bridge.UnicastFlood, config_parse_bool, 0, offsetof(Network, unicast_flood)
105BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0
106BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0
4cc7a82c 107/* backwards compatibility: do not add new entries to this section */
4f2e437a 108Network.IPv4LL, config_parse_ipv4ll, 0, offsetof(Network, link_local)
27cb34f5
LP
109DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_use_dns)
110DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_use_mtu)
111DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname)
b2a81c0b
LP
112DHCP.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
113DHCPv4.UseDomainName, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains)
4f2e437a 114DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)