mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 08:40:33 +01:00
device: indicate software devices in NMDeviceCapabilities
It is visible by clients in 'capabilities' property.
This commit is contained in:
parent
4c36ff7062
commit
bbf13002d3
1 changed files with 4 additions and 3 deletions
|
|
@ -7265,10 +7265,11 @@ constructed (GObject *object)
|
|||
if (priv->ifindex > 0) {
|
||||
priv->is_software = nm_platform_link_is_software (priv->ifindex);
|
||||
priv->physical_port_id = nm_platform_link_get_physical_port_id (priv->ifindex);
|
||||
}
|
||||
|
||||
if (priv->ifindex > 0)
|
||||
priv->mtu = nm_platform_link_get_mtu (priv->ifindex);
|
||||
}
|
||||
/* Indicate software device in capabilities. */
|
||||
if (priv->is_software)
|
||||
priv->capabilities |= NM_DEVICE_CAP_IS_SOFTWARE;
|
||||
|
||||
priv->con_provider = nm_connection_provider_get ();
|
||||
g_assert (priv->con_provider);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue