summaryrefslogtreecommitdiff
path: root/src/udev/net/link-config-gperf.gperf
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-26 18:54:16 +0200
committerTom Gundersen <teg@jklm.no>2013-10-27 22:23:58 +0100
commit43b3a5ef61859f06cdbaf26765cab8e1adac4296 (patch)
treeb2792cf4777a8a8ec53ca8f95739fe5154cdc85b /src/udev/net/link-config-gperf.gperf
parent65f568bbeb9b8c70200e44c19a797df3a0bfd485 (diff)
udev: link-config: add rtnl support
This adds support for setting the mac address, name and mtu. Example: [Link] MTU=1450 MACAddress=98:76:54:32:10:ab Name=wireless0
Diffstat (limited to 'src/udev/net/link-config-gperf.gperf')
-rw-r--r--src/udev/net/link-config-gperf.gperf3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf
index 9e2f4d4f52..182a664192 100644
--- a/src/udev/net/link-config-gperf.gperf
+++ b/src/udev/net/link-config-gperf.gperf
@@ -19,6 +19,9 @@ Match.Path, config_parse_string, 0, offsetof(link
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.MACAddress, config_parse_string, 0, offsetof(link_config, mac)
+Link.Name, config_parse_string, 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)