3 #include "conf-parser.h"
10 %define slot-name section_and_lvalue
11 %define hash-function-name network_gperf_hash
12 %define lookup-function-name network_gperf_lookup
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 Network.Description, config_parse_string, 0, offsetof(Network, description)
24 Network.Bridge, config_parse_bridge, 0, offsetof(Network, bridge)
25 Network.Bond, config_parse_bond, 0, offsetof(Network, bond)
26 Network.VLAN, config_parse_vlan, 0, offsetof(Network, vlan)
27 Network.DHCP, config_parse_bool, 0, offsetof(Network, dhcp)
28 Network.Address, config_parse_address, 0, 0
29 Network.Gateway, config_parse_gateway, 0, 0
30 Network.DNS, config_parse_dns, 0, offsetof(Network, dns)
31 Address.Address, config_parse_address, 0, 0
32 Address.Label, config_parse_label, 0, 0
33 Route.Gateway, config_parse_gateway, 0, 0
34 Route.Destination, config_parse_destination, 0, 0
35 DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
36 DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
37 DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
38 DHCPv4.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domainname)
39 Netdev.Description, config_parse_string, 0, offsetof(Netdev, description)
40 Netdev.Name, config_parse_ifname, 0, offsetof(Netdev, name)
41 Netdev.Kind, config_parse_netdev_kind, 0, offsetof(Netdev, kind)
42 VLAN.Id, config_parse_int, 0, offsetof(Netdev, vlanid)