summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-10 10:33:23 +0200
committerThomas Haller <thaller@redhat.com>2018-09-10 11:13:49 +0200
commitb8eb0e27b8b4333445c926d3cb33554f4e08a38c (patch)
treeb4af2ab1f212c714dc12a6d71e71e9c4fc2a3733 /src
parentc5c28481ebdcf58f76d1a040876e882de0f5cdf0 (diff)
device: rename NM_UNMANAGED_LOOPBACK to NM_UNMANAGED_BY_TYPE
It is generally useful, not only for loopback. Rename. (cherry picked from commit 045a36b33bfe8e8758da9cc258083681d598f7bf)
Diffstat (limited to 'src')
-rw-r--r--src/devices/nm-device.c8
-rw-r--r--src/devices/nm-device.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index fd50a149e..95a2bc5a9 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -4298,10 +4298,10 @@ realize_start_setup (NMDevice *self,
NM_UNMANAGED_EXTERNAL_DOWN,
is_unmanaged_external_down (self, TRUE));
- /* Unmanaged the loopback device with an explicit NM_UNMANAGED_LOOPBACK flag.
+ /* Unmanaged the loopback device with an explicit NM_UNMANAGED_BY_TYPE flag.
* Later we might want to manage 'lo' too. Currently that doesn't work because
* NetworkManager might down the interface or remove the 127.0.0.1 address. */
- nm_device_set_unmanaged_flags (self, NM_UNMANAGED_LOOPBACK, is_loopback (self));
+ nm_device_set_unmanaged_flags (self, NM_UNMANAGED_BY_TYPE, is_loopback (self));
nm_device_set_unmanaged_by_user_udev (self);
nm_device_set_unmanaged_by_user_conf (self);
@@ -4497,7 +4497,7 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error)
nm_device_set_unmanaged_flags (self,
NM_UNMANAGED_PARENT |
- NM_UNMANAGED_LOOPBACK |
+ NM_UNMANAGED_BY_TYPE |
NM_UNMANAGED_USER_UDEV |
NM_UNMANAGED_USER_EXPLICIT |
NM_UNMANAGED_EXTERNAL_DOWN |
@@ -12876,7 +12876,7 @@ NM_UTILS_FLAGS2STR_DEFINE (nm_unmanaged_flags2str, NMUnmanagedFlags,
NM_UTILS_FLAGS2STR (NM_UNMANAGED_SLEEPING, "sleeping"),
NM_UTILS_FLAGS2STR (NM_UNMANAGED_QUITTING, "quitting"),
NM_UTILS_FLAGS2STR (NM_UNMANAGED_PARENT, "parent"),
- NM_UTILS_FLAGS2STR (NM_UNMANAGED_LOOPBACK, "loopback"),
+ NM_UTILS_FLAGS2STR (NM_UNMANAGED_BY_TYPE, "by-type"),
NM_UTILS_FLAGS2STR (NM_UNMANAGED_PLATFORM_INIT, "platform-init"),
NM_UTILS_FLAGS2STR (NM_UNMANAGED_USER_EXPLICIT, "user-explicit"),
NM_UTILS_FLAGS2STR (NM_UNMANAGED_BY_DEFAULT, "by-default"),
diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h
index 7d74e5b91..6342a657b 100644
--- a/src/devices/nm-device.h
+++ b/src/devices/nm-device.h
@@ -583,7 +583,7 @@ void nm_device_copy_ip6_dns_config (NMDevice *self, NMDevice *from_device);
* @NM_UNMANAGED_SLEEPING: %TRUE when unmanaged because NM is sleeping.
* @NM_UNMANAGED_QUITTING: %TRUE when unmanaged because NM is shutting down.
* @NM_UNMANAGED_PARENT: %TRUE when unmanaged due to parent device being unmanaged
- * @NM_UNMANAGED_LOOPBACK: %TRUE for unmanaging loopback device
+ * @NM_UNMANAGED_BY_TYPE: %TRUE for unmanaging device by type, like loopback.
* @NM_UNMANAGED_PLATFORM_INIT: %TRUE when unmanaged because platform link not
* yet initialized. Unrealized device are also unmanaged for this reason.
* @NM_UNMANAGED_USER_EXPLICIT: %TRUE when unmanaged by explicit user decision
@@ -614,7 +614,7 @@ typedef enum { /*< skip >*/
NM_UNMANAGED_SLEEPING = (1LL << 0),
NM_UNMANAGED_QUITTING = (1LL << 1),
NM_UNMANAGED_PARENT = (1LL << 2),
- NM_UNMANAGED_LOOPBACK = (1LL << 3),
+ NM_UNMANAGED_BY_TYPE = (1LL << 3),
NM_UNMANAGED_PLATFORM_INIT = (1LL << 4),
NM_UNMANAGED_USER_EXPLICIT = (1LL << 5),
NM_UNMANAGED_USER_SETTINGS = (1LL << 6),