Verified Commit 9b7c5ca1 authored by Thomas Haller's avatar Thomas Haller

lldp: fix lldp_neighbor_equal() to compare variants

Fixes: 8200078e ('lldp: support IEEE 802.3 TLVs')
parent 7c0d73d9
......@@ -388,6 +388,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