summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-03-28 14:25:58 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-31 16:09:06 -0400
commit339e022396d58f4b4f9b4200ea5309768934bb33 (patch)
tree53015a4ca1bb53ccba9955ccc6cc151ac330307c /include/uapi
parent39f1a2f0a1ed40a154090042114cc2158383e668 (diff)
downloadop-kernel-dev-339e022396d58f4b4f9b4200ea5309768934bb33.zip
op-kernel-dev-339e022396d58f4b4f9b4200ea5309768934bb33.tar.gz
net: export NET_ADDR_* values to user-space API
NET_ADDR_* values are exported in the /sys/class/net/<iface>/addr_assign_type sysfs attributes, and as such constitutes an user-space ABI. Move the NET_ADDR_* definitions from include/linux/netdevice.h to include/uapi/linux/netdevice.h Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/netdevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/netdevice.h b/include/uapi/linux/netdevice.h
index 6b9500b..fdfbd1c 100644
--- a/include/uapi/linux/netdevice.h
+++ b/include/uapi/linux/netdevice.h
@@ -49,5 +49,11 @@ enum {
IF_PORT_100BASEFX
};
+/* hardware address assignment types */
+#define NET_ADDR_PERM 0 /* address is permanent (default) */
+#define NET_ADDR_RANDOM 1 /* address is generated randomly */
+#define NET_ADDR_STOLEN 2 /* address is stolen from other device */
+#define NET_ADDR_SET 3 /* address is set using
+ * dev_set_mac_address() */
#endif /* _UAPI_LINUX_NETDEVICE_H */
OpenPOWER on IntegriCloud