From ddc35f27eb2594d924755f2fc0ff39f4352a2a0c Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Thu, 21 Jul 2016 18:12:37 +0200 Subject: [PATCH] device: enable checks against the MAC address of virtual devices enables (back) matching against 802-3-ethernet.mac-address and 802-3-ethenet.mac-address-blacklist connection parameters for MAC addresses belonging to virtual devices too. --- src/devices/nm-device-ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c index c077d020d4..90d472da3b 100644 --- a/src/devices/nm-device-ethernet.c +++ b/src/devices/nm-device-ethernet.c @@ -407,7 +407,7 @@ check_connection_compatible (NMDevice *device, NMConnection *connection) if (!match_subchans (self, s_wired, &try_mac)) return FALSE; - perm_hw_addr = nm_device_get_permanent_hw_address (device, FALSE); + perm_hw_addr = nm_device_get_permanent_hw_address (device, TRUE); mac = nm_setting_wired_get_mac_address (s_wired); if (perm_hw_addr) { if (try_mac && mac && !nm_utils_hwaddr_matches (mac, -1, perm_hw_addr, -1))