mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 07:59:51 +00:00
[border-agent] add 'rv' key to MeshCoP TXT data (#11504)
This commit updates `BorderAgent::PrepareServiceTxtData()` to include the "rv" key. This key represents the version of the TXT record format. Per the Thread specification, it must be set to "1". Values other than "1" are reserved for the future and MUST NOT be used. This commit also updates `test_border_agent` to validate this key.
This commit is contained in:
@@ -897,6 +897,7 @@ void ValidateMeshCoPTxtData(TxtData &aTxtData, Node &aNode)
|
||||
|
||||
SuccessOrQuit(aNode.Get<BorderAgent>().GetId(id));
|
||||
aTxtData.ValidateKey("id", id);
|
||||
aTxtData.ValidateKey("rv", "1");
|
||||
aTxtData.ValidateKey("nn", aNode.Get<NetworkNameManager>().GetNetworkName().GetAsCString());
|
||||
aTxtData.ValidateKey("xp", aNode.Get<ExtendedPanIdManager>().GetExtPanId());
|
||||
aTxtData.ValidateKey("tv", kThreadVersionString);
|
||||
|
||||
Reference in New Issue
Block a user