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
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -49,5 +49,11 @@ enum { · 48 unmodified lines | ||
| 49 | 49 | IF_PORT_100BASEFX |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | +/* hardware address assignment types */ | |
| 53 | +#define NET_ADDR_PERM 0 /* address is permanent (default) */ | |
| 54 | +#define NET_ADDR_RANDOM 1 /* address is generated randomly */ | |
| 55 | +#define NET_ADDR_STOLEN 2 /* address is stolen from other device */ | |
| 56 | +#define NET_ADDR_SET 3 /* address is set using | |
| 57 | + * dev_set_mac_address() */ | |
| 52 | 58 | |
| 53 | 59 | #endif /* _UAPI_LINUX_NETDEVICE_H */ |