NetworkManager/clients/cli
Thomas Haller 8eed67122c device: extend MAC address handling including randomization for ethernet and wifi
Extend the "ethernet.cloned-mac-address" and "wifi.cloned-mac-address"
settings. Instead of specifying an explicit MAC address, the additional
special values "permanent", "preserve", "random", "random-bia", "stable" and
"stable-bia" are supported.

"permanent" means to use the permanent hardware address. Previously that
was the default if no explict cloned-mac-address was set. The default is
thus still "permanent", but it can be overwritten by global
configuration.

"preserve" means not to configure the MAC address when activating the
device. That was actually the default behavior before introducing MAC
address handling with commit 1b49f941a6.

"random" and "random-bia" use a randomized MAC address for each
connection. "stable" and "stable-bia" use a generated, stable
address based on some token. The "bia" suffix says to generate a
burned-in address. The stable method by default uses as token the
connection UUID, but the token can be explicitly choosen via
"stable:<TOKEN>" and "stable-bia:<TOKEN>".

On a D-Bus level, the "cloned-mac-address" is a bytestring and thus
cannot express the new forms. It is replaced by the new
"assigned-mac-address" field. For the GObject property, libnm's API,
nmcli, keyfile, etc. the old name "cloned-mac-address" is still used.
Deprecating the old field seems more complicated then just extending
the use of the existing "cloned-mac-address" field, although the name
doesn't match well with the extended meaning.

There is some overlap with the "wifi.mac-address-randomization" setting.

https://bugzilla.gnome.org/show_bug.cgi?id=705545
https://bugzilla.gnome.org/show_bug.cgi?id=708820
https://bugzilla.gnome.org/show_bug.cgi?id=758301
2016-06-30 08:29:56 +02:00
..
agent.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: make subcommand dispatch do autocompletion 2016-06-29 20:49:34 +02:00
common.h cli: add boolean value completion helper 2016-06-29 20:49:34 +02:00
connections.c cli/connection: export read_connection_properties() 2016-06-29 20:28:42 +02:00
connections.h cli/connection: export read_connection_properties() 2016-06-29 20:28:42 +02:00
devices.c cli/device: allow completion of the "wifi" command name 2016-06-29 20:49:34 +02:00
devices.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
general.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
general.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
Makefile.am build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
nmcli-completion cli/device: add modify command 2016-06-29 20:28:42 +02:00
nmcli.c cli/device: add device name completion 2016-06-29 20:28:42 +02:00
nmcli.h nmcli: enable connection autocompletion for 802.1x properties 2016-06-21 16:28:48 +02:00
polkit-agent.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c device: extend MAC address handling including randomization for ethernet and wifi 2016-06-30 08:29:56 +02:00
settings.h cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
utils.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
utils.h macros: add macro _nm_printf() for function attribute 2016-06-05 12:22:01 +02:00