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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model
2024-03-27 10:28:12 +01: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
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files
2024-03-26 14:54:22 +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
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
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
Benjamin Valentin
408218f631
nanocoap_sock: support build with IPv4
2024-03-17 17:39:44 +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
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
446509c177
gcoap_fileserver: use coap_get_method()
2024-02-28 11:49:56 +01:00
xnumad
23d3ccde6b
gnrc_ipv6_nib: Ignore PIO with on-link flag
2024-02-22 17:52:17 +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
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
b575e2d35b
stdio_telnet: port to new interface
2024-02-09 15:24:22 +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
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
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
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
Jose Alamos
8dc5e9109e
gnrc_ipv6: fix double free when pinging TNT loopback address
2024-01-29 14:34:41 +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
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
616a5d69f6
gnrc/ipv6: only send link-local loopback if it's on the same interface
2024-01-22 20:03:41 +01:00
Benjamin Valentin
1c24462cd9
nanocoap: implement coap_find_uri_query()
2024-01-19 10:53:03 +01:00
Benjamin Valentin
c650b38989
gcoap: move gcoap_fileserver to nanoCoAP
2024-01-17 19:21:47 +01: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
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
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
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
7240f707a5
nanocoap_sock: implement FETCH methods
2024-01-09 12:40:10 +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
Benjamin Valentin
ecb1e57b18
net/eui_provider: include board.h
2024-01-04 13:16:24 +01: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
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
Benjamin Valentin
2f9c68dabc
sys/net/netif: constify netif access
2023-12-15 16:50:21 +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
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
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
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
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
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
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
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
bors[bot]
b6772c85fd
Merge #19968
...
19968: gcoap: fix underflow when correcting ETag from cache r=miri64 a=miri64
Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
2023-10-17 14:20:41 +00:00
bors[bot]
910e0e28ed
Merge #19963 #19971 #19974 #19975 #19976
...
19963: sys/event/timeout: add event_timeout_is_pending() r=benpicco a=benpicco
19971: sys/shell/gnrc_netif: Fix a few blockers for sharing ifconfig shell r=benpicco a=yarrick
19974: gnrc_ipv6_ext_frag: _completed: Add comment why list head is not checked for NULL pointer dereference r=benpicco a=miri64
19975: pkg/nanocbor: Bump to latest commit r=benpicco a=bergzand
### Contribution description
Not much to see here
Important changes:
- Add stream-like interface for encoder
- Separate functions for number of items left in arrays and maps
### Testing procedure
The usual test should still work
### Issues/PRs references
None
19976: core: Express -1 as ~0 in thread_status_t cast r=benpicco a=SimonIT
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Erik Ekman <eekman@google.com>
Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: SimonIT <simonit.orig@gmail.com>
2023-10-16 15:31:25 +00:00
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
...
This should not change any generated binary
2023-10-16 12:17:48 +02:00