]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/netdev-gperf.gperf
network: bridge vlan without PVID (#5899)
[thirdparty/systemd.git] / src / network / netdev / netdev-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "network-internal.h"
5 #include "netdev/bond.h"
6 #include "netdev/bridge.h"
7 #include "netdev/geneve.h"
8 #include "netdev/ipvlan.h"
9 #include "netdev/macvlan.h"
10 #include "netdev/tunnel.h"
11 #include "netdev/tuntap.h"
12 #include "netdev/veth.h"
13 #include "netdev/vlan.h"
14 #include "netdev/vxlan.h"
15 #include "netdev/vrf.h"
16 #include "netdev/netdev.h"
17 #include "vlan-util.h"
18 %}
19 struct ConfigPerfItem;
20 %null_strings
21 %language=ANSI-C
22 %define slot-name section_and_lvalue
23 %define hash-function-name network_netdev_gperf_hash
24 %define lookup-function-name network_netdev_gperf_lookup
25 %readonly-tables
26 %omit-struct-type
27 %struct-type
28 %includes
29 %%
30 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(NetDev, match_host)
31 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(NetDev, match_virt)
32 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(NetDev, match_kernel)
33 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, match_arch)
34 NetDev.Description, config_parse_string, 0, offsetof(NetDev, description)
35 NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname)
36 NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind)
37 NetDev.MTUBytes, config_parse_iec_size, 0, offsetof(NetDev, mtu)
38 NetDev.MACAddress, config_parse_hwaddr, 0, offsetof(NetDev, mac)
39 VLAN.Id, config_parse_vlanid, 0, offsetof(VLan, id)
40 VLAN.GVRP, config_parse_tristate, 0, offsetof(VLan, gvrp)
41 VLAN.MVRP, config_parse_tristate, 0, offsetof(VLan, mvrp)
42 VLAN.LooseBinding, config_parse_tristate, 0, offsetof(VLan, loose_binding)
43 VLAN.ReorderHeader, config_parse_tristate, 0, offsetof(VLan, reorder_hdr)
44 MACVLAN.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
45 MACVTAP.Mode, config_parse_macvlan_mode, 0, offsetof(MacVlan, mode)
46 IPVLAN.Mode, config_parse_ipvlan_mode, 0, offsetof(IPVlan, mode)
47 Tunnel.Local, config_parse_tunnel_address, 0, offsetof(Tunnel, local)
48 Tunnel.Remote, config_parse_tunnel_address, 0, offsetof(Tunnel, remote)
49 Tunnel.TOS, config_parse_unsigned, 0, offsetof(Tunnel, tos)
50 Tunnel.TTL, config_parse_unsigned, 0, offsetof(Tunnel, ttl)
51 Tunnel.Key, config_parse_tunnel_key, 0, offsetof(Tunnel, key)
52 Tunnel.InputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, ikey)
53 Tunnel.OutputKey, config_parse_tunnel_key, 0, offsetof(Tunnel, okey)
54 Tunnel.DiscoverPathMTU, config_parse_bool, 0, offsetof(Tunnel, pmtudisc)
55 Tunnel.Mode, config_parse_ip6tnl_mode, 0, offsetof(Tunnel, ip6tnl_mode)
56 Tunnel.IPv6FlowLabel, config_parse_ipv6_flowlabel, 0, offsetof(Tunnel, ipv6_flowlabel)
57 Tunnel.CopyDSCP, config_parse_bool, 0, offsetof(Tunnel, copy_dscp)
58 Tunnel.EncapsulationLimit, config_parse_encap_limit, 0, offsetof(Tunnel, encap_limit)
59 Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer)
60 Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer)
61 VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, id)
62 VXLAN.Group, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
63 VXLAN.Local, config_parse_vxlan_address, 0, offsetof(VxLan, local)
64 VXLAN.Remote, config_parse_vxlan_address, 0, offsetof(VxLan, remote)
65 VXLAN.TOS, config_parse_unsigned, 0, offsetof(VxLan, tos)
66 VXLAN.TTL, config_parse_unsigned, 0, offsetof(VxLan, ttl)
67 VXLAN.MacLearning, config_parse_bool, 0, offsetof(VxLan, learning)
68 VXLAN.ARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
69 VXLAN.ReduceARPProxy, config_parse_bool, 0, offsetof(VxLan, arp_proxy)
70 VXLAN.L2MissNotification, config_parse_bool, 0, offsetof(VxLan, l2miss)
71 VXLAN.L3MissNotification, config_parse_bool, 0, offsetof(VxLan, l3miss)
72 VXLAN.RouteShortCircuit, config_parse_bool, 0, offsetof(VxLan, route_short_circuit)
73 VXLAN.UDPCheckSum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
74 VXLAN.UDPChecksum, config_parse_bool, 0, offsetof(VxLan, udpcsum)
75 VXLAN.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
76 VXLAN.UDP6ZeroChecksumRx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumrx)
77 VXLAN.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
78 VXLAN.UDP6ZeroChecksumTx, config_parse_bool, 0, offsetof(VxLan, udp6zerocsumtx)
79 VXLAN.RemoteChecksumTx, config_parse_bool, 0, offsetof(VxLan, remote_csum_tx)
80 VXLAN.RemoteChecksumRx, config_parse_bool, 0, offsetof(VxLan, remote_csum_rx)
81 VXLAN.FDBAgeingSec, config_parse_sec, 0, offsetof(VxLan, fdb_ageing)
82 VXLAN.GroupPolicyExtension, config_parse_bool, 0, offsetof(VxLan, group_policy)
83 VXLAN.MaximumFDBEntries, config_parse_unsigned, 0, offsetof(VxLan, max_fdb)
84 VXLAN.PortRange, config_parse_port_range, 0, 0
85 VXLAN.DestinationPort, config_parse_ip_port, 0, offsetof(VxLan, dest_port)
86 VXLAN.FlowLabel, config_parse_flow_label, 0, 0
87 GENEVE.Id, config_parse_geneve_vni, 0, offsetof(Geneve, id)
88 GENEVE.Remote, config_parse_geneve_address, 0, offsetof(Geneve, remote)
89 GENEVE.TOS, config_parse_uint8, 0, offsetof(Geneve, tos)
90 GENEVE.TTL, config_parse_uint8, 0, offsetof(Geneve, ttl)
91 GENEVE.UDPChecksum, config_parse_bool, 0, offsetof(Geneve, udpcsum)
92 GENEVE.UDP6ZeroCheckSumRx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumrx)
93 GENEVE.UDP6ZeroCheckSumTx, config_parse_bool, 0, offsetof(Geneve, udp6zerocsumtx)
94 GENEVE.DestinationPort, config_parse_ip_port, 0, offsetof(Geneve, dest_port)
95 GENEVE.FlowLabel, config_parse_geneve_flow_label, 0, 0
96 Tun.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
97 Tun.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
98 Tun.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
99 Tun.User, config_parse_string, 0, offsetof(TunTap, user_name)
100 Tun.Group, config_parse_string, 0, offsetof(TunTap, group_name)
101 Tap.OneQueue, config_parse_bool, 0, offsetof(TunTap, one_queue)
102 Tap.MultiQueue, config_parse_bool, 0, offsetof(TunTap, multi_queue)
103 Tap.PacketInfo, config_parse_bool, 0, offsetof(TunTap, packet_info)
104 Tap.VNetHeader, config_parse_bool, 0, offsetof(TunTap, vnet_hdr)
105 Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
106 Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
107 Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
108 Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)
109 Bond.LACPTransmitRate, config_parse_bond_lacp_rate, 0, offsetof(Bond, lacp_rate)
110 Bond.AdSelect, config_parse_bond_ad_select, 0, offsetof(Bond, ad_select)
111 Bond.FailOverMACPolicy, config_parse_bond_fail_over_mac, 0, offsetof(Bond, fail_over_mac)
112 Bond.ARPIPTargets, config_parse_arp_ip_target_address, 0, 0
113 Bond.ARPValidate, config_parse_bond_arp_validate, 0, offsetof(Bond, arp_validate)
114 Bond.ARPAllTargets, config_parse_bond_arp_all_targets, 0, offsetof(Bond, arp_all_targets)
115 Bond.PrimaryReselectPolicy, config_parse_bond_primary_reselect, 0, offsetof(Bond, primary_reselect)
116 Bond.ResendIGMP, config_parse_unsigned, 0, offsetof(Bond, resend_igmp)
117 Bond.PacketsPerSlave, config_parse_unsigned, 0, offsetof(Bond, packets_per_slave)
118 Bond.GratuitousARP, config_parse_unsigned, 0, offsetof(Bond, num_grat_arp)
119 Bond.AllSlavesActive, config_parse_unsigned, 0, offsetof(Bond, all_slaves_active)
120 Bond.MinLinks, config_parse_unsigned, 0, offsetof(Bond, min_links)
121 Bond.MIIMonitorSec, config_parse_sec, 0, offsetof(Bond, miimon)
122 Bond.UpDelaySec, config_parse_sec, 0, offsetof(Bond, updelay)
123 Bond.DownDelaySec, config_parse_sec, 0, offsetof(Bond, downdelay)
124 Bond.ARPIntervalSec, config_parse_sec, 0, offsetof(Bond, arp_interval)
125 Bond.LearnPacketIntervalSec, config_parse_sec, 0, offsetof(Bond, lp_interval)
126 Bridge.HelloTimeSec, config_parse_sec, 0, offsetof(Bridge, hello_time)
127 Bridge.MaxAgeSec, config_parse_sec, 0, offsetof(Bridge, max_age)
128 Bridge.AgeingTimeSec, config_parse_sec, 0, offsetof(Bridge, ageing_time)
129 Bridge.ForwardDelaySec, config_parse_sec, 0, offsetof(Bridge, forward_delay)
130 Bridge.Priority, config_parse_uint16, 0, offsetof(Bridge, priority)
131 Bridge.DefaultPVID, config_parse_default_port_vlanid, 0, offsetof(Bridge, default_pvid)
132 Bridge.MulticastQuerier, config_parse_tristate, 0, offsetof(Bridge, mcast_querier)
133 Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
134 Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
135 Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
136 VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table_id)