1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

11289 Commits

Author SHA1 Message Date
benpicco
41204c8b81
Merge pull request #20450 from benpicco/THREAD_CREATE_STACKTEST-delete
core/thread: always use THREAD_CREATE_STACKTEST when DEVELHELP is enabled
2024-07-29 11:52:06 +00:00
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
xnumad
e25066768b gnrc/ipv6: Store all SLAAC prefixes
Incl. off-link ones, since lifetimes for the autoconfigured addresses are managed by the prefix entry.
2024-07-28 09:53:55 +02:00
benpicco
dd06b3727c
Merge pull request #20786 from mguetschow/rust-wrappers-bump
rust: bump rust-riot-{sys,wrappers} version
2024-07-15 14:31:42 +00:00
Mikolai Gütschow
b07eddd66a
rust: bump rust-riot-{sys,wrappers} version
both only bump the version number with no functional changes
2024-07-15 14:14:41 +02:00
mguetschow
9ca96967c0
Merge pull request #20698 from netd-tud/sha3_implementation
sys/psa_crypto: sha3 support
2024-07-15 10:32:17 +00:00
Martine Lenders
53d853342f
doc: fix links to GNRC master thesis 2024-07-15 11:25:30 +02:00
Wunderbaeumchen
9b502027ab sys/psa_crypto: added sha3 glue code 2024-07-13 04:35:21 +02:00
mguetschow
3e712a54ca
Merge pull request #20673 from Einhornhool/pr/update-cryptoauth-shell-command
sys/shell: Update cryptoauthlib shell commands
2024-07-11 06:54:52 +00:00
Lena Boeckmann
1ce304cee0 sys/shell/cmds/cryptoauthlib: Fix key slot number 2024-07-10 13:53:01 +02:00
benpicco
4ba7c46e4d
Merge pull request #20711 from fabian18/pr/gcoap_aux_local_in_req_send
gcoap: propagate local tx aux to gcoap_req_send() and in _handler_req()
2024-07-05 12:07:38 +00:00
xnumad
81a1e997f0 gnrc/ipv6: fix: Overflow in sent packet 2024-07-03 20:15:04 +02:00
xnumad
1e4a85f1e6 gnrc/ipv6: fix: Avoid overflow if prefix already expired
Check similarly to `_handle_pfx_timeout`
2024-07-03 20:14:45 +02:00
Marian Buschsieweke
8821f1f301
Merge pull request #20730 from maribu/tree-wide/musl/fixes
tree wide: compilation fixes for `native64` on musl systems
2024-06-15 17:12:03 +00:00
mguetschow
b879bbd491
Merge pull request #20745 from LP-HAW/fix-ocb-mode
sys/crypto: fix OCB mode
2024-06-14 08:39:00 +00:00
LP-HAW
b51d8e3478 sys/crypto: fix OCB mode 2024-06-11 18:26:14 +02:00
fabian18
d6d9d5f3da
Merge pull request #20329 from fabian18/nib_rtr_fixes
nib: some fixes when a router or a prefix is deleted
2024-06-10 08:38:49 +00:00
benpicco
78da4bc1c7
Merge pull request #20725 from fabian18/pr/nanocoap_sock_fix_ctx_release
nanocoap/sock: fix state handling for mismatching message ID in `nanocoap_sock_request_cb()`
2024-06-07 16:19:13 +00:00
Marian Buschsieweke
6a3d689238
sys/xtimer: add IWYU pragmas
This include what you use (IWYU) pragmas so that clang based linters
(such as clangd) treat the use of `xtimer_...()` functions as a use
of the `xtimer.h` header, even if the implementation of those functions
come from a compatibility wrapper.
2024-06-07 12:05:43 +02:00
Fabian Hüßler
5145b29b55 nanocoap/sock: fix context release 2024-06-06 11:24:41 +02:00
Marian Buschsieweke
be387a25bd
sys/posix: Don't shadow <sys/select.h> on native
This fixes compilation issues on musl, where the host POSIX headers
don't mix well with RIOT's POSIX headers.

This adds an conditional `#include_next <sys/select.h>` to RIOT's
`<sys/select.h>` header.
2024-06-05 21:47:56 +02:00
LP-HAW
7efb4d9fb6 sys/hashes: change SHA2 PAD type to const 2024-06-05 18:21:21 +02:00
mguetschow
f2c18b0b58
Merge pull request #20718 from LP-HAW/fix-sha2prng-init
sys/random: fix SHAxPRNG init_by_array
2024-06-03 09:27:00 +00:00
LP-HAW
9cf9638fdc sys/random: fix SHAxPRNG init_by_array 2024-05-31 23:29:09 +02:00
Marian Buschsieweke
e93b5e4b98
core/thread: fix thread_measure_stack_free()
`thread_measure_stack_free()` previously assumed that reading past the
stack is safe. When the stack was indeed part of a thread, the
`thread_t` structure is put after the stack, increasing the odds of
this assumption to hold. However, `thread_measure_stack_free()` could
also be used on the ISR stack, which may be allocated at the end of
SRAM.

