]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-network-gperf.gperf
networkd: netdev - introduce vtable for netdev kinds
[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%%
18Match.MACAddress, config_parse_hwaddr, 0, offsetof(Network, match_mac)
19Match.Path, config_parse_string, 0, offsetof(Network, match_path)
20Match.Driver, config_parse_string, 0, offsetof(Network, match_driver)
21Match.Type, config_parse_string, 0, offsetof(Network, match_type)
22Match.Name, config_parse_ifname, 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)
edbb03e9 26Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch)
c0dda186 27Network.Description, config_parse_string, 0, offsetof(Network, description)
69a93e7d
TG
28Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
29Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
30Network.VLAN, config_parse_netdev, 0, offsetof(Network, vlans)
31Network.MACVLAN, config_parse_netdev, 0, offsetof(Network, macvlans)
326cb406 32Network.VXLAN, config_parse_netdev, 0, offsetof(Network, vxlans)
ed942a9e 33Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
dd43110f 34Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
5c1d3fc9 35Network.IPv4LL, config_parse_bool, 0, offsetof(Network, ipv4ll)
c0dda186
TG
36Network.Address, config_parse_address, 0, 0
37Network.Gateway, config_parse_gateway, 0, 0
38Network.DNS, config_parse_dns, 0, offsetof(Network, dns)
bcb7a07e 39Network.NTP, config_parse_dns, 0, offsetof(Network, ntp)
7951dea2 40Network.Tunnel, config_parse_tunnel, 0, offsetof(Network, tunnel)
c0dda186 41Address.Address, config_parse_address, 0, 0
c081882f 42Address.Peer, config_parse_address, 0, 0
c0dda186
TG
43Address.Broadcast, config_parse_broadcast, 0, 0
44Address.Label, config_parse_label, 0, 0
45Route.Gateway, config_parse_gateway, 0, 0
dde2efef 46Route.Destination, config_parse_destination, 0, 0
5d8e593d 47Route.Metric, config_parse_route_priority, 0, 0
ed942a9e
TG
48DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
49DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
50DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
51DHCP.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domainname)
72165d61
FB
52DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_routes)
53DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_sendhost)
ed942a9e 54DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
edb85f0d 55DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
4cc7a82c 56/* backwards compatibility: do not add new entries to this section */
c0dda186
TG
57DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
58DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
59DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
60DHCPv4.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domainname)
61DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)