]>
Commit | Line | Data |
---|---|---|
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 | %} |
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) | |
edbb03e9 | 26 | Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, match_arch) |
c106cc36 TG |
27 | Link.MACAddress, config_parse_hwaddr, 0, offsetof(Network, mac) |
28 | Link.MTUBytes, config_parse_iec_size, 0, offsetof(Network, mtu) | |
c0dda186 | 29 | Network.Description, config_parse_string, 0, offsetof(Network, description) |
69a93e7d TG |
30 | Network.Bridge, config_parse_netdev, 0, offsetof(Network, bridge) |
31 | Network.Bond, config_parse_netdev, 0, offsetof(Network, bond) | |
6a0a2f86 TG |
32 | Network.VLAN, config_parse_netdev, 0, 0 |
33 | Network.MACVLAN, config_parse_netdev, 0, 0 | |
34 | Network.VXLAN, config_parse_netdev, 0, 0 | |
35 | Network.Tunnel, config_parse_tunnel, 0, 0 | |
ed942a9e | 36 | Network.DHCP, config_parse_dhcp, 0, offsetof(Network, dhcp) |
dd43110f | 37 | Network.DHCPServer, config_parse_bool, 0, offsetof(Network, dhcp_server) |
5c1d3fc9 | 38 | Network.IPv4LL, config_parse_bool, 0, offsetof(Network, ipv4ll) |
bfa695b5 | 39 | Network.IPv4LLRoute, config_parse_bool, 0, offsetof(Network, ipv4ll_route) |
c0dda186 TG |
40 | Network.Address, config_parse_address, 0, 0 |
41 | Network.Gateway, config_parse_gateway, 0, 0 | |
6192b846 | 42 | Network.Domains, config_parse_domains, 0, offsetof(Network, domains) |
b0e39c82 | 43 | Network.DNS, config_parse_strv, 0, offsetof(Network, dns) |
bd8f6538 | 44 | Network.LLMNR, config_parse_llmnr, 0, offsetof(Network, llmnr) |
b0e39c82 | 45 | Network.NTP, config_parse_strv, 0, offsetof(Network, ntp) |
c0dda186 | 46 | Address.Address, config_parse_address, 0, 0 |
c081882f | 47 | Address.Peer, config_parse_address, 0, 0 |
c0dda186 TG |
48 | Address.Broadcast, config_parse_broadcast, 0, 0 |
49 | Address.Label, config_parse_label, 0, 0 | |
50 | Route.Gateway, config_parse_gateway, 0, 0 | |
dde2efef | 51 | Route.Destination, config_parse_destination, 0, 0 |
9e7e4408 | 52 | Route.Source, config_parse_destination, 0, 0 |
5d8e593d | 53 | Route.Metric, config_parse_route_priority, 0, 0 |
ed942a9e TG |
54 | DHCP.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns) |
55 | DHCP.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu) | |
56 | DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname) | |
ad0734e8 | 57 | DHCP.UseDomains, config_parse_bool, 0, offsetof(Network, dhcp_domains) |
72165d61 FB |
58 | DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_routes) |
59 | DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_sendhost) | |
f5de5b00 | 60 | DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast) |
ed942a9e | 61 | DHCP.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical) |
edb85f0d | 62 | DHCP.VendorClassIdentifier, config_parse_string, 0, offsetof(Network, dhcp_vendor_class_identifier) |
84b5b79a | 63 | DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric) |
7303ec8f | 64 | Bridge.Cost, config_parse_unsigned, 0, offsetof(Network, cost) |
b98b483b AR |
65 | BridgeFDB.MACAddress, config_parse_fdb_hwaddr, 0, 0 |
66 | BridgeFDB.VLANId, config_parse_fdb_vlan_id, 0, 0 | |
4cc7a82c | 67 | /* backwards compatibility: do not add new entries to this section */ |
c0dda186 TG |
68 | DHCPv4.UseDNS, config_parse_bool, 0, offsetof(Network, dhcp_dns) |
69 | DHCPv4.UseMTU, config_parse_bool, 0, offsetof(Network, dhcp_mtu) | |
70 | DHCPv4.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_hostname) | |
ad0734e8 TG |
71 | DHCP.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains) |
72 | DHCPv4.UseDomainName, config_parse_bool, 0, offsetof(Network, dhcp_domains) | |
c0dda186 | 73 | DHCPv4.CriticalConnection, config_parse_bool, 0, offsetof(Network, dhcp_critical) |