mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 23:50:30 +01:00
linux-platform: don't try to read vlan id from netlink objects without type set
They just don't have the information.
This commit is contained in:
parent
348452f1e0
commit
8a1f4beb65
1 changed files with 1 additions and 1 deletions
|
|
@ -1000,7 +1000,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob
|
|||
obj->mtu = rtnl_link_get_mtu (nlo);
|
||||
obj->arptype = rtnl_link_get_arptype (nlo);
|
||||
|
||||
if (obj->type == NM_LINK_TYPE_VLAN)
|
||||
if (!g_strcmp0 (rtnl_link_get_type (nlo), "vlan"))
|
||||
obj->vlan_id = rtnl_link_vlan_get_id (nlo);
|
||||
|
||||
if ((nladdr = rtnl_link_get_addr (nlo))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue