1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

11325 Commits

Author SHA1 Message Date
Joshua DeWeese
9b2782d020
Merge pull request #21126 from maribu/sys/net/gnrc_sock/drop-timer-workaround
Revert "sock/udp: work around gnrc_sock_recv() returning early timeout"
2025-01-20 11:58:08 +00:00
Kevin "Tristate Tom" Weiss
8302223ba1
Merge pull request #21137 from benpicco/gnrc_netif_ipv6_wait_for_global_address-fix_timeout
gnrc_netif: fix timeout in `gnrc_netif_ipv6_wait_for_global_address()`
2025-01-20 10:03:17 +00:00
benpicco
cefa182d2b
Merge pull request #21080 from benpicco/gnrc_ipv6_auto_subnets_eui
gnrc/ipv6_auto_subnets: add option to derive subnet prefix from EUI
2025-01-16 17:19:54 +00:00
Benjamin Valentin
a95bd508a5 gnrc_netif: fix timeout in gnrc_netif_ipv6_wait_for_global_address() 2025-01-16 16:07:40 +01:00
Teufelchen
e09a800978
Merge pull request #21133 from chrysn-pull-requests/rust-updates
treewide: Update Rust dependencies
2025-01-14 11:39:47 +00:00
benpicco
6547f144d9
Merge pull request #21125 from maribu/sys/net/gcoap/fix-api-abuse
sys/net/gcoap: get rid of API abuse
2025-01-13 18:43:16 +00:00
chrysn
5d7bff869b treewide: Update riot-sys
This pulls in the changes of [144].

[144]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/144
2025-01-13 18:49:18 +01:00
Benjamin Valentin
698d414733 gnrc/ipv6_auto_subnets: add gnrc_ipv6_auto_subnets_eui 2025-01-13 15:52:25 +01:00
chrysn
ee5e794341 treewide: Update Rust dependencies 2025-01-13 13:33:33 +01:00
chrysn
f1c34a275b treewide: Update riot-wrappers and riot-sys 2025-01-13 13:19:13 +01:00
Marian Buschsieweke
590ca5d7ff
sys/net/gcoap: get rid of API abuse
Calling `coap_get_token()` and `coap_get_token_length()` on an
(mostly) uninitialized `coap_pkt_t` did work so far due to
implementation details matching the expectations, but this is not
backed up by any API contract.

This fixes the API abuse by introducing and using a new API that does
read a token and token length from a CoAP over UDP packet out of a
buffer. This now provides the behavior expected by the caller and
commits to it via API contract.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: benpicco <benpicco@googlemail.com>
2025-01-10 21:31:08 +01:00
Marian Buschsieweke
c562b6cbe9
Revert "sock/udp: work around gnrc_sock_recv() returning early timeout"
This reverts commit e3d00682bcad2e0f26ee15b1c73d5da022b18786, which
added a work around for two bugs:

- ztimer triggering too early (fixed in
  https://github.com/RIOT-OS/RIOT/pull/20924)
- gnrc_sock_recv() returning when an old "timeout" message is still
  in the message queue (fixed in
  https://github.com/RIOT-OS/RIOT/pull/21113)

With those bugs fixed, the work around should not longer be needed.
2025-01-10 21:25:34 +01:00
Benjamin Valentin
64c10f33a1 gnrc/ipv6_auto_subnets: unicast RA if upstream is 6lo 2025-01-10 18:56:42 +01:00
Marian Buschsieweke
ade999ab01
Merge pull request #21113 from maribu/sys/ztimer/ztimer_mbox_get_timeout
sys/ztimer: implement ztimer_mbox_get_timeout() and use it to fix race in gnrc_sock_recv()
2025-01-10 15:37:46 +00:00
Marian Buschsieweke
56ea5cd3d0
sys/net/gnrc_sock: fix race in gnrc_sock_recv()
Implement the timeout using ztimer_mbox_get_timeout() to fix a race
condition.
2025-01-10 16:19:00 +01:00
benpicco
758a92f6f0
Merge pull request #21085 from crasbe/pr/sys/stdio_nimble
sys/stdio_nimble: add version note to README
2025-01-08 08:52:52 +00:00
Benjamin Valentin
5869554d7a sys/net/nanocoap: flush stale responses before sending request 2025-01-06 10:40:30 +01:00
Oleg Hahm
395bdb83fe sys: net: dns: use Quad resolver
Replaces Google's solver with the Quad9 (https://quad9.net/) ones.
2025-01-03 10:05:46 +01:00
Marian Buschsieweke
eab75888a9
sys/ztimer: implement ztimer_mbox_get_timeout()
This function fetches a message from an mbox, possibly blocking if the
mbox has no message - but with a specified timeout.
2024-12-31 00:35:05 +01:00
crasbe
cafcd010b0 sys/stdio_nimble: move doc from README to header, add version note 2024-12-21 20:57:23 +01:00
Oleg Hahm
d330040b0f sys: shell: posix_inet as dependency for LWIP
The LWIP netif shell commands make use of POSIX functions like
inet_pton(). Hence, the module needs to be a dependency.
2024-12-21 01:41:25 +01:00
benpicco
243ca3114b
Merge pull request #20843 from benpicco/string_writer
sys/string_utils: add string_writer helper
2024-12-20 16:36:09 +00:00
Marian Buschsieweke
4f55461e15
Merge pull request #21096 from benpicco/rtc_mktime-const
sys/rtc_utils: make parameter to `rtc_mktime()` const
2024-12-19 14:29:20 +00:00
Benjamin Valentin
ba0060d3a6 sys/rtc_utils: make parameter to rtc_mktime() const 2024-12-18 22:08:32 +01:00
Benjamin Valentin
309ff95f34 sys/string_utils: add string_writer helper 2024-12-17 12:38:14 +01:00
Marian Buschsieweke
c5ff57c59c
sys/event: fix race in event_wait_multi()
We need to clear `event->next` while IRQs are still disabled to
avoid another thread from calling `event_cancel()` just in-between.
2024-12-16 20:11:38 +01:00
Marian Buschsieweke
4d44abcc0e
Merge pull request #21073 from benpicco/sys/chunked_ringbuffer-start_discard
sys/chunked_ringbuffer: discard stale chunk when starting a new one
2024-12-14 09:28:14 +00:00
Marian Buschsieweke
ab116ec71c
sys/net/nanocoap: Fix sending bogus separate responses
When module `nanocoap_server_separate` is not used, the functions to
send separate responses are still provided, just in a broken version:
They will send the separate replies from a different endpoint than the
request was received at (even on machines with only one IP address, as
also the source port is randomized).

This changes the behavior to only provide the functions for separate
response when the do work, so that others will detect an invalid
configuration at compile time rather than at run time.

The documentation is duly updated.
2024-12-13 08:40:43 +01:00
Marian Buschsieweke
28753e3509
Merge pull request #21075 from maribu/sys/net/nanocoap/buffer-overflow-separate-response
sys/net/nanocoap: fix buffer overflow in separate response handling
2024-12-12 20:36:55 +00:00
Marian Buschsieweke
c7af4b25a6
sys/net/nanocoap: fix invalid RST messages
An RST message has no token, so don't reply with a token when sending
RST.

This also adds unit tests to ensure this this exact bug does not sneak
back in.
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
6b1279348a
sys/fmt: add scn_buf_hex()
This adds a function to convert a hex string to a byte array.
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
Benjamin Valentin
982a2c161a sys/chunked_ringbuffer: discard stale chunk when starting a new one 2024-12-12 11:18:13 +01:00
mguetschow
c80058ee85
Merge pull request #21046 from netd-tud/psa-key-headers
sys/psa_crypto: Update key headers
2024-12-10 13:04:34 +00:00
Armin Wolf
7cabd3ee93 sys/psa_crypto: Split key attributes definitions into separate file
Split key attributes definitions into separate file, together with
some basic support macros and helper functions.

This allows PSA crypto backends to use this definitions without
pulling in all the other type definitions.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-12-05 21:36:02 +01:00
Karl Fessel
737f675442
Merge pull request #18663 from Ollrogge/fido2_follow_up2
sys/fido2: follow up continued
2024-11-28 10:09:47 +00:00
Marian Buschsieweke
67a22dba5e
Merge pull request #19837 from HendrikVE/stdio_uart_add_flush_rx
sys/stdio_uart: add stdio_clear_stdin
2024-11-27 11:27:03 +00:00
Hendrik van Essen
6f9edfe7a2 sys/stdio_uart: add stdio_clear_stdin 2024-11-27 11:57:54 +01:00
benpicco
6f3f4256df
Merge pull request #21045 from benpicco/suit/coap_endpoints
suit: move CoAP endpoints to the example
2024-11-26 23:13:39 +00:00
Armin Wolf
dd81d185cd sys/psa_crypto: Split key definitions into separate files
Split key definitions into separate files, together with some basic
support macros.

This allows PSA crypto backends to use this definitions without
pulling in all the other type definitions.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-11-26 20:01:09 +01:00
Benjamin Valentin
83569aa558 suit: move CoAP endpoints to the example
Those endpoints are very specific to the example and not
useful for general use.

Move them to the example's CoAP endpoints.
2024-11-26 19:49:20 +01:00
mguetschow
80a0681f45
Merge pull request #20906 from netd-tud/psa-headers
sys/psa_crypto: split algorithm definitions
2024-11-26 10:56:57 +00:00
benpicco
5e6e34e345
Merge pull request #21040 from mguetschow/stdio-available
sys/stdio: stdio_available is always false with missing stdin module
2024-11-26 08:58:02 +00:00
Mikolai Gütschow
57158285a1
sys/stdio: stdio_available is always false with missing stdin module 2024-11-25 16:19:34 +01:00
mguetschow
08c032a3f0
Merge pull request #21033 from JulianHolzwarth/pr/sys/evtimer/comment_xtimer
sys/evtimer/evtimer.c: change comment from xtimer to ztimer
2024-11-25 10:28:47 +00:00
Ollrogge
db95ef6f10 sys/fido2: Small fix to dependencies && cleanup 2024-11-25 11:03:03 +01:00
Ollrogge
7e0a86ba32 fido2/ctap: add test for ctap without transport layer 2024-11-25 11:03:03 +01:00
Ollrogge
eddb00ae42 fido2/ctap: Adjust ctap_mem code to work on native 2024-11-25 11:03:03 +01:00
Marian Buschsieweke
c700aa92d4
Merge pull request #21031 from benpicco/net_fixes-misc
drivers/at86rf215: return ENETDOWN when interface is down
2024-11-23 16:30:32 +00:00
JulianHolzwarth
c77d8a0bf2 sys/evtimer/evtimer.c: change comment from xtimer to ztimer 2024-11-22 21:14:02 +01:00