A second parameter had to be added to indicate the stack size, so that
reading past the stack can now be prevented.

This also makes valgrind happy on `native`/`native64`.
2024-05-31 19:54:10 +02:00
Marian Buschsieweke
835eaee630
*/Cargo.lock: bump rust-riot-wrappers 2024-05-31 18:26:48 +02:00
Lena Boeckmann
1c062d8d6a sys/shell: add atca write config 2024-05-31 16:49:20 +02:00
Fabian Hüßler
f50dd7dade gcoap/forward_proxy: set payload length in forwarded PDU 2024-05-31 12:04:48 +02:00
Fabian Hüßler
c12375eec4 gcoap/forward_proxy: reply from request destination address 2024-05-31 12:04:48 +02:00
Fabian Hüßler
f4b1306460 gcoap: pass aux local to _handle_req() 2024-05-31 12:04:48 +02:00
Fabian Hüßler
40fb250ae4 treewide: adapt to gcoap_req_send aux local API change 2024-05-31 12:04:48 +02:00
benpicco
251ea7f75a
Merge pull request #20687 from benpicco/nanocoap_fs
nanocoap_fs: add nanoCoAP as VFS backend (remote CoAP fs)
2024-05-29 15:00:24 +00:00
Fabian Hüßler
3973e4bb9d gcoap: add aux local to gcoap_req_send 2024-05-29 16:37:13 +02:00
Benjamin Valentin
a87687c14e nanocoap_fs: add nanoCoAP as VFS backend 2024-05-29 11:32:22 +02:00
Marian Buschsieweke
00db1dfc81
sys/event: change example in doc to be type safe
C is not a particularly safe language, but let's at least encourage
best practices so that the few safety features C have are effectively
used.
2024-05-29 11:07:52 +02:00
mguetschow
a2259db3bd
Merge pull request #20704 from KSKNico/documentation-event-fix
sys/event.h: Fixed documentation error by adding a type cast.
2024-05-28 19:26:55 +00:00
KSKNico
c4cd49351f sys/event.h: Fixed documentation error by adding a type cast. 2024-05-28 19:42:09 +02:00
Benjamin Valentin
994211d955 nanocoap_sock: add nanocoap_sock_get_block() 2024-05-28 11:42:32 +02:00
benpicco
e62c25a015
Merge pull request #20690 from benpicco/nanocoap_get_blockwise_to_buf
nanocoap_sock: add nanocoap_get_blockwise_to_buf()
2024-05-27 16:53:44 +00:00
benpicco
27b06aa846
Merge pull request #20697 from fabian18/pr/nanocoap_sock_stop_retransmissions_after_empty_ack
nanocoap sock: stop retransmissions after empty ACK
2024-05-27 16:50:21 +00:00
Fabian Hüßler
b6aa7a6ea5 nanocoap/sock: fix response token matching for piggybacked ACKs 2024-05-27 17:58:44 +02:00
Fabian Hüßler
afc9f9bf28 nanocoap/sock: nanocoap_sock_request_cb(): fix state handling 2024-05-27 17:58:44 +02:00
Fabian Hüßler
058ab2ce40 nanocoap/sock: nanocoap_sock_request_cb(): wait for response without cb 2024-05-27 17:58:16 +02:00
Fabian Hüßler
ec9a114f7a nanocoap/sock: stop retransmissions after empty ACK 2024-05-27 09:54:02 +02:00
Benjamin Valentin
a209ef173c sys/ztimer64: fix build when PRIu64 is not defined 2024-05-24 19:19:40 +02:00
Benjamin Valentin
c5cfecb311 nanocoap_sock: add nanocoap_get_blockwise_to_buf() 2024-05-23 16:11:52 +02:00
Benjamin Valentin
4a431c8d1a nanocoap_fileserver: add support for size2 option 2024-05-22 20:16:25 +02:00
Benjamin Valentin
df477f4e1a shell/vfs: don't print size if it's not available 2024-05-22 18:53:37 +02:00
Benjamin Valentin
75641fb4b1 sys/include/net/sock: move config to separate header 2024-05-22 18:53:37 +02:00
Benjamin Valentin
d26a95193a sys/net/gnrc_sock: add support for ZTIMER_MSEC 2024-05-21 23:58:28 +02:00
benpicco
3f41494e59
Merge pull request #20266 from benpicco/nanocoap_reply_separate
nanocoap_sock: implement separate response
2024-05-21 17:45:22 +00:00
Benjamin Valentin
dd458cb993 nanocoap_sock: use normal udp sock in nanocoap_server() 2024-05-21 19:27:57 +02:00
Benjamin Valentin
7e69c13630 nanocoap_sock: implement nanocoap_sock_send_separate() 2024-05-21 19:27:57 +02:00
Benjamin Valentin
330a6cfb91 nanocoap_sock: add local information to coap_request_ctx_t 2024-05-21 19:27:57 +02:00
Benjamin Valentin
c280076594 nanocoap: add coap_build_empty_ack() 2024-05-21 19:27:57 +02:00
Benjamin Valentin
2c232dd0d2 nanocoap: don't set type & code twice in coap_build_reply() 2024-05-21 19:25:55 +02:00
Benjamin Valentin
879d312960 nanocoap: make token const in coap_build_hdr() 2024-05-21 19:25:55 +02:00
Benjamin Valentin
42754b58ea gnrc_sock_udp: set source port when aux local is present 2024-05-21 19:25:55 +02:00
Benjamin Valentin
52350852cc sys/event/timeout: uninitialized event is not pending 2024-05-21 19:25:55 +02:00
Lena Boeckmann
b9ec5ad60f sys/shell/cmds/cryptoauthlib: fix typos 2024-05-21 09:13:20 +02:00
Lena Boeckmann
16f9c51014 sys/shell: Update read command to also support ATECC608 devices 2024-05-17 17:00:15 +02:00
mguetschow
3255b95937
Merge pull request #20598 from mguetschow/psa-hashes-sha512-truncated
sys/psa_crypto: SHA-{384,512/{224,256}}
2024-05-17 09:20:03 +00:00
mguetschow
e9f290c2e8
Merge pull request #20674 from mguetschow/psa-crypto-keysize
sys/psa_crypto: remove keysize determination from Kconfig files
2024-05-16 11:47:24 +00:00
Mikolai Gütschow
6f5f4313bd
sys/psa_crypto: remove keysize determination from Kconfig files 2024-05-16 10:28:40 +02:00
benpicco
3c4b23c801
Merge pull request #20607 from mguetschow/psa-key-bits-cleanup
sys/psa_crypto: correct use of (ECDSA) key_bits
2024-05-16 08:17:47 +00:00
Lena Boeckmann
2d4a597fa1 sys/shell: fix some output issues 2024-05-16 09:06:13 +02:00
Lena Boeckmann
20cdbac5fc sys/shell: Update cryptoauthlib shell commands 2024-05-15 18:30:51 +02:00
benpicco
22795248eb
Merge pull request #20651 from benpicco/shell_scripting
sys/shell: add support for running a batch of commands from a file
2024-05-15 09:35:04 +00:00
Benjamin Valentin
471e257c7c sys/shell: add shell_parse_file() 2024-05-15 11:20:38 +02:00
Benjamin Valentin
138a94bae4 sys/shell: make shell_handle_input_line() public 2024-05-15 11:20:38 +02:00
Benjamin Valentin
9c4ca01e24 sys/vfs_util: add vfs_file_exists() 2024-05-15 11:20:38 +02:00
Benjamin Valentin
469c919969 sys/vfs: add vfs_readline() 2024-05-15 11:20:38 +02:00
Mikolai Gütschow
ecf259579a
sys/psa_crypto: support for SHA-{384,512-{224,256}} 2024-05-14 17:06:39 +02:00
Mikolai Gütschow
15e48f0cf3
sys/psa_crypto: correct use of (ECDSA) key_bits 2024-05-14 17:02:46 +02:00
benpicco
8a4d82304f
Merge pull request #20554 from fabian18/pr/examples/gcoap_input_URI_and_proxy_fixes
examples/gcoap: take full URI as input
2024-05-14 09:52:49 +00:00
Fabian Hüßler
a5b6c4c051 gcoap/forward_proxy: minor fix and cleanup 2024-05-14 08:46:00 +02:00
Martine Lenders
3927a4fd17
Merge pull request #20660 from maribu/sys/net/grnc/fix-compilation-with-gcc-14-1-0
sys/net/grnc: fix NULL ptr dereferencing
2024-05-09 15:00:53 +00:00
Marian Buschsieweke
abd7205115
sys/net/grnc: fix NULL ptr dereferencing
This bug was spotted by GCC 14.1.0:

    In file included from /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h:27,
                     from /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h:33,
                     from /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h:30,
                     from /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c:28:
    In function 'bf_isset',
        inlined from '_build_ext_opts' at /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c:256:17,
        inlined from '_snd_ra' at /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c:368:20,
        inlined from '_snd_rtr_advs' at /home/maribu/Repos/software/RIOT/master/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c:99:9:
    /home/maribu/Repos/software/RIOT/master/sys/include/bitfield.h:130:18: error: array subscript 0 is outside array bounds of 'uint8_t[0]' {aka 'unsigned char[]'} [-Werror=array-bounds=]
      130 |     return (field[idx / 8] & (1u << (7 - (idx % 8))));
          |             ~~~~~^~~~~~~~~
    In function '_snd_rtr_advs':
    cc1: note: source object is likely at address zero
    cc1: all warnings being treated as errors
2024-05-09 12:03:54 +02:00
benpicco
1b9716c96d
Merge pull request #18428 from maribu/cpu/stm32/periph/stm32_eth/confirm_send
cpu/stm32/periph/stm32_eth: provide confirm_send
2024-05-09 08:20:28 +00:00
Marian Buschsieweke
6ac1bcad7e
sys/net/gnrc/gnrc_netif: fix compilation with new netdev API
This fixes a regression introduced in #18496
2024-05-08 21:06:00 +02:00
Benjamin Valentin
2e8f257171 nanocoap_link_format: don't drop characters in fragmented entries 2024-05-07 22:45:37 +02:00
Benjamin Valentin
aad438117e sys/shell: nanoCoAP: properly print long directory entries 2024-05-07 22:45:37 +02:00
benpicco
3791db3941
Merge pull request #18427 from maribu/lwip/confirm_send
pkg/lwip: make use of confirm send
2024-05-06 11:05:10 +00:00
Martine Lenders
a5996e22b8
Merge pull request #20454 from mariemC/mariem/coap-coaps-forward-proxy
gcoap:  add coaps forward proxy
2024-05-06 08:54:08 +00:00
Stefan Schmidt
9d62ad4c5c driver/w5500: driver for the W5500 ethernet chip
- driver can be used with interrupt or in polling mode (default)
2024-05-02 22:07:17 +02:00
Marian Buschsieweke
e80238d2a5
sys/netdev_test: depend on netdev_legacy_api
The test netdev implements the legacy API, so we need support for that
from the upper layer.
2024-04-30 08:41:07 +02:00
Martine Lenders
9b11ecab25
netopt: mark l2filter options as experimental 2024-04-29 11:49:33 +02:00
Martine Lenders
ead2785463
l2filter: mark module as experimental 2024-04-29 11:49:33 +02:00
Teufelchen
5409364222
Merge pull request #20595 from Teufelchen1/fix/vfs_cmd
shell/vfs: Handle print failure in genfile cmd gracefully
2024-04-25 13:46:16 +00:00
Teufelchen1
8bd1de8259 shell/vfs: Handle print failure in genfile cmd gracefully 2024-04-25 15:16:42 +02:00
mariemC
768ce5e443 sys/net/application_layer/gcoap/include: add internal proxy header 2024-04-25 13:36:11 +02:00
mariemC
a07a21b3de sys/net/application_layer/gcoap: include header in path 2024-04-25 13:30:16 +02:00
mariemC
6454816676 sys/net/application_layer/gcoap: add proxy thread 2024-04-25 13:30:16 +02:00
mariemC
e10553b6ee sys: add forward proxy thread submodule 2024-04-25 13:30:16 +02:00
mariemC
557f3c7bc8 sys/net/application_layer/gcoap: adjust proxy source file 2024-04-25 13:30:16 +02:00
benpicco
9761456363
Merge pull request #20564 from benpicco/go-coap_workaround
gnrc, nanocoap: add optional work-arounds for buggy CoAP servers
2024-04-24 13:46:41 +00:00
chrysn
2f7cbd3e1f gcoap: Avoid lockup from error paths 2024-04-24 13:18:01 +02:00
chrysn
502406dbbb gcoap: Avoid reading beyond defined input buffer 2024-04-24 13:18:01 +02:00
mguetschow
ad9d50163e
Merge pull request #20334 from mguetschow/psa-import-key
sys/psa_crypto: ed25519 private key {ex,im}port
2024-04-17 11:24:04 +00:00
Mikolai Gütschow
5f08f7478b
sys/psa_crypto: ed25519 private key {ex,im}port 2024-04-17 12:42:05 +02:00
Marian Buschsieweke
fc271ea198
Merge pull request #20562 from MrKevinWeiss/pr/saulrgb
drivers/ws281x: Add saul support
2024-04-17 08:00:51 +00:00
mguetschow
b302b031c8
Merge pull request #20099 from Einhornhool/feature/psa-crypto-persistent-storage
sys/psa_crypto: Implement persistent key storage
2024-04-16 15:37:03 +00:00
Lena Boeckmann
cbadc4f658 sys/psa_crypto: implement persistent key storage 2024-04-16 11:04:51 +02:00
Martine Lenders
3bbb7c35a7
Merge pull request #20579 from maribu/coap/etag
sys/net/gcoap/forward_proxy: clean up code
2024-04-16 08:43:53 +00:00
Marian Buschsieweke
d708f8d0b2
Merge pull request #20577 from Teufelchen1/fix/eddystone
ble/skald: Always enforce URL length check
2024-04-16 06:04:33 +00:00
Marian Buschsieweke
48838f4b83
Merge pull request #20513 from maribu/sys/vfs/atomic_utils
sys/vfs: use atomic_utils rather C11 atomics
2024-04-16 06:04:18 +00:00
Marian Buschsieweke
bb79f3e550
sys/net/gcoap/forward_proxy: clean up code
Introduce an _cep_set_req_etag() helper function and drop the
_cep_set_req_etag_len() helper to avoid use of preprocessor
conditionals in the code.
2024-04-15 18:31:24 +02:00
chrysn
b8ddac765c rust: Selectively update riot-wrappers dependency
This pulls in [88], and thus fixes building of Rust modules when the
wS281x module is enabled.

