mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 05:40:15 +01:00
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.
This commit is contained in:
parent
55b9fd46ee
commit
ddc35f27eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue