]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/udev/net/link-config-gperf.gperf
net-config: start split out matching and parsing logic
[thirdparty/systemd.git] / src / udev / net / link-config-gperf.gperf
CommitLineData
af6f0d42
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
be32eb9b 4#include "net-util.h"
af6f0d42 5#include "link-config.h"
5fde13d7 6#include "ethtool-util.h"
af6f0d42
TG
7%}
8struct ConfigPerfItem;
9%null_strings
10%language=ANSI-C
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
14%readonly-tables
15%omit-struct-type
16%struct-type
17%includes
18%%
5fde13d7 19Match.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, match_mac)
af6f0d42
TG
20Match.Path, config_parse_string, 0, offsetof(link_config, match_path)
21Match.Driver, config_parse_string, 0, offsetof(link_config, match_driver)
22Match.Type, config_parse_string, 0, offsetof(link_config, match_type)
23Link.Description, config_parse_string, 0, offsetof(link_config, description)
5fde13d7
TG
24Link.MACAddressPolicy, config_parse_mac_policy, 0, offsetof(link_config, mac_policy)
25Link.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, mac)
26Link.NamePolicy, config_parse_name_policy, 0, offsetof(link_config, name_policy)
27Link.Name, config_parse_ifname, 0, offsetof(link_config, name)
43b3a5ef 28Link.MTU, config_parse_unsigned, 0, offsetof(link_config, mtu)
a5010333 29Link.SpeedMBytes, config_parse_unsigned, 0, offsetof(link_config, speed)
5fde13d7
TG
30Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex)
31Link.WakeOnLan, config_parse_wol, 0, offsetof(link_config, wol)