about summary refs log tree commit diff
path: root/libnm-core/nm-connection.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2021-02-11 18:12:43 +0100
committerMichael Biebl <biebl@debian.org>2021-02-11 18:12:43 +0100
commit8f0db010e71e252ac290d51bd2a5b0a078f1d279 (patch)
tree2caa344fefcd9bb4218583c5aa2e0f92f4b2aa8c /libnm-core/nm-connection.c
parentf54032b30e1ddd84f10a339e0caf493772e049a7 (diff)
parent80ec1decc49c72efec2a8b87c06245c92c0ab807 (diff)
Update upstream source from tag 'upstream/1.29.90'
Update to upstream version '1.29.90'
with Debian dir 90df6d97476cc3200c410f3f3603b87396175c7a
Diffstat (limited to 'libnm-core/nm-connection.c')
-rw-r--r--libnm-core/nm-connection.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c
index 10bfe7b8..b39c41d7 100644
--- a/libnm-core/nm-connection.c
+++ b/libnm-core/nm-connection.c
@@ -1,10 +1,10 @@
-/* SPDX-License-Identifier: LGPL-2.1+ */
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * Copyright (C) 2007 - 2018 Red Hat, Inc.
  * Copyright (C) 2007 - 2008 Novell, Inc.
  */
 
-#include "nm-default.h"
+#include "libnm-core/nm-default-libnm-core.h"
 
 #include "nm-connection.h"
 
@@ -1065,7 +1065,8 @@ _normalize_bond_mode(NMConnection *self)
 
         if (mode_int != -1) {
             const char *mode_new = nm_utils_bond_mode_int_to_string(mode_int);
-            if (g_strcmp0(mode_new, mode) != 0) {
+
+            if (!nm_streq0(mode_new, mode)) {
                 nm_setting_bond_add_option(s_bond, NM_SETTING_BOND_OPTION_MODE, mode_new);
                 return TRUE;
             }
@@ -2641,6 +2642,7 @@ nm_connection_is_virtual(NMConnection *connection)
                      NM_SETTING_OVS_PORT_SETTING_NAME,
                      NM_SETTING_TEAM_SETTING_NAME,
                      NM_SETTING_TUN_SETTING_NAME,
+                     NM_SETTING_VETH_SETTING_NAME,
                      NM_SETTING_VLAN_SETTING_NAME,
                      NM_SETTING_VRF_SETTING_NAME,
                      NM_SETTING_VXLAN_SETTING_NAME,