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
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
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
Benjamin Valentin
13fd806f4f
nanocoap_sock: add option to include token for block-wise
2024-04-10 12:36:53 +02: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
benpicco
1fee41059f
Merge pull request #20542 from benpicco/vfs/exfat-bump
...
vfs: increase _FATFS_FILE_EXFAT
2024-04-08 08:38:30 +00: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
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
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
Teufelchen1
0503e61178
sys/checksum: Remove deprecated crc16_ccitt functions
2024-04-02 11:22:04 +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
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
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
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
Firas Hamdi
a40735a0e1
sys/include/can: include mailbox feature
2024-03-26 15:17:48 +01:00
Mikolai Gütschow
f31f82042a
sys: add malloc_monitor, deprecate malloc_tracing
2024-03-26 10:00:24 +01: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
benpicco
e3ce765a04
Merge pull request #20191 from benpicco/coap_get_method
...
nanocoap: introduce coap_get_method()
2024-03-19 18:20:31 +00: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
Leandro Lanzieri
868d8390f4
sys/net/sock_dtls: add public key verification
2024-03-19 07:44:50 +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
3e3f18eeda
sys/net/sock: add sock_udp_ep_is_v6()
2024-03-17 17:38:58 +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
Benjamin Valentin
a613ff5831
sys/embunit: return failure state in TestRunner_end()
2024-03-04 14:30:45 +01:00
Benjamin Valentin
2e7cdfb345
nanocoap: introduce coap_get_method()
2024-02-28 11:49:56 +01: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
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
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
ab821a1dda
gcoap: add api to forget a client-side observe request
2024-02-08 15:48:32 +01: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
Fabian Hüßler
c4ae9063e9
ipv6/nib: fix gnrc_ipv6_nib_ft_add API and catch overflovs
2024-02-06 18:35:05 +01: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
benpicco
d00fdcb301
Merge pull request #20030 from benpicco/nanocoap_fileserver
...
gcoap_fileserver: rename to nanocoap_fileserver
2024-02-01 09:08:49 +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
Benjamin Valentin
be399d59d0
gcoap_fileserver: rename to nanocoap_fileserver
2024-01-30 16:59:00 +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
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
Benjamin Valentin
158c1b8fa8
nanocoap: add coap_build_reply_header()
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
1c24462cd9
nanocoap: implement coap_find_uri_query()
2024-01-19 10:53:03 +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
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
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
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
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
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
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
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
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