summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2015-10-06 17:42:15 -0400
committerThomas Haller <thaller@redhat.com>2015-11-18 15:37:42 +0100
commit02228221340dc0824639c73d1a515ee85df3dbbc (patch)
tree55678d3d59ef11f72f211e929424fad87d7af668 /libnm-core/nm-setting.h
parent325faa23799c617c238f110cb77d8a854614c76b (diff)
downloadNetworkManager-02228221340dc0824639c73d1a515ee85df3dbbc.tar.gz
libnm: add Wi-Fi MAC address randomization property
Diffstat (limited to 'libnm-core/nm-setting.h')
-rw-r--r--libnm-core/nm-setting.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libnm-core/nm-setting.h b/libnm-core/nm-setting.h
index 5df73663cb..7b1d87d576 100644
--- a/libnm-core/nm-setting.h
+++ b/libnm-core/nm-setting.h
@@ -132,6 +132,22 @@ typedef enum {
/**
+ * NMSettingMacRandomization:
+ * @NM_SETTING_MAC_RANDOMIZATION_DEFAULT: the default value, which unless
+ * overridden by user-controlled defaults configuration, is "never".
+ * @NM_SETTING_MAC_RANDOMIZATION_NEVER: the device's MAC address is always used.
+ * @NM_SETTING_MAC_RANDOMIZATION_ALWAYS: a random MAC address is used.
+ *
+ * Controls if and how the MAC address of a device is randomzied.
+ **/
+typedef enum {
+ NM_SETTING_MAC_RANDOMIZATION_DEFAULT = 0,
+ NM_SETTING_MAC_RANDOMIZATION_NEVER,
+ NM_SETTING_MAC_RANDOMIZATION_ALWAYS,
+} NMSettingMacRandomization;
+
+
+/**
* NMSetting:
*
* The NMSetting struct contains only private data.