3 #include "conf-parser.h"
5 #include "link-config.h"
6 #include "ethtool-util.h"
11 %define slot-name section_and_lvalue
12 %define hash-function-name link_config_gperf_hash
13 %define lookup-function-name link_config_gperf_lookup
19 Match.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, match_mac)
20 Match.Path, config_parse_string, 0, offsetof(link_config, match_path)
21 Match.Driver, config_parse_string, 0, offsetof(link_config, match_driver)
22 Match.Type, config_parse_string, 0, offsetof(link_config, match_type)
23 Link.Description, config_parse_string, 0, offsetof(link_config, description)
24 Link.MACAddressPolicy, config_parse_mac_policy, 0, offsetof(link_config, mac_policy)
25 Link.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, mac)
26 Link.NamePolicy, config_parse_name_policy, 0, offsetof(link_config, name_policy)
27 Link.Name, config_parse_ifname, 0, offsetof(link_config, name)
28 Link.MTU, config_parse_unsigned, 0, offsetof(link_config, mtu)
29 Link.SpeedMBytes, config_parse_unsigned, 0, offsetof(link_config, speed)
30 Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex)
31 Link.WakeOnLan, config_parse_wol, 0, offsetof(link_config, wol)