diff options
author | Thomas Haller <thaller@redhat.com> | 2015-10-08 13:32:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-18 15:37:42 +0100 |
commit | 6a46dfca267f8bdb4ffc6539e168a39702bbb7c2 (patch) | |
tree | c86b71a3e57e00687cb2e6d1c65171c29ecc23d3 /libnm-core/nm-setting-wireless.c | |
parent | 190e0e31cd553566c80d371466f7171a0384bf50 (diff) | |
download | NetworkManager-6a46dfca267f8bdb4ffc6539e168a39702bbb7c2.tar.gz |
ifcfg-rh: add support for NMSettingWireless:mac-address-randomization
Old init-scripts that did not yet understand this key will have
mac-address-randomization explicitly disabled. This is to ensure
that old connections don't change behavior.
Thus, the writer must always write the value explicitly.
Downside is, if somebody creates a quick ifcfg-file, the feature
is disabled by default.
Diffstat (limited to 'libnm-core/nm-setting-wireless.c')
-rw-r--r-- | libnm-core/nm-setting-wireless.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-wireless.c b/libnm-core/nm-setting-wireless.c index 9931521825..2a14829314 100644 --- a/libnm-core/nm-setting-wireless.c +++ b/libnm-core/nm-setting-wireless.c @@ -1398,6 +1398,15 @@ nm_setting_wireless_class_init (NMSettingWirelessClass *setting_class) * * Since: 1.2 **/ + /* ---ifcfg-rh--- + * property: mac-address-randomization + * variable: MAC_ADDRESS_RANDOMIZATION(+) + * values: 0 (default), (1) never, (2) always + * default: 1 + * description: Enables or disables Wi-Fi MAC address randomization. + * example: MAC_ADDRESS_RANDOMIZATION=2 + * ---end--- + */ g_object_class_install_property (object_class, PROP_MAC_ADDRESS_RANDOMIZATION, g_param_spec_uint (NM_SETTING_WIRELESS_MAC_ADDRESS_RANDOMIZATION, "", "", |