]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-network-gperf.gperf
networkd: add support for macvtap
[thirdparty/systemd.git] / src / network / networkd-network-gperf.gperf
CommitLineData
c0dda186
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
4#include "networkd.h"
c6f7c917 5#include "network-internal.h"
c0dda186
TG
6%}
7struct ConfigPerfItem;
8%null_strings
9%language=ANSI-C
10%define slot-name section_and_lvalue
11%define hash-function-name network_network_gperf_hash
12%define lookup-function-name network_network_gperf_lookup
13%readonly-tables
14%omit-struct-type
15%struct-type
16%includes
17%%
49092e22
SS
18Match.MACAddress, config_parse_hwaddr, 0, offsetof(Network, match_mac)
19Match.Path, config_parse_strv, 0, offsetof(Network, match_path)
20Match.Driver, config_parse_strv, 0, offsetof(Network, match_driver)
21Match.Type, config_parse_strv, 0, offsetof(Network, match_type)
22Match.Name, config_parse_ifnames, 0, offsetof(Network, match_name)
23Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(Network, match_host)
24Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(Network, match_virt)
25Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel)
26Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch)
27Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac)
28Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu)
29Network.Description, config_parse_string, 0, offsetof(Network, description)
30Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
31Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
32Network.VLAN, config_parse_netdev, 0, 0
33Network.MACVLAN, config_parse_netdev, 0, 0
f33ff02b 34Network.MACVTAP, config_parse_netdev, 0, 0
49092e22
SS
35Network.IPVLAN, config_parse_netdev, 0, 0
36Network.VXLAN, config_parse_netdev, 0, 0
37Network.Tunnel, config_parse_tunnel, 0, 0
38Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
39Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
40Network.LinkLocalAddressing, config_parse_address_family_boolean, 0, offsetof(Network, link_local)
41Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route)
42Network.IPv6Token, config_parse_ipv6token, 0, offsetof(Network, ipv6_token)
43Network.LLDP, config_parse_bool, 0, offsetof(Network, lldp)
44Network.Address, config_parse_address, 0, 0
45Network.Gateway, config_parse_gateway, 0, 0
46Network.Domains, config_parse_domains, 0, offsetof(Network, domains)
47Network.DNS, config_parse_strv, 0, offsetof(Network, dns)
48Network.LLMNR, config_parse_llmnr, 0, offsetof(Network, llmnr)
49Network.NTP, config_parse_strv, 0, offsetof(Network, ntp)
50Network.IPForward, config_parse_address_family_boolean_with_kernel,0, offsetof(Network, ip_forward)
51Network.IPMasquerade, config_parse_bool, 0, offsetof(Network, ip_masquerade)
52Network.IPv6PrivacyExtensions, config_parse_ipv6_privacy_extensions, 0, offsetof(Network, ipv6_privacy_extensions)
53Network.BindCarrier, config_parse_strv, 0, offsetof(Network, bind_carrier)
54Address.Address, config_parse_address, 0, 0
55Address.Peer, config_parse_address, 0, 0
56Address.Broadcast, config_parse_broadcast, 0, 0
57Address.Label, config_parse_label, 0, 0
58Route.Gateway, config_parse_gateway, 0, 0
59Route.Destination, config_parse_destination, 0, 0
60Route.Source, config_parse_destination, 0, 0
61Route.Metric, config_parse_route_priority, 0, 0
62Route.Scope, config_parse_route_scope, 0, 0
63DHCP.ClientIdentifier, config_parse_dhcp_client_identifier, 0, offsetof(Network, dhcp_client_identifier)
64DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
65DHCP.UseNTP, config_parse_bool, 0, offsetof(Network, dhcp_ntp)
66DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
67DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
68DHCP.UseDomains, config_parse_bool, 0, offsetof(Network, dhcp_domains)
69DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_routes)
70DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_sendhost)
a7d0ef44 71DHCP.Hostname, config_parse_hostname, 0, offsetof(Network, hostname)
49092e22
SS
72DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast)
73DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
74DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
75DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
76Bridge.Cost, config_parse_unsigned, 0, offsetof(Network, cost)
84c34096 77Bridge.UseBPDU, config_parse_bool, 0, offsetof(Network, use_bpdu)
eb7ff4dd
SS
78Bridge.HairPin, config_parse_bool, 0, offsetof(Network, hairpin)
79Bridge.FastLeave, config_parse_bool, 0, offsetof(Network, fast_leave)
23da66bb 80Bridge.AllowPortToBeRoot, config_parse_bool, 0, offsetof(Network, allow_port_to_be_root)
eb7ff4dd 81Bridge.UnicastFlood, config_parse_bool, 0, offsetof(Network, unicast_flood)
49092e22
SS
82BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0
83BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0
4cc7a82c 84/* backwards compatibility: do not add new entries to this section */
49092e22
SS
85Network.IPv4LL, config_parse_ipv4ll, 0, offsetof(Network, link_local)
86DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
87DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
88DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
89DHCP.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains)
90DHCPv4.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains)
91DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)