chiark / gitweb /
net-util: call ioctl() only if necessary
[elogind.git] / src / udev / net / link-config-gperf.gperf
index 9e2f4d4f5213a0ced1bbcd5a8d147fce9bb7e3d4..1fe0b93e5365f4c0b19942c224f193effe643f2a 100644 (file)
@@ -1,7 +1,9 @@
 %{
 #include <stddef.h>
 #include "conf-parser.h"
+#include "net-util.h"
 #include "link-config.h"
+#include "ethtool-util.h"
 %}
 struct ConfigPerfItem;
 %null_strings
@@ -14,11 +16,16 @@ struct ConfigPerfItem;
 %struct-type
 %includes
 %%
-Match.MACAddress,                   config_parse_string,        0, offsetof(link_config, match_mac)
+Match.MACAddress,                   config_parse_hwaddr,        0, offsetof(link_config, match_mac)
 Match.Path,                         config_parse_string,        0, offsetof(link_config, match_path)
 Match.Driver,                       config_parse_string,        0, offsetof(link_config, match_driver)
 Match.Type,                         config_parse_string,        0, offsetof(link_config, match_type)
 Link.Description,                   config_parse_string,        0, offsetof(link_config, description)
+Link.MACAddressPolicy,              config_parse_mac_policy,    0, offsetof(link_config, mac_policy)
+Link.MACAddress,                    config_parse_hwaddr,        0, offsetof(link_config, mac)
+Link.NamePolicy,                    config_parse_name_policy,   0, offsetof(link_config, name_policy)
+Link.Name,                          config_parse_ifname,        0, offsetof(link_config, name)
+Link.MTU,                           config_parse_unsigned,      0, offsetof(link_config, mtu)
 Link.SpeedMBytes,                   config_parse_unsigned,      0, offsetof(link_config, speed)
-Link.Duplex,                        config_parse_string,        0, offsetof(link_config, duplex)
-Link.WakeOnLan,                     config_parse_string,        0, offsetof(link_config, wol)
+Link.Duplex,                        config_parse_duplex,        0, offsetof(link_config, duplex)
+Link.WakeOnLan,                     config_parse_wol,           0, offsetof(link_config, wol)