]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/netdev/netdev-gperf.gperf
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / network / netdev / netdev-gperf.gperf
CommitLineData
c0dda186 1%{
4831981d
SL
2#if __GNUC__ >= 7
3_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4#endif
c0dda186
TG
5#include <stddef.h>
6#include "conf-parser.h"
634f0f98 7#include "network-internal.h"
441e9ae4
TG
8#include "netdev/bond.h"
9#include "netdev/bridge.h"
6598e046 10#include "netdev/geneve.h"
441e9ae4
TG
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"
d6df583c 20#include "netdev/vxcan.h"
e5719363 21#include "netdev/wireguard.h"
53cb501a 22#include "netdev/fou-tunnel.h"
267fabd2 23#include "vlan-util.h"
c0dda186
TG
24%}
25struct 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%%
e5719363
JT
36Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
37Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
38Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel_cmdline)
39Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(NetDev, match_kernel_version)
40Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
41NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
42NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
43NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
4e964aa0 44NetDev.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(NetDev, mtu)
e5719363
JT
45NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
46VLAN.Id, config_parse_vlanid, 0, offsetof(VLan, id)
47VLAN.GVRP, config_parse_tristate, 0, offsetof(VLan, gvrp)
48VLAN.MVRP, config_parse_tristate, 0, offsetof(VLan, mvrp)
49VLAN.LooseBinding, config_parse_tristate, 0, offsetof(VLan, loose_binding)
50VLAN.ReorderHeader, config_parse_tristate, 0, offsetof(VLan, reorder_hdr)
51MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
52MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
53IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode)
4e964aa0 54IPVLAN.Flags, config_parse_ipvlan_flags, 0, offsetof(IPVlan, flags)
e5719363
JT
55Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local)
56Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote)
57Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos)
58Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl)
59Tunnel.Key, config_parse_tunnel_key, 0, offsetof(Tunnel, key)
60Tunnel.InputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, ikey)
61Tunnel.OutputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, okey)
62Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc)
63Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode)
64Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel)
65Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp)
66Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit)
67Tunnel.Independent, config_parse_bool, 0, offsetof(Tunnel, independent)
68Tunnel.AllowLocalRemote, config_parse_tristate, 0, offsetof(Tunnel, allow_localremote)
53cb501a
SS
69Tunnel.FooOverUDP, config_parse_bool, 0, offsetof(Tunnel, fou_tunnel)
70Tunnel.FOUDestinationPort, config_parse_ip_port, 0, offsetof(Tunnel, fou_destination_port)
71Tunnel.FOUSourcePort, config_parse_ip_port, 0, offsetof(Tunnel, encap_src_port)
72Tunnel.Encapsulation, config_parse_fou_encap_type, 0, offsetof(Tunnel, fou_encap_type)
d067cab3 73Tunnel.IPv6RapidDeploymentPrefix, config_parse_6rd_prefix, 0, 0
2266864b
SS
74Tunnel.ERSPANIndex, config_parse_uint32, 0, offsetof(Tunnel, erspan_index)
75Tunnel.SerializeTunneledPackets, config_parse_tristate, 0, offsetof(Tunnel, erspan_sequence)
918049ad 76Tunnel.ISATAP, config_parse_tristate, 0, offsetof(Tunnel, isatap)
53cb501a
SS
77FooOverUDP.Protocol, config_parse_uint8, 0, offsetof(FouTunnel, fou_protocol)
78FooOverUDP.Encapsulation, config_parse_fou_encap_type, 0, offsetof(FouTunnel, fou_encap_type)
79FooOverUDP.Port, config_parse_ip_port, 0, offsetof(FouTunnel, port)
e5719363
JT
80Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer)
81Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer)
82VXCAN.Peer, config_parse_ifname, 0, offsetof(VxCan, ifname_peer)
83VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id)
84VXLAN.Group, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
85VXLAN.Local, config_parse_vxlan_address, 0, offsetof(VxLan, local)
86VXLAN.Remote, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
87VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos)
88VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl)
89VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning)
90VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
91VXLAN.ReduceARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
92VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss)
93VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss)
94VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit)
95VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
96VXLAN.UDPChecksum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
97VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
98VXLAN.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
99VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
100VXLAN.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
101VXLAN.RemoteChecksumTx, config_parse_bool, 0, offsetof(VxLan, remote_csum_tx)
102VXLAN.RemoteChecksumRx, config_parse_bool, 0, offsetof(VxLan, remote_csum_rx)
103VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing)
104VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy)
105VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb)
106VXLAN.PortRange, config_parse_port_range, 0, 0
107VXLAN.DestinationPort, config_parse_ip_port, 0, offsetof(VxLan, dest_port)
108VXLAN.FlowLabel, config_parse_flow_label, 0, 0
109GENEVE.Id, config_parse_geneve_vni, 0, offsetof(Geneve, id)
110GENEVE.Remote, config_parse_geneve_address, 0, offsetof(Geneve, remote)
111GENEVE.TOS, config_parse_uint8, 0, offsetof(Geneve, tos)
112GENEVE.TTL, config_parse_uint8, 0, offsetof(Geneve, ttl)
113GENEVE.UDPChecksum, config_parse_bool, 0, offsetof(Geneve, udpcsum)
114GENEVE.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
6f1a96de 115GENEVE.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
e5719363 116GENEVE.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
6f1a96de 117GENEVE.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
e5719363
JT
118GENEVE.DestinationPort, config_parse_ip_port, 0, offsetof(Geneve, dest_port)
119GENEVE.FlowLabel, config_parse_geneve_flow_label, 0, 0
120Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
121Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
122Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
123Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
124Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
125Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
126Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
127Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
128Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
129Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
130Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
131Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
132Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)
133Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate)
134Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select)
135Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac)
136Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0
137Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate)
138Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets)
139Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect)
140Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp)
141Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave)
142Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp)
6d4efac2 143Bond.AllSlavesActive, config_parse_bool, 0, offsetof(Bond, all_slaves_active)
fde60a42 144Bond.DynamicTransmitLoadBalancing, config_parse_tristate, 0, offsetof(Bond, tlb_dynamic_lb)
e5719363
JT
145Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links)
146Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon)
147Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay)
148Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
149Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
150Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
db688b7e 151Bond.AdActorSystemPriority, config_parse_ad_actor_sys_prio, 0, offsetof(Bond, ad_actor_sys_prio)
99f68ef0
TJ
152Bond.AdUserPortKey, config_parse_ad_user_port_key, 0, offsetof(Bond, ad_user_port_key)
153Bond.AdActorSystem, config_parse_ad_actor_system, 0, offsetof(Bond, ad_actor_system)
e5719363
JT
154Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time)
155Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age)
156Bridge.AgeingTimeSec, config_parse_sec, 0, offsetof(Bridge, ageing_time)
157Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay)
158Bridge.Priority, config_parse_uint16, 0, offsetof(Bridge, priority)
159Bridge.GroupForwardMask, config_parse_uint16, 0, offsetof(Bridge, group_fwd_mask)
160Bridge.DefaultPVID, config_parse_default_port_vlanid, 0, offsetof(Bridge, default_pvid)
161Bridge.MulticastQuerier, config_parse_tristate, 0, offsetof(Bridge, mcast_querier)
162Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
163Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
164Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
165VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table) /* deprecated */
40352cf0 166VRF.Table, config_parse_uint32, 0, offsetof(Vrf, table)
e5719363
JT
167WireGuard.FwMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark)
168WireGuard.ListenPort, config_parse_wireguard_listen_port, 0, offsetof(Wireguard, port)
169WireGuard.PrivateKey, config_parse_wireguard_private_key, 0, 0
170WireGuardPeer.AllowedIPs, config_parse_wireguard_allowed_ips, 0, 0
171WireGuardPeer.Endpoint, config_parse_wireguard_endpoint, 0, 0
172WireGuardPeer.PublicKey, config_parse_wireguard_public_key, 0, 0
173WireGuardPeer.PresharedKey, config_parse_wireguard_preshared_key, 0, 0
174WireGuardPeer.PersistentKeepalive, config_parse_wireguard_keepalive, 0, 0