[88]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/88
2024-04-15 16:28:05 +02:00
Martine Lenders
72817bc85c
Merge pull request #20561 from Teufelchen1/fix/gcoap_dns_typo
net/gcoap: Fix typo, replacing _uri with _proxy
2024-04-15 13:26:56 +00:00
Teufelchen1
da790686f3 ble/skald: Always enforce URL length check
Co-authored-by: benpicco <benpicco@googlemail.com>
2024-04-15 13:28:07 +02:00
Teufelchen1
b05ae93e4b net/gcoap: Fix typo, replacing _uri with _proxy 2024-04-15 12:56:27 +02:00
Marian Buschsieweke
cf6fa4edf0
tree wide: add IWYU pragma: export where needed
We occasionally have some public `foo.h` header that includes a private
`foo_arch.h` header. Users are expected to include the `foo.h` header
and not the `foo_arch.h`. However, clangd will claim that the `#include`
of `foo.h` is unused if only functions / macros/ types / ... from
`foor_arch.h` is used and nothing from `foo.h`.

This adds the `IWYU pragma: export` comment to the include of
`foo_arch.h` in `foo.h`, so that clangd treats functions / macros /
types provided by `foo_arch.h` as if they were instead provided by
`foo.h`, which fixes the false positives.
2024-04-14 14:26:05 +02:00
Emmanuel Ferdman
4394c36cee
gcoap: update the example reference 2024-04-11 12:28:07 +03:00
benpicco
e3c02f5601
Merge pull request #19849 from krzysztof-cabaj/LWIP-ifconfig-IPv4-configuration
sys/shell/lwip: add IPv4 configuration to lwip ifconfig command
2024-04-10 16:48:36 +00:00
Benjamin Valentin
13fd806f4f nanocoap_sock: add option to include token for block-wise 2024-04-10 12:36:53 +02:00
Benjamin Valentin
0fb153daca gnrc_sock/udp: add option to disable remote address check
If a server has e.g. multiple global IPv6 addresses, it might
respond with a different address that the one it received the request on.

