]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/netdev-gperf.gperf
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / network / netdev / netdev-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 "network-internal.h"
8 #include "netdev/bond.h"
9 #include "netdev/bridge.h"
10 #include "netdev/geneve.h"
11 #include "netdev/ipvlan.h"
12 #include "netdev/macvlan.h"
13 #include "netdev/tunnel.h"
14 #include "netdev/tuntap.h"
15 #include "netdev/veth.h"
16 #include "netdev/vlan.h"
17 #include "netdev/vxlan.h"
18 #include "netdev/vrf.h"
19 #include "netdev/netdev.h"
20 #include "netdev/vxcan.h"
21 #include "netdev/wireguard.h"
22 #include "netdev/fou-tunnel.h"
23 #include "vlan-util.h"
24 %}
25 struct ConfigPerfItem;
26 %null_strings
27 %language=ANSI-C
28 %define slot-name section_and_lvalue
29 %define hash-function-name network_netdev_gperf_hash
30 %define lookup-function-name network_netdev_gperf_lookup
31 %readonly-tables
32 %omit-struct-type
33 %struct-type
34 %includes
35 %%
36 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
37 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
38 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel_cmdline)
39 Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(NetDev, match_kernel_version)
40 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
41 NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
42 NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
43 NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
44 NetDev.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(NetDev, mtu)
45 NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
46 VLAN.Id, config_parse_vlanid, 0, offsetof(VLan, id)
47 VLAN.GVRP, config_parse_tristate, 0, offsetof(VLan, gvrp)
48 VLAN.MVRP, config_parse_tristate, 0, offsetof(VLan, mvrp)
49 VLAN.LooseBinding, config_parse_tristate, 0, offsetof(VLan, loose_binding)
50 VLAN.ReorderHeader, config_parse_tristate, 0, offsetof(VLan, reorder_hdr)
51 MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
52 MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
53 IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode)
54 IPVLAN.Flags, config_parse_ipvlan_flags, 0, offsetof(IPVlan, flags)
55 Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local)
56 Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote)
57 Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos)
58 Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl)
59 Tunnel.Key, config_parse_tunnel_key, 0, offsetof(Tunnel, key)
60 Tunnel.InputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, ikey)
61 Tunnel.OutputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, okey)
62 Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc)
63 Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode)
64 Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel)
65 Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp)
66 Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit)
67 Tunnel.Independent, config_parse_bool, 0, offsetof(Tunnel, independent)
68 Tunnel.AllowLocalRemote, config_parse_tristate, 0, offsetof(Tunnel, allow_localremote)
69 Tunnel.FooOverUDP, config_parse_bool, 0, offsetof(Tunnel, fou_tunnel)
70 Tunnel.FOUDestinationPort, config_parse_ip_port, 0, offsetof(Tunnel, fou_destination_port)
71 Tunnel.FOUSourcePort, config_parse_ip_port, 0, offsetof(Tunnel, encap_src_port)
72 Tunnel.Encapsulation, config_parse_fou_encap_type, 0, offsetof(Tunnel, fou_encap_type)
73 Tunnel.IPv6RapidDeploymentPrefix, config_parse_6rd_prefix, 0, 0
74 FooOverUDP.Protocol, config_parse_uint8, 0, offsetof(FouTunnel, fou_protocol)
75 FooOverUDP.Encapsulation, config_parse_fou_encap_type, 0, offsetof(FouTunnel, fou_encap_type)
76 FooOverUDP.Port, config_parse_ip_port, 0, offsetof(FouTunnel, port)
77 Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer)
78 Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer)
79 VXCAN.Peer, config_parse_ifname, 0, offsetof(VxCan, ifname_peer)
80 VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id)
81 VXLAN.Group, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
82 VXLAN.Local, config_parse_vxlan_address, 0, offsetof(VxLan, local)
83 VXLAN.Remote, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
84 VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos)
85 VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl)
86 VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning)
87 VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
88 VXLAN.ReduceARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
89 VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss)
90 VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss)
91 VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit)
92 VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
93 VXLAN.UDPChecksum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
94 VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
95 VXLAN.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
96 VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
97 VXLAN.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
98 VXLAN.RemoteChecksumTx, config_parse_bool, 0, offsetof(VxLan, remote_csum_tx)
99 VXLAN.RemoteChecksumRx, config_parse_bool, 0, offsetof(VxLan, remote_csum_rx)
100 VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing)
101 VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy)
102 VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb)
103 VXLAN.PortRange, config_parse_port_range, 0, 0
104 VXLAN.DestinationPort, config_parse_ip_port, 0, offsetof(VxLan, dest_port)
105 VXLAN.FlowLabel, config_parse_flow_label, 0, 0
106 GENEVE.Id, config_parse_geneve_vni, 0, offsetof(Geneve, id)
107 GENEVE.Remote, config_parse_geneve_address, 0, offsetof(Geneve, remote)
108 GENEVE.TOS, config_parse_uint8, 0, offsetof(Geneve, tos)
109 GENEVE.TTL, config_parse_uint8, 0, offsetof(Geneve, ttl)
110 GENEVE.UDPChecksum, config_parse_bool, 0, offsetof(Geneve, udpcsum)
111 GENEVE.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
112 GENEVE.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
113 GENEVE.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
114 GENEVE.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
115 GENEVE.DestinationPort, config_parse_ip_port, 0, offsetof(Geneve, dest_port)
116 GENEVE.FlowLabel, config_parse_geneve_flow_label, 0, 0
117 Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
118 Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
119 Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
120 Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
121 Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
122 Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
123 Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
124 Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
125 Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
126 Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
127 Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
128 Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
129 Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)
130 Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate)
131 Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select)
132 Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac)
133 Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0
134 Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate)
135 Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets)
136 Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect)
137 Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp)
138 Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave)
139 Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp)
140 Bond.AllSlavesActive, config_parse_unsigned, 0, offsetof(Bond, all_slaves_active)
141 Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links)
142 Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon)
143 Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay)
144 Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
145 Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
146 Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
147 Bond.AdActorSystemPriority, config_parse_ad_actor_sys_prio, 0, offsetof(Bond, ad_actor_sys_prio)
148 Bond.AdUserPortKey, config_parse_ad_user_port_key, 0, offsetof(Bond, ad_user_port_key)
149 Bond.AdActorSystem, config_parse_ad_actor_system, 0, offsetof(Bond, ad_actor_system)
150 Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time)
151 Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age)
152 Bridge.AgeingTimeSec, config_parse_sec, 0, offsetof(Bridge, ageing_time)
153 Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay)
154 Bridge.Priority, config_parse_uint16, 0, offsetof(Bridge, priority)
155 Bridge.GroupForwardMask, config_parse_uint16, 0, offsetof(Bridge, group_fwd_mask)
156 Bridge.DefaultPVID, config_parse_default_port_vlanid, 0, offsetof(Bridge, default_pvid)
157 Bridge.MulticastQuerier, config_parse_tristate, 0, offsetof(Bridge, mcast_querier)
158 Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
159 Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
160 Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
161 VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table) /* deprecated */
162 VRF.Table, config_parse_uint32, 0, offsetof(Vrf, table)
163 WireGuard.FwMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark)
164 WireGuard.ListenPort, config_parse_wireguard_listen_port, 0, offsetof(Wireguard, port)
165 WireGuard.PrivateKey, config_parse_wireguard_private_key, 0, 0
166 WireGuardPeer.AllowedIPs, config_parse_wireguard_allowed_ips, 0, 0
167 WireGuardPeer.Endpoint, config_parse_wireguard_endpoint, 0, 0
168 WireGuardPeer.PublicKey, config_parse_wireguard_public_key, 0, 0
169 WireGuardPeer.PresharedKey, config_parse_wireguard_preshared_key, 0, 0
170 WireGuardPeer.PersistentKeepalive, config_parse_wireguard_keepalive, 0, 0