diff options
| author | Michael Biebl <biebl@debian.org> | 2020-02-19 23:32:13 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-02-19 23:32:13 +0100 |
| commit | 3c2c324f025086dfdd40e2ec9f6db0643625c1de (patch) | |
| tree | 4efeae8faed34c747189f71b1129d67c3fe8bbf4 /clients/tui | |
| parent | bc4ff7bc667094c9450d8a34abe552886c4b1f73 (diff) | |
| parent | e536d40eaea5dcdc0743b0a5e8e17faa46608a50 (diff) | |
Update upstream source from tag 'upstream/1.22.8'
Update to upstream version '1.22.8' with Debian dir 692c834c9a0433e17bbad56345902291f4c31d2a
Diffstat (limited to 'clients/tui')
| -rw-r--r-- | clients/tui/nmt-device-entry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c index 67a66f72..4ab59329 100644 --- a/clients/tui/nmt-device-entry.c +++ b/clients/tui/nmt-device-entry.c @@ -103,7 +103,7 @@ device_entry_parse (NmtDeviceEntry *deventry, return TRUE; if (priv->hardware_type == G_TYPE_NONE && !priv->device_filter) { - if (nm_utils_is_valid_iface_name (text, NULL)) { + if (nm_utils_ifname_valid_kernel (text, NULL)) { *interface_name = g_strdup (text); return TRUE; } else @@ -127,12 +127,12 @@ device_entry_parse (NmtDeviceEntry *deventry, len = nm_utils_hwaddr_len (priv->arptype); if ( nm_utils_hwaddr_aton (words[0], buf, len) - && (!words[1] || nm_utils_is_valid_iface_name (words[1], NULL))) { + && (!words[1] || nm_utils_ifname_valid_kernel (words[1], NULL))) { *mac_address = words[0]; *interface_name = NULL; g_free (words); return TRUE; - } else if ( nm_utils_is_valid_iface_name (words[0], NULL) + } else if ( nm_utils_ifname_valid_kernel (words[0], NULL) && (!words[1] || nm_utils_hwaddr_aton (words[1], buf, len))) { *interface_name = words[0]; *mac_address = NULL; |