chiark / gitweb /
networkd: dhcp - only set the MTU option once
[elogind.git] / src / network / networkd-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "networkd.h"
5 #include "net-util.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_gperf_hash
12 %define lookup-function-name 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 Network.Description,     config_parse_string,           0,       offsetof(Network, description)
24 Network.Bridge,          config_parse_bridge,           0,       offsetof(Network, bridge)
25 Network.DHCP,            config_parse_bool,             0,       offsetof(Network, dhcp)
26 Network.Address,         config_parse_address,          0,       0
27 Network.Gateway,         config_parse_gateway,          0,       0
28 Network.DNS,             config_parse_dns,              0,       offsetof(Network, dns)
29 Address.Address,         config_parse_address,          0,       0
30 Address.Label,           config_parse_label,            0,       0
31 Route.Gateway,           config_parse_gateway,          0,       0
32 Route.Destination,       config_parse_destination,      0,       0
33 DHCPv4.UseDNS,           config_parse_bool,             0,       offsetof(Network, dhcp_dns)
34 DHCPv4.UseMTU,           config_parse_bool,             0,       offsetof(Network, dhcp_mtu)
35 Bridge.Description,      config_parse_string,           0,       offsetof(Bridge, description)
36 Bridge.Name,             config_parse_ifname,           0,       offsetof(Bridge, name)