mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 08:10:06 +01:00
fix: dont return NM_DEVICE_CAP_IS_SOFTWARE for loopback
You cannot create or delete loopback devices. They are always there. Sure, they are purely in software, but still. If we return that loopback has NM_DEVICE_CAP_IS_SOFTWARE, there are probably other places that needs to be fixed, where we need to special case loopback for this reason. It might be easier to just claim that loopback is not a software device.
This commit is contained in:
parent
a10ac7fa5a
commit
c47b0201af
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ G_DEFINE_TYPE(NMDeviceLoopback, nm_device_loopback, NM_TYPE_DEVICE)
|
|||
static NMDeviceCapabilities
|
||||
get_generic_capabilities(NMDevice *dev)
|
||||
{
|
||||
return NM_DEVICE_CAP_IS_SOFTWARE;
|
||||
return NM_DEVICE_CAP_NONE;
|
||||
}
|
||||
|
||||
static guint32
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue