diff options
author | Tom Gundersen <teg@jklm.no> | 2013-10-28 00:19:59 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-10-28 18:10:23 +0100 |
commit | 16b9b87aeee9353b5b8dae6089a69752422a5b09 (patch) | |
tree | 37d0f0fa00155e2dc2e86dd26123c0ac73203d9e /src/udev/net/link-config-gperf.gperf | |
parent | a7792fecc36fa3e9dae4a5a00aaacdf1da9a661b (diff) |
udev: link-config - add mac address policy
This introduces a new key MACAddressPolicy.
The possible policies are 'persistent' and 'random'.
'persistent' will do nothing if the current address is the hardware address,
but if the hardware does not have an address (or another address is set for
whatever reason), we will generate an address which will be random, but
persistent between boots (based on machineid and persistent netif name).
'random' will do nothing if the kernel already set a random address, otherwise
it will generate a random one and use that instead.
This patch sets MACAddressPolicy=persistent in the default .link file.
Diffstat (limited to 'src/udev/net/link-config-gperf.gperf')
-rw-r--r-- | src/udev/net/link-config-gperf.gperf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index b38dbe80bd..1d905319e9 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -19,6 +19,7 @@ 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.MACAddressPolicy, config_parse_string, 0, offsetof(link_config, mac_policy) Link.MACAddress, config_parse_string, 0, offsetof(link_config, mac) Link.NamePolicy, config_parse_strv, 0, offsetof(link_config, name_policy) Link.Name, config_parse_string, 0, offsetof(link_config, name) |