mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 02:40:31 +01:00
lldp: fix lldp_neighbor_equal() to compare variants
Fixes:8200078ec5('lldp: support IEEE 802.3 TLVs') (cherry picked from commit9b7c5ca12d) (cherry picked from commit4b84eeba57) (cherry picked from commit739417ab85)
This commit is contained in:
parent
2e9d7c84d6
commit
284e3dd4fa
1 changed files with 4 additions and 0 deletions
|
|
@ -399,6 +399,10 @@ lldp_neighbor_equal (LldpNeighbor *a, LldpNeighbor *b)
|
|||
if (!nm_streq (a->attrs[attr_id].v_string, b->attrs[attr_id].v_string))
|
||||
return FALSE;
|
||||
break;
|
||||
case LLDP_ATTR_TYPE_VARDICT:
|
||||
if (!g_variant_equal (a->attrs[attr_id].v_variant, b->attrs[attr_id].v_variant))
|
||||
return FALSE;
|
||||
break;
|
||||
case LLDP_ATTR_TYPE_ARRAY_OF_VARDICTS: {
|
||||
NMCListElem *itr_a, *itr_b;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue