mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
366a021076
Thread spec doesn't define the order of TLVs in the dataset, so that we can't call `memcmp` to compare two dataset. If we convert the dataset to otOperationalDataset and then compare each value of otOperationalDataset, we will met an issue if the new Thread spec defines new TLVs in the dataset in the future. This commit add a new dataset API `otDatasetTlvsCompare` to check whether two dataset contain the exact same set of TLVs (same types and values).