]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-netdev-gperf.gperf
networkd: add support to set STP (#3903)
[thirdparty/systemd.git] / src / network / networkd-netdev-gperf.gperf
CommitLineData
c0dda186
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
634f0f98 4#include "network-internal.h"
3be1d7e0 5#include "networkd-netdev-bond.h"
267fabd2 6#include "networkd-netdev-bridge.h"
634f0f98 7#include "networkd-netdev-ipvlan.h"
3be1d7e0 8#include "networkd-netdev-macvlan.h"
634f0f98
ZJS
9#include "networkd-netdev-tunnel.h"
10#include "networkd-netdev-tuntap.h"
11#include "networkd-netdev-veth.h"
12#include "networkd-netdev-vlan.h"
13#include "networkd-netdev-vxlan.h"
20897a0d 14#include "networkd-netdev-vrf.h"
634f0f98 15#include "networkd-netdev.h"
267fabd2 16#include "vlan-util.h"
c0dda186
TG
17%}
18struct ConfigPerfItem;
19%null_strings
20%language=ANSI-C
21%define slot-name section_and_lvalue
22%define hash-function-name network_netdev_gperf_hash
23%define lookup-function-name network_netdev_gperf_lookup
24%readonly-tables
25%omit-struct-type
26%struct-type
27%includes
28%%
38422da7
SS
29Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
30Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
31Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel)
32Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
33NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
34NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
35NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
36NetDev.MTUBytes, config_parse_iec_size, 0, offsetof(NetDev, mtu)
37NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
267fabd2 38VLAN.Id, config_parse_vlanid, 0, offsetof(VLan, id)
38422da7 39MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
f33ff02b 40MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
38422da7
SS
41IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode)
42Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local)
43Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote)
44Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos)
45Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl)
1d710029
SS
46Tunnel.Key, config_parse_tunnel_key, 0, offsetof(Tunnel, key)
47Tunnel.InputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, ikey)
48Tunnel.OutputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, okey)
38422da7
SS
49Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc)
50Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode)
407af9dd 51Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel)
a9b70f9d 52Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp)
b4828886 53Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit)
38422da7
SS
54Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer)
55Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer)
56VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id)
57VXLAN.Group, config_parse_vxlan_group_address, 0, offsetof(VxLan, group)
58VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos)
59VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl)
60VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning)
61VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
62VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss)
63VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss)
64VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit)
65VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
66VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
67VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
68VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing)
ea84fd5c 69VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy)
3dbcf579 70VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb)
ea0288d1
SS
71VXLAN.PortRange, config_parse_port_range, 0, 0
72VXLAN.DestinationPort, config_parse_destination_port, 0, offsetof(VxLan, dest_port)
38422da7
SS
73Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
74Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
75Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
76Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
77Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
78Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
79Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
80Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
2aba142e 81Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
38422da7
SS
82Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
83Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
84Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
85Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)
86Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate)
87Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select)
88Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac)
89Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0
90Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate)
91Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets)
92Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect)
93Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp)
94Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave)
95Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp)
96Bond.AllSlavesActive, config_parse_unsigned, 0, offsetof(Bond, all_slaves_active)
97Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links)
98Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon)
99Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay)
100Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
101Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
102Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
540eb5f0
SS
103Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time)
104Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age)
105Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay)
3fef7a3f 106Bridge.MulticastQuerier, config_parse_tristate, 0, offsetof(Bridge, mcast_querier)
6df6d898 107Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
c6f8d17d 108Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
b760a9af 109Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
20897a0d 110VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table_id)