3 #include "conf-parser.h"
5 #include "network-internal.h"
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
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 Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac)
28 Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu)
29 Network.Description, config_parse_string, 0, offsetof(Network, description)
30 Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge)
31 Network.Bond, config_parse_netdev, 0, offsetof(Network, bond)
32 Network.VLAN, config_parse_netdev, 0, 0
33 Network.MACVLAN, config_parse_netdev, 0, 0
34 Network.IPVLAN, config_parse_netdev, 0, 0
35 Network.VXLAN, config_parse_netdev, 0, 0
36 Network.Tunnel, config_parse_tunnel, 0, 0
37 Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp)
38 Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server)
39 Network.IPv4LL, config_parse_bool, 0, offsetof(Network, ipv4ll)
40 Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route)
41 Network.LLDP, config_parse_bool, 0, offsetof(Network, lldp)
42 Network.Address, config_parse_address, 0, 0
43 Network.Gateway, config_parse_gateway, 0, 0
44 Network.Domains, config_parse_domains, 0, offsetof(Network, domains)
45 Network.DNS, config_parse_strv, 0, offsetof(Network, dns)
46 Network.LLMNR, config_parse_llmnr, 0, offsetof(Network, llmnr)
47 Network.NTP, config_parse_strv, 0, offsetof(Network, ntp)
48 Network.IPForward, config_parse_address_family_boolean,0, offsetof(Network, ip_forward)
49 Network.IPMasquerade, config_parse_bool, 0, offsetof(Network, ip_masquerade)
50 Address.Address, config_parse_address, 0, 0
51 Address.Peer, config_parse_address, 0, 0
52 Address.Broadcast, config_parse_broadcast, 0, 0
53 Address.Label, config_parse_label, 0, 0
54 Route.Gateway, config_parse_gateway, 0, 0
55 Route.Destination, config_parse_destination, 0, 0
56 Route.Source, config_parse_destination, 0, 0
57 Route.Metric, config_parse_route_priority, 0, 0
58 DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
59 DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
60 DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
61 DHCP.UseDomains, config_parse_bool, 0, offsetof(Network, dhcp_domains)
62 DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_routes)
63 DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_sendhost)
64 DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast)
65 DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)
66 DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier)
67 DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
68 Bridge.Cost, config_parse_unsigned, 0, offsetof(Network, cost)
69 BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0
70 BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0
71 /* backwards compatibility: do not add new entries to this section */
72 DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns)
73 DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu)
74 DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname)
75 DHCP.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains)
76 DHCPv4.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains)
77 DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical)