1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 17:13:50 +01:00

11 Commits

Author SHA1 Message Date
Marian Buschsieweke
9c866b19d3
examples,tests: update users of deprecated nanocoap APIs 2025-11-10 17:28:43 +01:00
Benjamin Valentin
2cf009ab3a tests/net/nanocoap_cli: add observe command 2025-04-04 15:29:54 +02:00
Benjamin Valentin
99637edbb6 tests/nanocoap_cli: allow to build with lwIP 2025-03-22 10:06:11 +01:00
Marian Buschsieweke
fa011a8a1a
tests/net/nanocoap_cli: allow specifying the token
This adds the client_token shell command that allows to specify the
CoAP Token. This is particularly useful to test extended length Tokens,
as enabled with module `nanocoap_token_ext`.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
7a738d0e0b
sys/net/nanocoap: fix buffer overflow in separate response handling
When RFC 8974 support (module `nanocoap_token_ext`) is in use, the
request token may be longer than the buffer in the separate response
context is large. This adds a check to not overflow the buffer.

Sadly, this is an API change: Preparing the separate response context
can actually fail, so we need to report this with a return value.

The example application has been adapted to only proceed if the separate
reply context could have been prepared, and rather directly emit a
reset message if the token exceeds the static buffer.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Teufelchen
1ac0c2cdd1
Merge pull request #20961 from maribu/tests/net/nanocoap_cli/modernize
tests/net/nanocoap_cli: make use of XFA for shell commands
2024-11-25 10:31:13 +00:00
Benjamin Valentin
9d22e46fa9 test/net/nanocoap_cli: fix buffer size for get_non 2024-11-22 19:50:20 +01:00
Marian Buschsieweke
e436f45871
tests/net/nanocoap_cli: make use of XFA for shell commands 2024-11-06 21:31:55 +01:00
Fabian Hüßler
d3417dad65 tests/net/nanocoap_cli: add get_non command 2024-09-10 16:43:45 +02:00
Frederik Haxel
fa0cf05d0a tests: Use size_t print format specifier
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:37 +01:00
Alexandre Abadie
6247f8a960
tests: move net related applications to tests/net 2023-05-12 16:36:39 +02:00