chiark / gitweb /
networkd: split out vlan and macvlan handling
[elogind.git] / src / network / networkd-network-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "networkd.h"
5 #include "network-internal.h"
6 %}
7 struct 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 %%
18 Match.MACAddress,            config_parse_hwaddr,                0,                             offsetof(Network, match_mac)
19 Match.Path,                  config_parse_string,                0,                             offsetof(Network, match_path)
20 Match.Driver,                config_parse_string,                0,                             offsetof(Network, match_driver)
21 Match.Type,                  config_parse_string,                0,                             offsetof(Network, match_type)
22 Match.Name,                  config_parse_ifname,                0,                             offsetof(Network, match_name)
23 Match.Host,                  config_parse_net_condition,         CONDITION_HOST,                offsetof(Network, match_host)
24 Match.Virtualization,        config_parse_net_condition,         CONDITION_VIRTUALIZATION,      offsetof(Network, match_virt)
25 Match.KernelCommandLine,     config_parse_net_condition,         CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel)
26 Match.Architecture,          config_parse_net_condition,         CONDITION_ARCHITECTURE,        offsetof(Network, match_arch)
27 Network.Description,         config_parse_string,                0,                             offsetof(Network, description)
28 Network.Bridge,              config_parse_netdev,                0,                             offsetof(Network, bridge)
29 Network.Bond,                config_parse_netdev,                0,                             offsetof(Network, bond)
30 Network.VLAN,                config_parse_netdev,                0,                             offsetof(Network, vlans)
31 Network.MACVLAN,             config_parse_netdev,                0,                             offsetof(Network, macvlans)
32 Network.VXLAN,               config_parse_netdev,                0,                             offsetof(Network, vxlans)
33 Network.DHCP,                config_parse_dhcp,                  0,                             offsetof(Network, dhcp)
34 Network.DHCPServer,          config_parse_bool,                  0,                             offsetof(Network, dhcp_server)
35 Network.IPv4LL,              config_parse_bool,                  0,                             offsetof(Network, ipv4ll)
36 Network.Address,             config_parse_address,               0,                             0
37 Network.Gateway,             config_parse_gateway,               0,                             0
38 Network.DNS,                 config_parse_dns,                   0,                             offsetof(Network, dns)
39 Network.NTP,                 config_parse_dns,                   0,                             offsetof(Network, ntp)
40 Network.Tunnel,              config_parse_tunnel,                0,                             offsetof(Network, tunnel)
41 Address.Address,             config_parse_address,               0,                             0
42 Address.Broadcast,           config_parse_broadcast,             0,                             0
43 Address.Label,               config_parse_label,                 0,                             0
44 Route.Gateway,               config_parse_gateway,               0,                             0
45 Route.Destination,           config_parse_destination,           0,                             0
46 DHCP.UseDNS,                 config_parse_bool,                  0,                             offsetof(Network, dhcp_dns)
47 DHCP.UseMTU,                 config_parse_bool,                  0,                             offsetof(Network, dhcp_mtu)
48 DHCP.UseHostname,            config_parse_bool,                  0,                             offsetof(Network, dhcp_hostname)
49 DHCP.UseDomainName,          config_parse_bool,                  0,                             offsetof(Network, dhcp_domainname)
50 DHCP.UseRoutes,              config_parse_bool,                  0,                             offsetof(Network, dhcp_routes)
51 DHCP.SendHostname,           config_parse_bool,                  0,                             offsetof(Network, dhcp_sendhost)
52 DHCP.CriticalConnection,     config_parse_bool,                  0,                             offsetof(Network, dhcp_critical)
53 /* backwards compatibility: do not add new entries to this section */
54 DHCPv4.UseDNS,               config_parse_bool,                  0,                             offsetof(Network, dhcp_dns)
55 DHCPv4.UseMTU,               config_parse_bool,                  0,                             offsetof(Network, dhcp_mtu)
56 DHCPv4.UseHostname,          config_parse_bool,                  0,                             offsetof(Network, dhcp_hostname)
57 DHCPv4.UseDomainName,        config_parse_bool,                  0,                             offsetof(Network, dhcp_domainname)
58 DHCPv4.CriticalConnection,   config_parse_bool,                  0,                             offsetof(Network, dhcp_critical)