Verified Commit 739417ab authored by Thomas Haller's avatar Thomas Haller

lldp: fix lldp_neighbor_equal() to compare variants

Fixes: 8200078e ('lldp: support IEEE 802.3 TLVs')
(cherry picked from commit 9b7c5ca1)
(cherry picked from commit 4b84eeba)
parent 321f9b51
Pipeline #195784 passed with stage
in 40 minutes and 27 seconds
......@@ -385,6 +385,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment