about summary refs log tree commit diff
path: root/src/libnm-client-impl/nm-device.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-02-10 11:51:50 +0100
committerMichael Biebl <biebl@debian.org>2023-02-10 11:51:50 +0100
commit58dddb802071d967ff5731f3333239ead78248e8 (patch)
treedef9e578e4786f8cbc56ce1b6cabf7670e00ae81 /src/libnm-client-impl/nm-device.c
parent2c1b7a7ea3c332b4d690c0595ef76c81de1f0cc8 (diff)
parent1372848511cb896b80b51ed1a3e9606bd9816631 (diff)
Update upstream source from tag 'upstream/1.42.0'
Update to upstream version '1.42.0'
with Debian dir 2b9fa2718b2bd34fa58008e335a0d81b87ad57cf
Diffstat (limited to 'src/libnm-client-impl/nm-device.c')
-rw-r--r--src/libnm-client-impl/nm-device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libnm-client-impl/nm-device.c b/src/libnm-client-impl/nm-device.c
index 0e971d39..d5ecee48 100644
--- a/src/libnm-client-impl/nm-device.c
+++ b/src/libnm-client-impl/nm-device.c
@@ -312,6 +312,7 @@ coerce_type(NMDeviceType type)
     case NM_DEVICE_TYPE_WIREGUARD:
     case NM_DEVICE_TYPE_WIFI_P2P:
     case NM_DEVICE_TYPE_VRF:
+    case NM_DEVICE_TYPE_LOOPBACK:
         return type;
     }
     return NM_DEVICE_TYPE_UNKNOWN;
@@ -1811,6 +1812,8 @@ get_type_name(NMDevice *device)
         return _("Wi-Fi P2P");
     case NM_DEVICE_TYPE_VRF:
         return _("VRF");
+    case NM_DEVICE_TYPE_LOOPBACK:
+        return _("Loopback");
     case NM_DEVICE_TYPE_GENERIC:
     case NM_DEVICE_TYPE_UNUSED1:
     case NM_DEVICE_TYPE_UNUSED2:
@@ -2979,7 +2982,8 @@ NM_IS_LLDP_NEIGHBOR(const NMLldpNeighbor *self)
  * Note that #NMLldpNeighbor has no public API for mutating
  * an instance. Also, libnm will not internally mutate a
  * once exposed object. They are guaranteed to be immutable.
- * Since 1.32, ref-counting is thread-safe.
+ *
+ * Since 1.32, ref-counting of #NMLldpNeighbor is thread-safe.
  *
  * This function is not useful, as there is no public API to
  * actually modify the (empty) instance.