mirror of
https://github.com/espressif/openthread.git
synced 2026-07-22 20:14:07 +00:00
c4b6206f16
This commit add a new feature in `Srp::Client` to allow user to specify the lease and/or key lease intervals explicitly per service. The lease intervals in a service can be left unspecified(set to zero) in which case the default lease intervals will be used. In an SRP Update message, the lease info is included in additional section in an Update Lease Option record. Therefore the lease values are applicable to the entire message and all its records. If we have services with different lease intervals, they need to be registered in separate messages. This commit updates `Srp::Client` to implement such a mechanism. When preparing an SRP message, we first determine the lease and key lease intervals and ensure the services using matching intervals are included in the message. This commit also updates and simplifies the "single service mode" functionality to use the newly added mechanism for tracking which services are included in the message. This commit adds `test_srp_register_services_diff_lease` which covers the behavior of the newly added mechanisms.
toranj test framework
toranj is a test framework for OpenThread.
It provides two modes:
toranj-cliwhich enables testing of OpenThread using its CLI interface.toranj-ncpwhich enables testing of the combined behavior of OpenThread (in NCP mode), spinel interface, andwpantunddriver on linux.
toranj features:
- It is developed in Python.
- It can be used to simulate multiple nodes forming complex network topologies.
- It allows testing of network interactions between many nodes (IPv6 traffic exchanges).
toranjin NCP mode runswpantundnatively with OpenThread in NCP mode on simulation platform (real-time).toranjin CLI mode runsot-cli-ftdon simulation platform (real-time).toranjtests run as part of GitHub Actions pull request validation in OpenThread andwpantundGitHub projects.
toranj modes
What does "toranj" mean? it's the name of a common symmetric weaving pattern used in Persian carpets.