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
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
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