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
mguetschow
3aaea1a74e
Merge pull request #20459 from benpicco/event_periodic_callback_create
...
event_periodic_callback: add event_periodic_callback_create()
2024-03-18 15:03:17 +00:00
Benjamin Valentin
408218f631
nanocoap_sock: support build with IPv4
2024-03-17 17:39:44 +01:00
Benjamin Valentin
3e3f18eeda
sys/net/sock: add sock_udp_ep_is_v6()
2024-03-17 17:38:58 +01:00
Dylan Laduranty
f44ef812d3
sys/usbus: answer get_status if request is standard type
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-17 16:47:07 +01:00
Dylan Laduranty
dac4d460b4
treewide: remove deprecated md5sum module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 22:02:22 +01:00
Dylan Laduranty
d6e6c4f7a1
treewide: remove deprecated i2c_scan module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 22:00:00 +01:00
Dylan Laduranty
5a2e5d7301
treewide: remove deprecated heap_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:57:22 +01:00
Dylan Laduranty
5b3b426678
treewide: remove deprecated gnrc_udp_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:54:09 +01:00
Dylan Laduranty
1bbb020fe2
treewide: remove deprecated gnrc_netif_cmd_lora module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:50:23 +01:00
Dylan Laduranty
67b8c6709c
treewide: remove deprecated gnrc_pktbuf_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:48:29 +01:00
Dylan Laduranty
6796b93fc9
treewide: remove deprecated gnrc_netdev_default module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:42:12 +01:00
Benjamin Valentin
2bef44bd6b
event_periodic_callback: fix typo
2024-03-12 18:35:42 +01:00
Benjamin Valentin
6f604a8137
event_periodic_callback: add event_periodic_callback_create()
2024-03-12 11:06:37 +01:00
Fabian Hüßler
96480008ca
ipv6/nib: _handle_rtr_timeout() do not blindly delete offlink entry
2024-03-09 11:02:12 +01:00
Fabian Hüßler
1d3b320c2e
ipv6/nib: _nib_offl_clear() delete offlink entry when mode is not zero
2024-03-09 11:02:12 +01:00
Benjamin Valentin
233902b3d5
gnrc/ipv6_auto_subnets: clarify documentation
2024-03-05 17:32:39 +01:00
Benjamin Valentin
a613ff5831
sys/embunit: return failure state in TestRunner_end()
2024-03-04 14:30:45 +01:00
Benjamin Valentin
446509c177
gcoap_fileserver: use coap_get_method()
2024-02-28 11:49:56 +01:00
Benjamin Valentin
2e7cdfb345
nanocoap: introduce coap_get_method()
2024-02-28 11:49:56 +01:00
Benjamin Valentin
1f1d7082a5
sys/slot_aux: add build system integration for AUX slot
2024-02-28 11:49:05 +01:00
chrysn
6714a77026
Merge pull request #20339 from chrysn-pull-requests/native64-rust
...
cpu/native: Enable Rust on 64bit
2024-02-23 10:41:47 +00:00
chrysn
198bd67bc3
rust: Selectively update riot-sys and -wrappers
...
This pulls in <https://github.com/RIOT-OS/rust-riot-sys/pull/40 > and
<https://github.com/RIOT-OS/rust-riot-wrappers/pull/80 >.
2024-02-23 11:23:04 +01:00
xnumad
23d3ccde6b
gnrc_ipv6_nib: Ignore PIO with on-link flag
2024-02-22 17:52:17 +01:00
benpicco
9504e07378
Merge pull request #20392 from maribu/sys/newlib_syscalls_default
...
sys/newlib_syscalls_default: fix race condition in __sinit()
2024-02-20 12:22:24 +00:00
Marian Buschsieweke
609ad44f39
Merge pull request #20245 from benpicco/nanocoap_sock-pathquery
...
nanocoap_sock: always use coap_opt_put_uri_pathquery()
2024-02-19 18:28:38 +00:00
chrysn
756a384442
makefiles, treewide: Remove MCU variable
2024-02-18 20:46:09 +01:00
Marian Buschsieweke
375aed13e6
sys/newlib_syscalls_default: fix race condition in __sinit()
...
This eagerly calls `__sinit()` instead of lazy initialization upon the
first call to stdio (e.g. `puts()`, `printf()`). The issue is that
without locking (as is currently the case for all RIOT platforms but
ESP) two concurrent "first calls" may result in concurrent
initialization of the same structure and data corruption.
Fixes https://github.com/RIOT-OS/RIOT/issues/20067
2024-02-16 07:21:28 +01:00
chrysn
a05cfcf6ed
Merge pull request #20389 from chrysn-pull-requests/thread-links
...
doc: Link OpenThread primer, cleanup
2024-02-14 18:42:30 +00:00
chrysn
41816ed647
doc: Link to thread primer
2024-02-14 17:44:13 +01:00
Leandro Lanzieri
7745e233b3
Merge pull request #20073 from MichelRottleuthner/pr_gcoap_observe_improvments
...
gcoap: add some client-side observe handling
2024-02-14 10:01:31 +00:00
benpicco
d08fb3f144
Merge pull request #20043 from bergzand/pr/nanocoap_cache_options
...
nanocoap/cache: Extend with option-only cache keygen
2024-02-13 15:23:59 +00:00
011891b9cf
nanocoap/cache: Extend with option-only cache keygen
...
To generate cache keys based on only the options of a request. This for
matching requests of a blockwise transfer with each other
2024-02-12 21:20:39 +01:00
benpicco
55b6728224
Merge pull request #19738 from benpicco/stdio_dispatch
...
stdio_dispatch: allow to select multiple stdio methods at the same time
2024-02-09 16:13:27 +00:00
Benjamin Valentin
2d22cc8f49
sys/net/telnet: disable local echo
2024-02-09 15:31:21 +01:00
Benjamin Valentin
550d93f873
sys/net/telnet: properly detect disconnect
2024-02-09 15:31:21 +01:00
Benjamin Valentin
816aafdb5a
sys/net/telnet: fix race condition on disconnect
2024-02-09 15:31:21 +01:00
Benjamin Valentin
f5181732de
sys/fmt: don't include stdio_base.h
2024-02-09 15:31:21 +01:00
Benjamin Valentin
028f6e54f6
stdio_semihosting: port to new interface
2024-02-09 15:31:21 +01:00
Benjamin Valentin
b575e2d35b
stdio_telnet: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
c1b6c813ae
stdio_nimble: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
8bec71331c
stdio_null: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
68c8a9a3a2
sys/usb/cdc/acm: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
76997fdd76
stdio_rtt: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
7c1cdb16af
stdio_udp: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
cce5312be8
stdio_uart: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
c1162e4818
sys/stdio: add common stdio module
2024-02-09 15:24:22 +01:00
mguetschow
de1efc6772
Merge pull request #20344 from Teufelchen1/chore/fmt_test_3
...
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 10:41:17 +00:00
Teufelchen1
dbcfa1bdc8
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 11:03:05 +01:00
Joshua DeWeese
c3a4beb200
treewide: make use of new IPv4 static init macro
...
This commit makes use of the newly added static initializer for IPv4
addresses.
2024-02-08 10:14:24 -05:00
Michel Rottleuthner
12982a0f14
gcoap: update documentation on supported features
2024-02-08 15:48:32 +01:00
Michel Rottleuthner
45a84af346
gcoap: clear observe state on RST response to notification
...
In order to properly handle an observe cancellation of a client, the server has to keep track of the notification MIDs (to be able to match an RST to a notification), see [RFC7641, 3.6 Cancellation](https://www.rfc-editor.org/rfc/rfc7641.html#section-3.6 ) for mor details. An alternative to this would be to make either the client send an explicit observe deregister request, or make the server send the next notification via CON (which hten allows matching of the RST due to the CON state).
2024-02-08 15:48:32 +01:00
Michel Rottleuthner
94e8786715
gcoap: issue RST on unknown observe notifications
2024-02-08 15:48:32 +01:00
Michel Rottleuthner
ab821a1dda
gcoap: add api to forget a client-side observe request
2024-02-08 15:48:32 +01:00
Michel Rottleuthner
5956e93d58
gcoap: split find-memo utility functions
...
This splits the _find_req_memo util function into multiple variants that match on different things. This is done in preparation of a feature that has to find a request based on a token value, without creating an artificial pdu for that. A nice side effect is that it also makes the calls to the find functions a bit more readable by not relying on an anonymous bool input.
2024-02-08 15:40:45 +01:00
Michel Rottleuthner
c003e5ed9c
gcoap: keep request on observe notification
2024-02-08 15:40:45 +01:00
benpicco
82d9e79f21
Merge pull request #20354 from Enoch247/add-ipv4-init-macro
...
sys/net/ipv4: add IPV4_ADDR_INIT() macro
2024-02-07 19:01:54 +00:00
Joshua DeWeese
bcc0d01c08
sys/net/ipv4: add IPV4_ADDR_INIT() macro
...
This patch adds a macro to statically initialize an IPv4 address.
2024-02-07 10:08:16 -05:00
Benjamin Valentin
bfdda46055
sys/shell/ping: print error when DNS resolve fails
2024-02-07 16:02:04 +01:00
Benjamin Valentin
453a8be4f3
sys/cpp_new_delete: always enable the module when C++ is used
2024-02-07 11:40:23 +01:00
Fabian Hüßler
d5d4fc869a
ipv6/nib: delete DC entries, referencing a deleted DR
2024-02-07 10:12:14 +01:00
benpicco
83f3c4a396
Merge pull request #20342 from fabian18/pr/fix_router_lifetime_and_ft_add_api
...
ipv6/nib: fix router lifetime handling in RIO and fix gnrc_ipv6_nib_ft_add() api
2024-02-06 19:38:12 +00:00
Fabian Hüßler
fef5c8c5d8
ipv6/nib: fix lifetime handling in RIO handling
2024-02-06 18:35:05 +01:00
Fabian Hüßler
c4ae9063e9
ipv6/nib: fix gnrc_ipv6_nib_ft_add API and catch overflovs
2024-02-06 18:35:05 +01:00
Martine Lenders
a16199f846
Merge pull request #20343 from fabian18/pr/fix_ipv6_nib_cancel_timers
...
ipv6/nib: cancel timers when NIB entry gets deleted
2024-02-06 16:24:11 +00:00
Fabian Hüßler
2b8b828a53
ipv6/nib: move internal event timer API up
2024-02-06 10:30:59 +01:00
Fabian Hüßler
eb1a827e21
ipv6/nib: delete router timeout when router is deleted
2024-02-06 10:29:48 +01:00
Fabian Hüßler
f8a64e74c4
ipv6/nib: delete route timeout when forward table entry is deleted
2024-02-06 10:29:40 +01:00
Fabian Hüßler
de4142de37
ipv6/nib: delete prefix timeout when prefix list entry is deleted
2024-02-06 10:29:30 +01:00
benpicco
4d9e8a8dde
Merge pull request #20335 from fzi-haxel/pr/native64-board
...
native64: Separate board for 64-bit native
2024-02-05 22:58:02 +00:00
Frederik Haxel
d1f1f8a2c3
sys/psa_crypto: Use PRIuSIZE in debug messages
2024-02-05 22:02:27 +01:00
Frederik Haxel
0c2cfe99e6
native64: Add Linux/x86_64 board
...
Adds a separate board for native64 instead of the `NATIVE_64BIT` workaround.
The files in `boards/native64` are more or less dummy files and just include
the `boards/native` logic (similar to `openlabs-kw41z-mini-256kib`).
The main logic for native is in `makefiles/arch/native.inc.mk`, `cpu/native`
and `boards/native`.
The remaining changes concern the build system, and change native board checks
to native CPU checks to cover both boards.
2024-02-05 22:01:40 +01:00
Benjamin Valentin
b729fe3237
sys/shell: add RIOT_VERSION_EXTRA output
...
This allows to define an extra string that will be output as part
of the version command.
e.g. an application may define
RIOT_VERSION_EXTRA += v1.33.7
RIOT_VERSION_EXTRA += flashed by $(shell whoami
2024-02-05 14:18:14 +01:00
benpicco
85dcc1bd3b
Merge pull request #19742 from benpicco/shell_cmd_udptty
...
shell/cmds: add udptty command
2024-02-02 16:28:26 +00:00
Benjamin Valentin
13deed1a83
shell/cmds: add udptty command
2024-02-02 12:55:25 +01:00
benpicco
22dbbf4a07
Merge pull request #20319 from chrysn-pull-requests/rust-simplifications
...
makefiles/cargo: Remove CARGO_CHANNEL and other simplifications
2024-02-02 08:07:02 +00:00
Marian Buschsieweke
3b3da09ec6
Merge pull request #20313 from maribu/sys/byteorder/cleanup-implementation
...
sys/byteorder: clean up implementation
2024-02-02 05:38:33 +00:00
Marian Buschsieweke
e14b309c42
sys/byteorder: clean up implementation
...
This changes the implementation to be solely build upon `endian.h`
and `unaligned.h`.
This turns `byteorder.h` basically in syntactic sugar on top of the
`<endian.h>` API, reducing the complexity of the implementation and,
hence, the maintenance effort.
Note that yields a small ROM reduction as well *yeah!*
```
make BOARD=nrf52840dk RIOT_CI_BUILD=1 BUILD_IN_DOCKER=1 -C tests/unittests
```
Yields before this commit:
```
text data bss dec hex filename
417788 2200 28640 448628 6d874 /data/riotbuild/riotbase/tests/unittests/bin/nrf52840dk/tests_unittests.elf
```
And with this commit:
```
text data bss dec hex filename
417756 2200 28640 448596 6d854 /data/riotbuild/riotbase/tests/unittests/bin/nrf52840dk/tests_unittests.elf
```
2024-02-01 18:24:40 +01:00
Benjamin Valentin
7cbf516e3b
event_periodic_callback: add getter for interval & count
2024-02-01 17:11:37 +01:00
chrysn
16153d73cc
rust: Selectively update riot-wrappers and -sys
...
This pulls in embedded-nal 0.7 implementations, and (on both crates)
alterations that decouple riot-wrappers from riot-sys and simplify build
system integration, and do away with the need for passing
RIOT_USEMODULE.
2024-02-01 13:53:42 +01:00
benpicco
d00fdcb301
Merge pull request #20030 from benpicco/nanocoap_fileserver
...
gcoap_fileserver: rename to nanocoap_fileserver
2024-02-01 09:08:49 +00:00
benpicco
4934504c93
Merge pull request #20314 from benpicco/nanocoap_sock-debug
...
nanocoap_sock: improve debug output
2024-01-31 21:20:09 +00:00
Marian Buschsieweke
9723a8d5f4
sys/endian: move form sys/libc
...
Move the <endian.h> header from `sys/libc/include` to `sys/include`.
2024-01-31 20:14:46 +01:00
Marian Buschsieweke
10e896390d
sys/libc/endian.h: fix compilation with older newlib
...
Older versions of newlib already provide the magic endian numbers
via `machine/endian.h`, which may be indirectly included. This changes
the header to only provide the macros if the are not provided otherwise.
For sanity, it checks if the values are indeed the expected magic
numbers, even if provided from other sources.
2024-01-31 14:50:36 +01:00
Marian Buschsieweke
0d01356c9c
sys/libc/endian: fix compilation on AVR
...
There is no need to use `__uint16_t` instead of `uint16_t` etc., so
let's just go with `uint16_t` and have AVR GCC happy.
2024-01-31 14:46:24 +01:00
Marian Buschsieweke
e5f69206ad
sys/libc/endian.h: fix magic constants
...
The constants BIG_ENDIAN etc. were not consistently defined. This
bug was not caught by the unit tests, as the preprocessor would
treat undefined macros as being `0` in numeric comparisons, hence
the following test did select the correct implementation:
```C
#if BYTE_ORDER == LITTLE_ENDIAN
/* correct implementation for all currently supported boards */
#endif
```
This adds now an explicit test to the unit tests to ensure that the
magic numbers are consistently the correct values. Hence, this bug
should no longer be able to sneak in.
Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>
2024-01-31 14:46:24 +01:00
Han Xinrong
bf3c038fa9
sys/random/fortuna/fortuna.c:add error check of aes_encrypt()
2024-01-30 19:04:01 +01:00
Benjamin Valentin
be399d59d0
gcoap_fileserver: rename to nanocoap_fileserver
2024-01-30 16:59:00 +01:00
Benjamin Valentin
a76feeb70e
nanocoap_sock: improve debug output
2024-01-30 16:33:55 +01:00
benpicco
7c8c522a73
Merge pull request #20309 from jia200x/pr/fix_tnt_loopback
...
gnrc_ipv6: fix double-free when pinging TNT loopback address
2024-01-30 11:54:48 +00:00
Marian Buschsieweke
e085ad02af
Merge pull request #20310 from maribu/libc/endian
...
sys/libc: add endian.h
2024-01-30 11:48:45 +00:00
Marian Buschsieweke
68018fe182
sys/libc: add endian.h
...
This provides glibc, NetBSD, FreeBSD compatible endian.h header with a
lean and simple API to convert between host byte order to little endian
and big endian and the other way around.
2024-01-30 10:59:28 +01:00
chrysn
55cbb7bdfa
Merge pull request #20303 from chrysn-pull-requests/rust-updates
...
treewide: Rust updates
2024-01-29 19:54:32 +00:00
Jose Alamos
8dc5e9109e
gnrc_ipv6: fix double free when pinging TNT loopback address
2024-01-29 14:34:41 +01:00
Fabian Hüßler
278dec22b1
vfs: fix FATFS_VFS_FILE_BUFFER_SIZE for increased VFS_NAME_MAX
2024-01-29 11:54:21 +01:00
chrysn
002cd42e26
treewide: cargo update
2024-01-27 09:41:26 +01:00
benpicco
2d459157f1
Merge pull request #20284 from benpicco/coap_build_reply_header
...
nanocoap: add coap_build_reply_header()
2024-01-24 22:00:57 +00:00
chrysn
52b0c8087b
Merge pull request #20294 from Teufelchen1/chore/rpl_format
...
routing/rpl: Fixing styling & format
2024-01-24 12:08:05 +00:00
Teufelchen1
1407d4b638
net/rpl: Major style fixes using uncrustify
2024-01-24 11:47:28 +01:00
Teufelchen1
8f6d5b2cb4
net/rpl: Minor style fixes
2024-01-24 11:45:32 +01:00
benpicco
ded97c36f0
Merge pull request #20285 from benpicco/gnrc_loopback-linklocal
...
gnrc/ipv6: only send link-local loopback if it's on the same interface
2024-01-23 21:48:54 +00:00
Benjamin Valentin
c71b5ae617
nanocoap: implement coap_reply_simple() using coap_build_reply_header()
2024-01-23 19:16:59 +01:00
Benjamin Valentin
158c1b8fa8
nanocoap: add coap_build_reply_header()
2024-01-23 19:16:59 +01:00
Benjamin Valentin
a6ef93fc71
nanocoap: make use of COAP_PAYLOAD_MARKER
2024-01-23 19:16:59 +01:00
Benjamin Valentin
fdc722f842
net/coap: define COAP_PAYLOAD_MARKER
2024-01-23 13:56:10 +01:00
mguetschow
50cf7b77cd
Merge pull request #20272 from Teufelchen1/chore/fmt_test_2
...
tests: Slightly increase coverage of fmt unittests
2024-01-23 12:06:48 +00:00
Teufelchen1
7c39b48847
tests: Slightly increase coverage of fmt unittests
2024-01-23 10:30:49 +01:00
Benjamin Valentin
616a5d69f6
gnrc/ipv6: only send link-local loopback if it's on the same interface
2024-01-22 20:03:41 +01:00
benpicco
8dbe2ef7e4
Merge pull request #20273 from benpicco/coap_find_uri_query
...
nanocoap: implement coap_find_uri_query()
2024-01-20 11:27:15 +00:00
Benjamin Valentin
1c24462cd9
nanocoap: implement coap_find_uri_query()
2024-01-19 10:53:03 +01:00
Benjamin Valentin
0b925c2494
sys/shell: fix reserved addresses in i2c_scan
...
There are only 8 reserved addresses on the low end of the address space.
2024-01-18 15:08:14 +01:00
Benjamin Valentin
c650b38989
gcoap: move gcoap_fileserver to nanoCoAP
2024-01-17 19:21:47 +01:00
Marian Buschsieweke
0cffb7f365
Merge pull request #20257 from fzi-haxel/native64-part1
...
core, sys, drivers: 64-bit support preparations
2024-01-17 15:40:34 +00:00
Frederik Haxel
394cd0e3a8
sys: 64 bit compatibility
...
* priority_queue_t: Replaced `-1U` literal with PRIORITY_QUEUE_DATA_SIGNALING define
* architecture.h: Added 64-bit
* bloom.h: Fixed typedef for the hashfp_t function pointer
* vfs.h: Increased default vfs buffer sizes for 64 bit
* bytes.h: Check if socklen_t is already defined
* ztimer: Use PRIxPTR format specifier
2024-01-17 16:05:12 +01:00
mguetschow
084dedcca7
Merge pull request #20116 from bergzand/pr/sha256/no_static
...
hashes/sha2{24,56}: Remove static variables from sha256
2024-01-16 16:01:56 +00:00
benpicco
c1ae2ecb9f
Merge pull request #20259 from fabian18/pr/gnrc/ipv6/nib_rejoin_ip6_mcast
...
gnrc/ipv6/nib: rejoin ipv6_addr_all_nodes_link_local on interface up
2024-01-16 15:11:53 +00:00
434e5647d0
hashes/sha224: Remove static variables from sha224
2024-01-16 16:00:44 +01:00
bac3f48dc9
hashes/sha256: Remove static variables from sha256
...
This removes the static (thread-unsafe) variables from sha256 and
hmac_sha256 to remove a potential footgun. The static variable is only
used when the caller does not supply a pointer to store the digest and
it is returned via the (undocumented) return value.
This commit removes this option and makes the digest argument mandatory.
2024-01-16 16:00:39 +01:00
Fabian Hüßler
ab3f77e673
gnrc/ipv6/nib: rejoin ipv6_addr_all_nodes_link_local on interface up
2024-01-16 12:34:37 +01:00
Frederik Haxel
291c89f1e7
sys/net/gnrc: Fixed wrong PRIuSIZE format specifier
2024-01-12 17:17:33 +01:00
benpicco
0c80553534
Merge pull request #20244 from benpicco/sys/shell/cmds-version
...
sys/shell: add firmware version to version cmd
2024-01-11 17:56:40 +00:00
Benjamin Valentin
eb76b8ea62
nanocoap: allow lastonum=NULL in coap_opt_put_uri_pathquery()
2024-01-11 16:51:18 +01:00
Benjamin Valentin
a470c1cb44
nanocoap_sock: always use coap_opt_put_uri_pathquery()
2024-01-11 16:51:18 +01:00
Benjamin Valentin
f932552b99
sys/shell: add firmware version to version cmd
2024-01-11 14:38:15 +01:00
benpicco
714958ad3c
Merge pull request #20241 from benpicco/busy_wait
...
sys/busy_wait: add busy wait helper
2024-01-11 12:19:31 +00:00
benpicco
bb4c4ddf20
Merge pull request #20243 from benpicco/gnrc_ipv6_nib_pl_set-relax
...
gnrc/nib: allow prefix to be on-link without being used for address
2024-01-10 22:19:03 +00:00
Benjamin Valentin
433438c924
gnrc/nib: allow prefix to be on-link without being used for address
2024-01-10 14:49:03 +01:00
Benjamin Valentin
bfd29f0fa7
sys/busy_wait: add busy wait helper
2024-01-09 19:03:15 +01:00
Benjamin Valentin
7240f707a5
nanocoap_sock: implement FETCH methods
2024-01-09 12:40:10 +01:00
Benjamin Valentin
7c9345f53a
sys/suit: introduce suit_worker_done_cb()
2024-01-08 20:39:12 +01:00
benpicco
1d3a7cdb5a
Merge pull request #20224 from benpicco/GNRC_IPV6_STATIC_LLADDR_FIXED
...
gnrc/ipv6/nib: allow for predictable static link-local addresses
2024-01-04 18:17:09 +00:00
Benjamin Valentin
4a5757b9af
gnrc/ipv6/nib: add Kconfig for static link-local address
2024-01-04 17:45:23 +01:00
Benjamin Valentin
7196b0a2ae
gnrc/ipv6/nib: allow for predictable static link-local addresses
2024-01-04 16:13:37 +01:00
Marian Buschsieweke
616b48d354
Merge pull request #20228 from benpicco/cc2538_get_eui64_primary
...
cpu/cc2538: fix EUI provider
2024-01-04 14:30:19 +00:00
Benjamin Valentin
ecb1e57b18
net/eui_provider: include board.h
2024-01-04 13:16:24 +01:00
benpicco
519f8251a4
Merge pull request #20220 from LP-HAW/fix-benchmark-overflow
...
sys/benchmark: fix integer overflow in benchmark_print_time()
2024-01-03 14:30:33 +00:00
benpicco
6d180c365c
Merge pull request #20210 from Enoch247/fix-riotboot
...
riotboot: fix build errors
2024-01-02 17:54:49 +00:00
benpicco
59eb017448
Merge pull request #20198 from Teufelchen1/chore/fmt_test
...
tests: Slightly increase coverage of fmt unittests
2024-01-02 14:02:59 +00:00
Mikolai Gütschow
aaf7064b51
sys/psa_crypto: fix compile bug for certain configuration
2024-01-02 13:59:36 +01:00
Joshua DeWeese
9f27a5a246
sys/riotboot/slot: fix failed build
...
When riotboot/slot.h is included, but riotboot is not enabled in the
build, a compiler error occures. This is because SLOT0_LEN is not
defined. This patch fixes this by surrounding the offending macrro with
a conditional compile. `riotboot_slot_size()` may still be called, in
which case it returns 0 for the size of any slot given.
2023-12-21 16:33:15 -05:00
Joshua DeWeese
edb419ab7c
sys/shell: update doc
...
This patch updates shell.c's doc that undersells the shells complexity.
The comment seems to have been written prior to the shell's ability to
parse command args and handle quoting sequences.
2023-12-21 16:18:23 -05:00
Joshua DeWeese
5cd52885c1
sys/shell: fix missing NULL terminator
...
This patch adds the missing NULL terminator to the argv passed to shell
command handlers. Without it, Newlib's getop() was intermittently
causing hardfaults. Closer inspection of NewLib's code revealed that it
relies in this NULL termination. ANSI-C also requires it of the argv
passed to main().
2023-12-21 15:53:04 -05:00
Joshua DeWeese
8a9dd047be
sys/shell: add details to doc
...
This patch adds details to the rationale behind the design of the
argv/argc handling for shell command handlers. It also fixes a
misspelling.
2023-12-21 15:53:04 -05:00
Joshua DeWeese
fcd3d0decf
sys/shell: fix doc
...
Fixed broken Markdown code spans. Also added a code span around mention
of getopt.
2023-12-21 15:52:53 -05:00
Frederik Haxel
9272ad8d9a
net/gnrc/rpl: Remove unused debug string
2023-12-21 12:06:47 +01:00
Frederik Haxel
64ba553d1f
sys: Use size_t print format specifier
...
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:19 +01:00
Frederik Haxel
b5a43801fb
print: Added size_t print format specifier
...
- Added `PRIuSIZE`, `PRIxSIZE`, etc. to `architecure.h`
- Changed `CODING_CONVENTIONS.md` regarding `size_t` printing
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:16 +01:00
Oleg Hahm
724e6e0098
Merge pull request #20167 from benpicco/gnrc_ipv6_classic
...
gnrc_ipv6_nib: fix config for mixed 6lo/classic setup
2023-12-20 12:12:40 +00:00
Benjamin Valentin
9ceb7cd30c
gnrc/ipv6/nib: fix GNRC_IPV6_STATIC_LLADDR when link state changes
2023-12-19 18:33:59 +01:00
Teufelchen1
4a62b9ff31
tests: Slightly increase coverage of fmt unittests
2023-12-19 18:11:28 +01:00
Benjamin Valentin
a1c3d5a4ea
nanocoap: rename coap_get_uri_query() -> coap_get_uri_query_string()
...
Free up the name for a function that will do something actually useful
2023-12-19 14:01:53 +01:00
Benjamin Valentin
f56edf5849
nanocoap: defuse footgun in coap_get_uri_query()
2023-12-19 14:00:04 +01:00
Benjamin Valentin
fa1f60f4ac
gnrc_ipv6_nib: fix config for mixed 6lo/classic setup
2023-12-19 10:47:54 +01:00
Benjamin Valentin
2f9c68dabc
sys/net/netif: constify netif access
2023-12-15 16:50:21 +01:00
krzysztof-cabaj
d279024c6e
sys/shell/lwip: add gateway configuration
2023-12-13 17:48:11 +01:00
krzysztof-cabaj
debb5cfc04
sys/shell/lwip: add subcommand to simple IPv4 configuration
2023-12-13 17:35:38 +01:00
krzysztof-cabaj
d7edaaab94
sys/shell/lwip: initial commit for IPv4 configuration
2023-12-13 17:35:38 +01:00
Benjamin Valentin
8f7dad6c53
gnrc: introduce gnrc_ipv6_classic pseudo-module
2023-12-11 23:31:21 +01:00
benpicco
81b5cf2e94
Merge pull request #20139 from benpicco/gnrc_sixloenc-fix
...
net/gnrc/netif: set 6LN flag for ethernet if gnrc_sixloenc is used
2023-12-07 20:06:13 +00:00
Marian Buschsieweke
d160a78ecc
sys/net/gnrc_sock: assume timeout is feasible
...
When not implementing the timeout feature, add an `assume()` that there
is no timeout. Otherwise things break at runtime and are hard to debug.
2023-12-06 13:48:27 +01:00
Benjamin Valentin
bc2c95c833
net/gnrc/netif: set 6LN flag for ethernet if gnrc_sixloenc is used
2023-12-04 22:56:28 +01:00
Marian Buschsieweke
d252eb7395
Merge pull request #19998 from fabian18/gnrc_static_messge_queues
...
gnrc: make message queues static
2023-12-04 11:21:08 +00:00
Fabian Hüßler
0cc2bdaf5b
sys/include/net/gnrc: reduce stack by previously allocated message queue
2023-12-03 17:53:44 +01:00
Lena Boeckmann
de09b2a0b4
sys/psa_crypto: Build PSA Crypto functions based on module selection
2023-11-30 21:02:42 +01:00
Mikolai Gütschow
6935ea21e7
sys/hashes: add SHA-512 support
2023-11-29 19:18:51 +01:00
benpicco
6eed92b1b7
Merge pull request #20114 from benpicco/gnrc_netif-error
...
sys/net/gnrc/netif: print which netif failed to init
2023-11-29 00:14:45 +00:00
Benjamin Valentin
c5b6a49b21
sys/net/gnrc/netif: print which netif failed to init
2023-11-28 23:01:21 +01:00
benpicco
db6d918c46
Merge pull request #19965 from benpicco/sock_udp_recv-ealry
...
sock/udp: work around gnrc_sock_recv() returning early timeout
2023-11-28 12:31:39 +00:00
Benjamin Valentin
e2e5e03439
nanocoap_sock: use coap_get_code_raw()
2023-11-28 13:11:11 +01:00
Benjamin Valentin
4bfd87ffa2
nanocoap: rename coap_get_code() -> coap_get_code_decimal()
2023-11-28 13:11:11 +01:00
chrysn
e9e1f9cce4
sys/random doc: Point to auto initialization and its caveats
2023-11-23 23:34:56 +01:00
chrysn
df70e00b92
sys/random doc: Make implementation list visible
2023-11-23 16:50:23 +01:00
Benjamin Valentin
e3d00682bc
sock/udp: work around gnrc_sock_recv() returning early timeout
...
sock_udp_recv_buf_aux() sometimes will return -ETIMEDOUT before
the given timeout has expired (e.g. 28798µs instead of 160000µs).
This messes with many assumptions and breaks protocols that rely
on the timeout.
Until we have a proper fix, add this workaround.
2023-11-14 13:33:16 +01:00
benpicco
81fd126d3e
Merge pull request #20076 from bergzand/pr/gcoap_msec
...
gcoap: Use millisecond timer for observe option values
2023-11-14 10:26:18 +00:00
Marian Buschsieweke
978176a283
Merge pull request #20074 from maribu/sys/flash_utils/avr
...
sys/flash_utils: Minor bug fixes
2023-11-11 12:58:08 +00:00
benpicco
5d54e89a17
Merge pull request #20078 from benpicco/mtd_dev_get
...
drivers/mtd: rename mtd_default_get_dev() -> mtd_dev_get()
2023-11-10 21:36:19 +00:00
Benjamin Valentin
c2f93c05f1
treewide: mtd_default_get_dev() -> mtd_dev_get()
2023-11-10 19:53:48 +01:00
a6a8f6e1cd
gcoap: Separate out observe option generation in own function
2023-11-10 16:01:57 +01:00
6425fda812
gcoap: Use millisecond timer for observe option values
2023-11-10 16:00:00 +01:00
Benjamin Valentin
75f10a5725
gnrc/ipv6/nib: don't do multicast neighbor solicitation on 6LoWPAN
2023-11-10 12:11:49 +01:00
Marian Buschsieweke
d6797867fb
sys/flash_utils: Fix signature in documentation
...
The function signature in the Doxygen generated doc was incorrect.
Given that the implementation does have the correct signature, the
impact may not be that large. Still, incorrect doc is confusing, so
let's fix it.
2023-11-10 11:17:51 +01:00
Benjamin Valentin
f731ec7bff
sys/malloc_tracing: fix calloc printouts
2023-11-09 20:15:53 +01:00
bors[bot]
c0ae75b339
Merge #20003 #20028 #20036 #20041
...
20003: coap: create typedef for CoAP methods r=benpicco a=benpicco
20028: nanocoap: fix incorrect uses of coap_get_code() r=benpicco a=benpicco
20036: boards/nucleo-l4r5zi : add PWM configuration r=benpicco a=krzysztof-cabaj
### Contribution description
This PR adds to the Nucleo-l4r5zi PWM configuration
### Testing procedure
Flash the board using `tests/periph/pwm` program. Check if you could, for example, change LED
intensity using PWM.
### Issues/PRs references
None.
20041: pkg/littlefs2: bump to v2.8.1 r=benpicco a=bergzand
### Contribution description
Minor version number bump.
### Testing procedure
- Check if I copied the correct commit hash.
- Run the tests.
### Issues/PRs references
None
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: krzysztof-cabaj <kcabaj@gmail.com>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
2023-11-02 11:01:23 +00:00
Benjamin Valentin
a8fc0a25ed
gcoap_fileserver: use coap_get_code_raw()
2023-10-27 19:18:37 +02:00
Benjamin Valentin
a5cc48ad45
nanocoap_sock: use coap_get_code_raw()
2023-10-27 19:18:37 +02:00
Benjamin Valentin
54362e2c2a
nanocoap/cache: use coap_get_code_raw()
2023-10-27 19:18:00 +02:00
Benjamin Valentin
db3294a481
nanocoap_sock: make use of coap_method_t
2023-10-26 11:37:14 +02:00
Benjamin Valentin
1e854ec187
coap: create typedef for CoAP methods
2023-10-26 11:37:14 +02:00
Martine Lenders
63fd5643e4
coap: Set COAP_FORMAT_DNS_MESSAGE to 553
...
Set since draft-ietf-core-dns-over-coap-03
2023-10-25 11:00:56 +02:00
Martine Lenders
410be58f36
gcoap_dns: Update draft URL
...
The DoC draft is a working group draft since September 2022
2023-10-25 10:54:31 +02:00
bors[bot]
647a13c392
Merge #19999
...
19999: nib/_nib-6ln: bail out early if address is no longer assigned r=miri64 a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-10-24 16:01:53 +00:00
Benjamin Valentin
8779b5edde
nib/_nib-6ln: don't check twice if address is assigned
2023-10-24 16:47:47 +02:00
Benjamin Valentin
7c6b367035
nib/_nib-6ln: bail out early if address is no longer assigned
2023-10-24 16:44:25 +02:00
bors[bot]
61ae692ae9
Merge #19994
...
19994: nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery() r=miri64 a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-10-24 09:20:51 +00:00
bors[bot]
a1e19312a3
Merge #19990
...
19990: sys/psa_crypto: allow repeated initialization r=benpicco a=mguetschow
### Contribution description
- simple unit test which calls `psa_crypto_init()` twice
- fix to no re-initialize key slots (which left them in a broken state)
### Testing procedure
- `make -C tests/sys/psa_crypto all test` succeeds
- `git checkout HEAD~1 && make -C tests/sys/psa_crypto all test` fails
Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
2023-10-23 16:32:14 +00:00
Benjamin Valentin
0fa04a3d57
nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery()
...
If uri contains no path but only a query "?foo=bar" `len` would underflow.
Fix this by detecting if there is no path.
Reported by @Yu3H0
2023-10-20 12:59:42 +02:00
bors[bot]
03d3874e51
Merge #19465 #19981 #19995
...
19465: drivers/mtd: use XFA for pointers to defined MTDs r=benpicco a=gschorcht
### Contribution description
This PR provides the support to hold pointers to defined MTDs within a XFA. The XFA allows
- to access MTDs of different types (`mtd_flashpage`, `mtd_sdcard`, `mtd_emulated`, ...) by an index
- to determine the number of MTDs defined in the system.
### Testing procedure
To be defined once PR #19443 is merged because emulated MTDs will allow to test this PR on arbitrary boards.
### Porting Guide
For external boards:
- remove the `MTD_NUMOF` definition from `board.h`
- add `MTD_XFA_ADD(<mtd_dev>, <idx>);` to the definition of `<mtd_dev>`.
- `MTD_0`, `MTD_1`, … defines are no longer needed.
### Issues/PRs references
Related to PR #19443
19981: Fletcher32: Add incremental API r=benpicco a=bergzand
### Contribution description
This PR extends the current fletcher32 checksum with an incremental API mode. This way the bytes to be checksummed can be supplied via multiple successive calls and do not have to be provided in a single consecutive buffer.
I've also rephrased the warning with the original function a bit as that function uses an `unaligned_get_u16` to access the data. The data thus does not require alignment, but the length does need to be supplied as number of 16 bit words.
### Testing procedure
The test has been extended
### Issues/PRs references
None
19995: sys/psa_crypto: Fix macro for public key max size and SE example r=benpicco a=Einhornhool
### Contribution description
#### 1. Wrong public key size when using secure elements, introduced by #19954
Fixed conditions for key size macros in `crypto_sizes.h`.
#### 2. EdDSA and ECDSA examples fail when using a secure element because of unsopported changes introduced by #19954
Updated `example/psa_crypto` to use only supported functions for secure elements.
### Testing procedure
Build `example/psa_crypto` for secure elements and run application
Output on master:
```
2023-10-19 14:33:24,372 # main(): This is RIOT! (Version: 2019.07-devel-22378-gb6772)
2023-10-19 14:33:24,372 # HMAC SHA256 took 56393 us
2023-10-19 14:33:24,372 # Cipher AES 128 took 68826 us
2023-10-19 14:33:24,372 # *** RIOT kernel panic:
2023-10-19 14:33:24,373 # HARD FAULT HANDLER
2023-10-19 14:33:24,373 #
2023-10-19 14:33:24,373 # *** rebooting...
```
Output with fixes:
```
2023-10-19 13:35:24,715 # main(): This is RIOT! (Version: 2019.07-devel-22384-g8ef66-dev/psa-crypto-fixes)
2023-10-19 13:35:24,715 # HMAC SHA256 took 56374 us
2023-10-19 13:35:24,715 # Cipher AES 128 took 68805 us
2023-10-19 13:35:24,715 # ECDSA took 281164 us
2023-10-19 13:35:24,715 # All Done
```
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
2023-10-19 19:01:12 +00:00
Fabian Hüßler
5aa3baac8c
gnrc/udp: make message queue static
2023-10-19 17:52:30 +02:00
Fabian Hüßler
c741fa5fbe
gnrc/pktdump: make message queue static
2023-10-19 17:49:25 +02:00
Fabian Hüßler
662f1be5d5
gnrc/sixlowpan: make message queue static
2023-10-19 17:47:24 +02:00
Fabian Hüßler
975f8959ce
gnrc/ipv6: make message queue static
2023-10-19 17:45:08 +02:00