]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/netdev/netdev-gperf.gperf
Merge pull request #12252 from keszybz/libmount-dont-unescape
[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"
3a56e697 23#include "netdev/l2tp-tunnel.h"
267fabd2 24#include "vlan-util.h"
c0dda186
TG
25%}
26struct ConfigPerfItem;
27%null_strings
28%language=ANSI-C
29%define slot-name section_and_lvalue
30%define hash-function-name network_netdev_gperf_hash
31%define lookup-function-name network_netdev_gperf_lookup
32%readonly-tables
33%omit-struct-type
34%struct-type
35%includes
36%%
c4f58dea
YW
37Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, conditions)
38Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, conditions)
39Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, conditions)
40Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(NetDev, conditions)
41Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, conditions)
e5719363
JT
42NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
43NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
44NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
4e964aa0 45NetDev.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(NetDev, mtu)
e5719363
JT
46NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
47VLAN.Id, config_parse_vlanid, 0, offsetof(VLan, id)
48VLAN.GVRP, config_parse_tristate, 0, offsetof(VLan, gvrp)
49VLAN.MVRP, config_parse_tristate, 0, offsetof(VLan, mvrp)
50VLAN.LooseBinding, config_parse_tristate, 0, offsetof(VLan, loose_binding)
51VLAN.ReorderHeader, config_parse_tristate, 0, offsetof(VLan, reorder_hdr)
52MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
53MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
54IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode)
4e964aa0 55IPVLAN.Flags, config_parse_ipvlan_flags, 0, offsetof(IPVlan, flags)
e5719363
JT
56Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local)
57Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote)
58Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos)
59Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl)
60Tunnel.Key, config_parse_tunnel_key, 0, offsetof(Tunnel, key)
61Tunnel.InputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, ikey)
62Tunnel.OutputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, okey)
63Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc)
64Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode)
65Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel)
66Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp)
67Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit)
68Tunnel.Independent, config_parse_bool, 0, offsetof(Tunnel, independent)
69Tunnel.AllowLocalRemote, config_parse_tristate, 0, offsetof(Tunnel, allow_localremote)
53cb501a
SS
70Tunnel.FooOverUDP, config_parse_bool, 0, offsetof(Tunnel, fou_tunnel)
71Tunnel.FOUDestinationPort, config_parse_ip_port, 0, offsetof(Tunnel, fou_destination_port)
72Tunnel.FOUSourcePort, config_parse_ip_port, 0, offsetof(Tunnel, encap_src_port)
73Tunnel.Encapsulation, config_parse_fou_encap_type, 0, offsetof(Tunnel, fou_encap_type)
d067cab3 74Tunnel.IPv6RapidDeploymentPrefix, config_parse_6rd_prefix, 0, 0
2266864b 75Tunnel.ERSPANIndex, config_parse_uint32, 0, offsetof(Tunnel, erspan_index)
a8b9a65c 76Tunnel.SerializeTunneledPackets, config_parse_tristate, 0, offsetof(Tunnel, gre_erspan_sequence)
918049ad 77Tunnel.ISATAP, config_parse_tristate, 0, offsetof(Tunnel, isatap)
7df5c6ba 78FooOverUDP.Protocol, config_parse_ip_protocol, 0, offsetof(FouTunnel, fou_protocol)
53cb501a
SS
79FooOverUDP.Encapsulation, config_parse_fou_encap_type, 0, offsetof(FouTunnel, fou_encap_type)
80FooOverUDP.Port, config_parse_ip_port, 0, offsetof(FouTunnel, port)
3a56e697
SS
81L2TP.TunnelId, config_parse_l2tp_tunnel_id, 0, offsetof(L2tpTunnel, tunnel_id)
82L2TP.PeerTunnelId, config_parse_l2tp_tunnel_id, 0, offsetof(L2tpTunnel, peer_tunnel_id)
83L2TP.UDPSourcePort, config_parse_ip_port, 0, offsetof(L2tpTunnel, l2tp_udp_sport)
84L2TP.UDPDestinationPort, config_parse_ip_port, 0, offsetof(L2tpTunnel, l2tp_udp_dport)
85L2TP.Local, config_parse_l2tp_tunnel_address, 0, offsetof(L2tpTunnel, local)
86L2TP.Remote, config_parse_l2tp_tunnel_address, 0, offsetof(L2tpTunnel, remote)
87L2TP.EncapsulationType, config_parse_l2tp_encap_type, 0, offsetof(L2tpTunnel, l2tp_encap_type)
88L2TP.UDPCheckSum, config_parse_bool, 0, offsetof(L2tpTunnel, udp_csum)
89L2TP.UDP6CheckSumRx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_rx)
90L2TP.UDP6CheckSumTx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_tx)
91L2TPSession.SessionId, config_parse_l2tp_session_id, 0, 0
92L2TPSession.PeerSessionId, config_parse_l2tp_session_id, 0, 0
93L2TPSession.Layer2SpecificHeader, config_parse_l2tp_session_l2spec, 0, 0
94L2TPSession.Name, config_parse_l2tp_session_name, 0, 0
e5719363
JT
95Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer)
96Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer)
97VXCAN.Peer, config_parse_ifname, 0, offsetof(VxCan, ifname_peer)
98VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id)
99VXLAN.Group, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
100VXLAN.Local, config_parse_vxlan_address, 0, offsetof(VxLan, local)
101VXLAN.Remote, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
102VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos)
103VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl)
104VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning)
105VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
106VXLAN.ReduceARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
107VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss)
108VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss)
109VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit)
110VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
111VXLAN.UDPChecksum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
112VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
113VXLAN.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
114VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
115VXLAN.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
116VXLAN.RemoteChecksumTx, config_parse_bool, 0, offsetof(VxLan, remote_csum_tx)
117VXLAN.RemoteChecksumRx, config_parse_bool, 0, offsetof(VxLan, remote_csum_rx)
118VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing)
119VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy)
120VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb)
121VXLAN.PortRange, config_parse_port_range, 0, 0
122VXLAN.DestinationPort, config_parse_ip_port, 0, offsetof(VxLan, dest_port)
123VXLAN.FlowLabel, config_parse_flow_label, 0, 0
124GENEVE.Id, config_parse_geneve_vni, 0, offsetof(Geneve, id)
125GENEVE.Remote, config_parse_geneve_address, 0, offsetof(Geneve, remote)
126GENEVE.TOS, config_parse_uint8, 0, offsetof(Geneve, tos)
127GENEVE.TTL, config_parse_uint8, 0, offsetof(Geneve, ttl)
128GENEVE.UDPChecksum, config_parse_bool, 0, offsetof(Geneve, udpcsum)
129GENEVE.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
6f1a96de 130GENEVE.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
e5719363 131GENEVE.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
6f1a96de 132GENEVE.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
e5719363
JT
133GENEVE.DestinationPort, config_parse_ip_port, 0, offsetof(Geneve, dest_port)
134GENEVE.FlowLabel, config_parse_geneve_flow_label, 0, 0
135Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
136Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
137Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
138Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
139Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
140Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
141Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
142Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
143Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
144Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
145Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
146Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
147Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)
148Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate)
149Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select)
150Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac)
151Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0
152Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate)
153Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets)
154Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect)
155Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp)
156Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave)
157Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp)
6d4efac2 158Bond.AllSlavesActive, config_parse_bool, 0, offsetof(Bond, all_slaves_active)
fde60a42 159Bond.DynamicTransmitLoadBalancing, config_parse_tristate, 0, offsetof(Bond, tlb_dynamic_lb)
e5719363
JT
160Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links)
161Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon)
162Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay)
163Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
164Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
165Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
db688b7e 166Bond.AdActorSystemPriority, config_parse_ad_actor_sys_prio, 0, offsetof(Bond, ad_actor_sys_prio)
99f68ef0
TJ
167Bond.AdUserPortKey, config_parse_ad_user_port_key, 0, offsetof(Bond, ad_user_port_key)
168Bond.AdActorSystem, config_parse_ad_actor_system, 0, offsetof(Bond, ad_actor_system)
e5719363
JT
169Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time)
170Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age)
171Bridge.AgeingTimeSec, config_parse_sec, 0, offsetof(Bridge, ageing_time)
172Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay)
173Bridge.Priority, config_parse_uint16, 0, offsetof(Bridge, priority)
174Bridge.GroupForwardMask, config_parse_uint16, 0, offsetof(Bridge, group_fwd_mask)
175Bridge.DefaultPVID, config_parse_default_port_vlanid, 0, offsetof(Bridge, default_pvid)
176Bridge.MulticastQuerier, config_parse_tristate, 0, offsetof(Bridge, mcast_querier)
177Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
178Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
179Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
180VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table) /* deprecated */
40352cf0 181VRF.Table, config_parse_uint32, 0, offsetof(Vrf, table)
e5719363
JT
182WireGuard.FwMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark)
183WireGuard.ListenPort, config_parse_wireguard_listen_port, 0, offsetof(Wireguard, port)
184WireGuard.PrivateKey, config_parse_wireguard_private_key, 0, 0
76df7779 185WireGuard.PrivateKeyFile, config_parse_wireguard_private_key_file, 0, 0
e5719363
JT
186WireGuardPeer.AllowedIPs, config_parse_wireguard_allowed_ips, 0, 0
187WireGuardPeer.Endpoint, config_parse_wireguard_endpoint, 0, 0
188WireGuardPeer.PublicKey, config_parse_wireguard_public_key, 0, 0
189WireGuardPeer.PresharedKey, config_parse_wireguard_preshared_key, 0, 0
a3945c63 190WireGuardPeer.PresharedKeyFile, config_parse_wireguard_preshared_key_file, 0, 0
e5719363 191WireGuardPeer.PersistentKeepalive, config_parse_wireguard_keepalive, 0, 0