This is against the CoAP spec, but that doesn't stop existing implementations
from doing it.
2024-04-10 12:25:49 +02:00
benpicco
5a4d55a66a
Merge pull request #20559 from benpicco/suit-ENOBUFS
sys/suit: return error when URL buffer is too small
2024-04-09 16:35:05 +00:00
Kevin "Tristate Tom" Weiss
5c4480dcea
Merge pull request #20541 from chrysn-pull-requests/doc-shell-constraint
shell/doc: Point users who run into shell buffer issues to the stdin buffer
2024-04-09 12:34:01 +00:00
Marian Buschsieweke
93b05d5dc4
Merge pull request #20523 from MrKevinWeiss/pr/guard_shell_pm
core|sys: Guard periph_pm calls
2024-04-09 12:04:12 +00:00
Benjamin Valentin
68c7bfc20d sys/suit: return error when URL buffer is too small 2024-04-09 10:48:09 +02:00
Mihai Renea
016f074d7e sys/isrpipe/read_timeout: don't set up timer if data is available 2024-04-08 16:42:45 +02:00
MrKevinWeiss
b8c4617768
sys/*: expose periph/pm.h
I guess to reduce clutter we can always have the headers exposed since they are always included
even when we are not using them.
2024-04-08 11:20:14 +02:00
benpicco
1fee41059f
Merge pull request #20542 from benpicco/vfs/exfat-bump
vfs: increase _FATFS_FILE_EXFAT
2024-04-08 08:38:30 +00:00
Marian Buschsieweke
8bb8c5be20
Merge pull request #20546 from chrysn-pull-requests/doc-shell-no-security
sys/shell/doc: Shell access is root access
2024-04-06 10:13:31 +00:00
chrysn
9820a65846 cord_lc: Process truncated reads
Co-Authored-By: Marian Buschsieweke <maribu@users.noreply.github.com>
2024-04-05 23:45:50 +02:00
chrysn
df6256876c sys/shell/doc: Shell access is root access 2024-04-05 20:25:36 +02:00
chrysn
b0bec0276a shell/doc: Point users who run into shell buffer issues to the stdin buffer 2024-04-05 17:27:50 +02:00
Fabian Hüßler
40b23414c8 vfs: increase _FATFS_FILE_EXFAT 2024-04-05 14:42:06 +02:00
Teufelchen
b5f9772292
Merge pull request #20434 from benpicco/DTLS_MAX_BUF-fix
coap: ensure DTLS buffer is at least 200 bytes
2024-04-05 08:22:11 +00:00
krzysztof-cabaj
71d47cd0cf sys/shell/lwip: merge ifconfig add4 and add6 options to one-ifconfig add 2024-04-04 13:45:26 +02:00
Marian Buschsieweke
be0d276caa
Merge pull request #20529 from Teufelchen1/deprecate/phydat_str
sys/phydat: Remove deprecated print function
2024-04-04 11:24:04 +00:00
Marian Buschsieweke
62431ca6c8
Merge pull request #20538 from chrysn-pull-requests/unblock-20529
rust: Update riot-wrappers
2024-04-04 04:45:17 +00:00
chrysn
628a8b4cd2 rust: Update riot-wrappers
This pulls in [87].

[87]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/87
2024-04-03 23:16:31 +02:00
Benjamin Valentin
11b4564462 sys/net/gcoap: ensure DTLS buffer is at least 200 bytes 2024-04-03 21:12:45 +02:00
Benjamin Valentin
39ba95a3ed sys/net/nanocoap: ensure DTLS buffer is at least 200 bytes 2024-04-03 21:09:29 +02:00
benpicco
255a6923c0
Merge pull request #20535 from benpicco/TextUIRunner_end-return
sys/embunit: return failure state in TextUIRunner_end()
2024-04-03 13:56:21 +00:00
Teufelchen1
96e748d959 sys/phydat: Remove deprecated print function
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2024-04-03 15:29:19 +02:00
Benjamin Valentin
127a2902b1 sys/embunit: return failure state in TextUIRunner_end() 2024-04-03 13:22:51 +02:00
benpicco
a9e7b441a7
Merge pull request #20528 from Teufelchen1/deprecate/suit
sys/suit: Remove deprecated suit_coap_run function
2024-04-03 11:04:01 +00:00
Teufelchen1
4d467bf3be sys/suit: Remove deprecated suit_coap_run function 2024-04-02 12:58:57 +02:00
Teufelchen
3c07ebceb6
Merge pull request #20527 from Teufelchen1/deprecate/crc16
sys/checksum: Remove deprecated crc16_ccitt functions
2024-04-02 10:53:04 +00:00
MrKevinWeiss
35f6267721
sys/picolibc_syscalls_default: guard pm_off 2024-04-02 11:47:30 +02:00
MrKevinWeiss
bead59e9d1
sys/newlib_syscalls_default: guard pm_off 2024-04-02 11:46:50 +02:00
Teufelchen1
0503e61178 sys/checksum: Remove deprecated crc16_ccitt functions 2024-04-02 11:22:04 +02:00
krzysztof-cabaj
67abda03fc sys/shell/lwip: fix coding style using uncrustify with RIOT rules 2024-04-02 10:26:48 +02:00
MrKevinWeiss
e017c01acc
sys/shell/cmds: Guard periph_pm calls
It would seem that either we need to require the periph_pm module in shell
or make it optional... since we have many other optional modules here
and we still may want the RIOT_VERSION command, lets make it optional for now.
2024-04-02 10:19:19 +02:00
benpicco
333207d6ed
Merge pull request #19736 from firas-hamdi/cpu/samd5x-write-CAN-driver
cpu/samd5x write can driver
2024-03-28 11:06:50 +00:00
Martine Lenders
819a4a175c
Merge pull request #20518 from miri64/gcoap/bug/quality-defects
gcoap: fix code quality defects
2024-03-28 09:14:14 +00:00
Karl Fessel
9d2dda27ce
Merge branch 'master' into cpu/samd5x-write-CAN-driver 2024-03-28 09:52:26 +01:00
Martine S. Lenders
c05474cdea
gcoap: fix function indentation after change of static inline 2024-03-28 09:25:27 +01:00
Martine S. Lenders
a6d5500a88
gcoap: fix reference for gcoap_socket_type_t 2024-03-28 09:24:57 +01:00
Martine Lenders
810f1a98cb
gnrc_lorawan: Remove gnrc_nettype_lorawan dependency
With the removal of `CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR` it does not
use `GNRC_NETTYPE_LORAWAN` anymore, so this module is not required
anymore.
2024-03-28 09:19:35 +01:00
Martine Lenders
549f215701
gnrc_nettype: deprecate GNRC_NETTYPE_LORAWAN 2024-03-28 09:19:35 +01:00
Martine Lenders
5c75f84d6e
gnrc_netif: remove deprecated CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR 2024-03-28 09:19:33 +01:00
Martine Lenders
a2e3ca07cb
Merge pull request #20514 from miri64/gcoap/cleanup/gcoap_req_send_aliasing
gcoap: make gcoap_req_send_tl() an alias of gcoap_req_send()
2024-03-27 17:00:50 +00:00
Marian Buschsieweke
04620d471c
Merge pull request #20438 from MrKevinWeiss/pr/kconfig/dep/removal
Remove Kconfig dependency modelling
2024-03-27 16:39:56 +00:00
Karl Fessel
568d60720f sys/auto_init/can: include board periph_conf.h 2024-03-27 14:52:05 +01:00
Martine Lenders
27308585c3
gcoap: make gcoap_req_send_tl() an alias of gcoap_req_send()
As per the deprecation notice from July 2021 ;-).
2024-03-27 12:21:57 +01:00
Marian Buschsieweke
45c473d721
sys/vfs: use atomic_utils rather C11 atomics
This has the following advantages:

- faster and leaner when C11 atomics are not efficient (e.g. on LLVM
  this is almost always the case, as LLVM will only use efficient
  atomics if it doesn't has to bail out to library calls even for
  exotic things)
    - Even for GCC e.g. on the nucleo-f429zi this safes 72 B of .text
      for examples/filesystem despite runtime checks added for
      over- and underflow
- less pain in the ass for C++ and rust users, as both C++ and
  c2rust are incompatible with C11 atomics
- adds test for overflow of the open file counter for more robust
  operation
- adds `assumes()` so that underflows are detected in non-production
  code
2024-03-27 11:26:15 +01:00
Martine Lenders
653417d895
gnrc_gomach: deprecate module 2024-03-27 11:07:31 +01:00
Martine Lenders
2deb8882dd
gnrc_lwmac: deprecate module 2024-03-27 11:07:12 +01:00
Martine Lenders
0acb666da6
gnrc_mac: deprecate module 2024-03-27 10:50:23 +01:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
mguetschow
edefdb78ee
Merge pull request #20460 from Einhornhool/pr/psa-use-csprng
sys/psa_crypto: use SHA256 CSPRNG as default
2024-03-26 19:04:27 +00:00
benpicco
222a2e1d99
Merge pull request #20478 from mariemC/Mariem/dtls_default_user_params_fix
pkg/tinydtls: enforce the default dtls user params to be configurable
2024-03-26 17:48:08 +00:00
Lena Boeckmann
1924b063ec sys/psa_crypto: use SHA256 CSPRNG as default 2024-03-26 17:05:58 +01:00
Martine Lenders
4059244388
Merge pull request #16502 from francois-berder/remove-code-duplication
sys/net/gnrc: Remove code duplication
2024-03-26 16:01:42 +00:00
Francois Berder
9056e14e74 gnrc/gomach: Reduce code duplication
The function gomach_vtdma_end is nearly identical to _no_vtdma_after_cp
expect the first few lines. This commit replaces the duplicating code
in gomach_vtdma_end by a call to _no_vtdma_after_cp.

Signed-off-by: Francois Berder <fberder@outlook.fr>
2024-03-26 15:30:56 +01:00
Francois Berder
7523bb08a3 gnrc/lwmac: Reduce code duplication
Both _rx_management_failed and _rx_management_success functions
attempt to sleep after handling the packet reception
failure/success. This commit extracts the sleep attempt in a
new _rx_management_attempt_sleep function.

Signed-off-by: Francois Berder <fberder@outlook.fr>
2024-03-26 15:30:56 +01:00
Firas Hamdi
a40735a0e1 sys/include/can: include mailbox feature 2024-03-26 15:17:48 +01:00
Kevin "Tristate Tom" Weiss
29a756bf2a
Merge pull request #18684 from chrysn-pull-requests/rust-easier-updates
rust: Make dependencies visible
2024-03-26 14:15:52 +00:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
MrKevinWeiss
0a9c51fdf9
*.config: Modify all .config kconfig files 2024-03-26 14:53:40 +01:00
Marian Buschsieweke
a9d052bc32
Merge pull request #20363 from mguetschow/malloc-monitor
Monitoring malloc usage
2024-03-26 10:58:33 +00:00
Mikolai Gütschow
f31f82042a
sys: add malloc_monitor, deprecate malloc_tracing 2024-03-26 10:00:24 +01:00
Marian Buschsieweke
1b64abf7dc
Merge pull request #20485 from dylad/pr/treewide/remove_deprecated_shell_commands
treewide: remove deprecated shell_commands module
2024-03-26 08:39:26 +00:00
Teufelchen
4982049904
Merge pull request #20484 from mguetschow/hashes-sha512-trunc
sys/hashes: support for SHA-{384,512/{224,256}}
2024-03-25 11:48:22 +00:00
Mikolai Gütschow
9300007cf1
sys/hashes: support for SHA-{384,512/{224,256}}
pkg/esp32_sdk: rename sha384_init to avoid name clash
2024-03-25 12:35:10 +01:00
Marian Buschsieweke
3d13f1fd19
Merge pull request #20499 from benpicco/coap_build_hdr-const
nanocoap: allow token to be const in coap_build_hdr()
2024-03-22 15:35:38 +00:00
Benjamin Valentin
6154c1270d nanocoap: allow token to be const in coap_build_hdr() 2024-03-22 16:02:45 +01:00
mariemC
863fe9b50b sys/include/net/sock: add Macros for dtls extensions 2024-03-22 12:19:15 +01:00
MrKevinWeiss
575ab684fe
sys/net/coap: cast in non-config define
If we try to set the compile-time config we need to always remember casting, instead, just cast in the places that are not exposed to users
2024-03-21 14:26:45 +01:00
chrysn
a5c9ac2e95 rust: Make dependencies visible
The Cargo.lock of rust_riotmodules_standalone should explicitly list all
versions of software that would ever be pulled in by enabling RIOT
modules backed by a Rust crate. That way, the Cargo.lock file will not
spontaneously change because the software is being built with a
different set of modules enabled.

This did not happen before, because while the optional dependencies
could all be selected on the command line, they were not visible as
possible features to `cargo update`, and were thus not encoded in the
Cargo.lock file.
2024-03-20 19:46:11 +10:00
chrysn
d8e693c238
Merge pull request #20489 from chrysn-pull-requests/riot-updates-before-2024.04
Rust updates for 2024.04
2024-03-20 09:31:52 +00:00
chrysn
a0ee4def10 rust: Selectively update riot-wrappers
Changes pulled by this are:
* optimizations around panicking <https://github.com/RIOT-OS/rust-riot-wrappers/pull/82>
* administrative changes (CI fixes)
2024-03-20 16:00:08 +10:00
chrysn
7e8031fd80 rust: Update non-RIOT dependencies
All changes appear to be minor; some crates that were previously part of
the build dependencies twice can now be shared between build
dependencies.
2024-03-20 16:00:02 +10:00
chrysn
e8c28ef536 rust: Selectively update riot-sys
Changes pulled by this are:
* add hashes to riot-sys headers <https://github.com/RIOT-OS/rust-riot-sys/pull/43>
* administrative changes (riot-sys 0.7.11, CI fixes)
2024-03-20 15:59:57 +10:00
Marian Buschsieweke
4caa3bc25e
Merge pull request #20483 from maribu/sys/tiny_strerror/llvm
sys/tiny_strerror: fix compilation on LLVM
2024-03-19 19:38:50 +00:00
benpicco
e3ce765a04
Merge pull request #20191 from benpicco/coap_get_method
nanocoap: introduce coap_get_method()
2024-03-19 18:20:31 +00:00
Marian Buschsieweke
7775fa7de5
sys/tiny_strerror: fix compilation on LLVM
Mixing address spaces is something LLVM doesn't like (for good
reason). This re-organized the code a bit so that this does not
happen anymore, even on AVR.

Split out of https://github.com/RIOT-OS/RIOT/pull/16924
2024-03-19 16:12:18 +01:00
Dylan Laduranty
f78a41f1b3 treewide: replace shell_commands module in documentation
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 15:12:02 +01:00
Dylan Laduranty
dcc732ac36 treewide: remove deprecated module shell_commands
Replaces it by shell_cmds_default where needed

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 15:10:51 +01:00
Teufelchen
741d6b3d4a
Merge pull request #20048 from leandrolanzieri/pr/tinydtls/check_public_key
net/sock_dtls: add public key verification
2024-03-19 10:32:16 +00:00
Dylan Laduranty
9e2a2e4765
Merge pull request #20471 from dylad/pr/treewide/remove_deprecation
treewide: remove deprecated modules
2024-03-19 08:12:29 +00:00
Leandro Lanzieri
868d8390f4
sys/net/sock_dtls: add public key verification 2024-03-19 07:44:50 +01:00
a365a97f2f
Merge pull request #20475 from dylad/pr/usbus/fix_get_status_response
sys/usbus: answer get_status if request is standard type
2024-03-18 20:52:03 +00:00
Dylan Laduranty
05220c61dd treewide: remove deprecated sha256sum module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:53 +01:00
Dylan Laduranty
035c965cb9 treewide: remove deprecated sha1sum module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:53 +01:00
Dylan Laduranty
b246f63aff treewide: remove deprecated random_cmd module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:44 +01:00
Dylan Laduranty
26058cf14e treewide: remove deprecated nice module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:03 +01:00