Files
Jonathan Hui 65a57d17cc [pktverify] fix CoAP response uri_path_recon on token reuse (#13869)
Wireshark's CoAP dissector keys its per-conversation transaction map
by token string and only sets the transaction's `uri_path` when a
token is first seen in that conversation. When a later CoAP request on
a different URI (such as `/d/dr` after `/d/dg` in `1_1_5_7_1`)
randomly generates the same 2-byte token, Wireshark still links the
response via `coap.response_to` to the new request frame, but populates
`coap.opt.uri_path_recon` on the response with the earlier request's
URI path (`'/d/dg'`), causing `filter_coap_ack('/d/dr')` to fail.

This commit updates `PcapReader.read()` to reconcile
`coap.opt.uri_path_recon` on CoAP responses with the matching request
packet's URI path (using `coap.response_to` or `coap.token`).
2026-11-04 11:11:20 -08:00
..
2023-06-14 20:07:24 -07:00
2023-05-04 09:59:24 -07:00
2023-05-04 09:59:24 -07:00
2023-05-04 09:59:24 -07:00
2023-05-04 09:59:24 -07:00

OpenThread Certification Tests

Inspector

Inspect nodes status by the following modification:

  1. Insert the inspector to where you want to inspect.
import debug
debug.Inspector(self).inspect()
  1. Run the test and it will stop at the line above and prompt #.
./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
  1. Inspect
#
# 1
> state
leader
> exit
# 2
> panid
face
> exit
# exit

CLI reference

# mode

This is selection mode. You may select the node to inspect here.

  • list - list available nodes.
  • exit - end inspecting, continue running test case.
  • <number> - select the node with id <number>. This will result in entering > mode.

> mode

This is node mode. You may run OpenThread CLI here.

  • exit - go back to # mode.