Skip to content

Commit

Permalink
[tlv] add new tlvs for network diagnostic
Browse files Browse the repository at this point in the history
libotcommissioner.jar, a versatile Java library, provides support for
wide range of TMF message transactions, including MeshCop protocols and
diagnostic TLVs. This PR focuses on integrating all the diagnostic TLVs,
as defined in the spec `10.11.3` into the library's TLV module
  • Loading branch information
ZhangLe2016 committed May 7, 2024
1 parent f0bbe33 commit 1cc8322
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/library/tlv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,15 @@ bool Tlv::IsValid() const
{
// Network disgnostic layer TLVs
case Type::kNetworkDiagExtMacAddress:
<<<<<<< HEAD
return length == 8;
case Type::kNetworkDiagMacAddress:
return length == 2;
=======
return length >= 8;
case Type::kNetworkDiagMacAddress:
return length >= 2;
>>>>>>> 20da654 ([tlv] add new tlvs for network diagnostic)
case Type::kNetworkDiagMode:
return length == 1;
case Type::kNetworkDiagTimeout:
Expand Down

0 comments on commit 1cc8322

Please sign in to comment.