Benjamin Valentin
0b99d4fffe
gnrc_sixlowpan_frag: enable gnrc_netif_pktq if netdev_new_api is used
2024-09-30 14:07:35 +02:00
benpicco
9bdb697edb
Merge pull request #20857 from benpicco/dns_msg-fix_skip
...
dns_msg: skip RDLENGTH_LENGTH field when skipping record
2024-09-27 15:57:17 +00:00
benpicco
5c06502c4d
Merge pull request #20835 from xnumad/nib-route-hide-on-link-prefixes
...
gnrc/ipv6: `nib route`: hide off-link PLEs
2024-09-24 15:42:48 +00:00
xnumad
92b77ed944
gnrc_ipv6_nib: refactor
...
Co-Authored-By: benpicco <benpicco@googlemail.com>
2024-09-18 16:09:58 +02:00
Marian Buschsieweke
1fa7db2eda
Merge pull request #20855 from benpicco/coap_block_finish-fix
...
nanocoap: always write at least 1 byte in coap_block2_finish()
2024-09-12 15:01:19 +00:00
Benjamin Valentin
344d4b80bf
sock_dns: add debug output
2024-09-12 11:00:41 +02:00
Benjamin Valentin
bc2ad626f3
dns_msg: rename addrlen -> rdlen
2024-09-12 11:00:41 +02:00
Benjamin Valentin
305b5db4eb
dns_msg: add debug output
2024-09-12 11:00:41 +02:00
Benjamin Valentin
74356c9737
dns_msg: skip RDLENGTH_LENGTH field when skipping record
...
fixes #20355
2024-09-12 11:00:41 +02:00
Fabian Hüßler
95b46ee2a5
sys/net/application_layer/nanocoap: add nanocoap_sock_get_non
2024-09-10 16:43:44 +02:00
Benjamin Valentin
66fe083d9b
nanocoap: always write at least 1 byte in coap_block2_finish()
...
The CoAP block option gets written twice:
First a 'dummy' value is written by `coap_opt_add_block2()`, later this gets
overwritten by the real option value by coap_block2_finish().
The problem arises when the size of the option changes.
If the option ends up smaller than the dummy, we have garbage bytes after the
real option value, corrupting the packet.
To mitigate this, always write at least one option byte (which will be a 0 byte)
to ensure the dummy data is overwritten.
fixes #20686
2024-09-07 16:11:23 +02:00
benpicco
73e90c5049
Merge pull request #20371 from xnumad/nib-next-hop-addr
...
gnrc_ipv6_nib: Force unspecified next hop addresses
2024-09-02 12:13:28 +00:00
xnumad
8b73628dc8
gnrc_ipv6_nib: refactor
...
Invert condition, add assert
2024-08-31 10:40:17 +02:00
Benjamin Valentin
16c447afb1
gcoap: make use of event_callback_post()
2024-08-29 17:35:54 +02:00
benpicco
022630c043
Merge pull request #20836 from benpicco/sys/gcoap-thread_name
...
gcoap: the name of the gcoap thread should be gcoap
2024-08-27 08:56:50 +00:00
xnumad
606a11b87d
gnrc_ipv6_nib: fix: offl-only: overwrite unspecified address
...
Co-Authored-By: fabian18 <15147337+fabian18@users.noreply.github.com>
2024-08-26 18:26:57 +02:00
xnumad
48a2417892
gnrc/ipv6: nib route
: hide off-link PLEs
2024-08-26 16:30:58 +02:00
benpicco
1626919da7
Merge pull request #20684 from fabian18/pr/fix_gcoap_observe_response_correlation
...
sys/net/application_layer/gcoap: fix Observe notifications correlation
2024-08-26 14:11:59 +00:00
Benjamin Valentin
f95dc978fa
gcoap: the name of the gcoap thread should be gcoap
2024-08-26 15:44:26 +02:00
Daniel Lockau
7240d37fc2
nib.c: allow selection of interfaces for static link local addresses
2024-08-26 08:31:21 +02:00
Fabian Hüßler
a181c7b543
sys/gcoap: add public function to find a resource by path
2024-08-21 17:49:48 +02:00
Fabian Hüßler
c1535d25ba
nanocoap: constify coap_match_path() API
2024-08-21 17:49:48 +02:00
Fabian Hüßler
08f6ec49c4
gcoap: lock CoAP state mutex in observe API
2024-08-21 17:49:48 +02:00
Fabian Hüßler
a2a7f41a59
gcoap: send Observe notifications from request address
2024-08-21 17:34:18 +02:00
Fabian Hüßler
04d95ab0e8
gcoap: debug for _find_req_memo_by_token()
2024-08-21 17:34:18 +02:00
Fabian Hüßler
0614db9cd5
sys/net/application_layer/gcoap: fix Observe notifications correlation
2024-07-31 23:01:17 +02:00
Martine Lenders
11ea4a359d
Merge pull request #20801 from Teufelchen1/fix/dhcpv6
...
net/dhcpv6: Improve option handling in dhcpv6 advertise
2024-07-31 07:51:42 +00:00
Bennet Blischke
cc9855b3ae
net/dhcpv6: Improve option handling in dhcpv6 advertise
2024-07-30 19:21:09 +02:00
Teufelchen
1e6164fd68
Merge pull request #20549 from chrysn-pull-requests/gcoap-asan
...
gcoap: Avoid reading beyond defined input buffer
2024-07-30 10:13:41 +00:00
xnumad
3ab7896b18
gnrc_ipv6_nib: Force unspecified next hop addresses
2024-07-29 20:10:13 +02:00
benpicco
9781bc0ad3
Merge pull request #20757 from xnumad/offl-lifetimes
...
gnrc/ipv6: Store all SLAAC prefixes
2024-07-29 14:06:22 +00:00
Benjamin Valentin
312a550f1a
treewide: remove THREAD_CREATE_STACKTEST from thread creation
2024-07-29 11:45:58 +02:00
xnumad
e25066768b
gnrc/ipv6: Store all SLAAC prefixes
...
Incl. off-link ones, since lifetimes for the autoconfigured addresses are managed by the prefix entry.
2024-07-28 09:53:55 +02:00
benpicco
4ba7c46e4d
Merge pull request #20711 from fabian18/pr/gcoap_aux_local_in_req_send
...
gcoap: propagate local tx aux to gcoap_req_send() and in _handler_req()
2024-07-05 12:07:38 +00:00
xnumad
81a1e997f0
gnrc/ipv6: fix: Overflow in sent packet
2024-07-03 20:15:04 +02:00
xnumad
1e4a85f1e6
gnrc/ipv6: fix: Avoid overflow if prefix already expired
...
Check similarly to `_handle_pfx_timeout`
2024-07-03 20:14:45 +02:00
fabian18
d6d9d5f3da
Merge pull request #20329 from fabian18/nib_rtr_fixes
...
nib: some fixes when a router or a prefix is deleted
2024-06-10 08:38:49 +00:00
benpicco
78da4bc1c7
Merge pull request #20725 from fabian18/pr/nanocoap_sock_fix_ctx_release
...
nanocoap/sock: fix state handling for mismatching message ID in `nanocoap_sock_request_cb()`
2024-06-07 16:19:13 +00:00
Fabian Hüßler
5145b29b55
nanocoap/sock: fix context release
2024-06-06 11:24:41 +02:00
Fabian Hüßler
f50dd7dade
gcoap/forward_proxy: set payload length in forwarded PDU
2024-05-31 12:04:48 +02:00
Fabian Hüßler
c12375eec4
gcoap/forward_proxy: reply from request destination address
2024-05-31 12:04:48 +02:00
Fabian Hüßler
f4b1306460
gcoap: pass aux local to _handle_req()
2024-05-31 12:04:48 +02:00
Fabian Hüßler
40fb250ae4
treewide: adapt to gcoap_req_send aux local API change
2024-05-31 12:04:48 +02:00
benpicco
251ea7f75a
Merge pull request #20687 from benpicco/nanocoap_fs
...
nanocoap_fs: add nanoCoAP as VFS backend (remote CoAP fs)
2024-05-29 15:00:24 +00:00
Fabian Hüßler
3973e4bb9d
gcoap: add aux local to gcoap_req_send
2024-05-29 16:37:13 +02:00
Benjamin Valentin
a87687c14e
nanocoap_fs: add nanoCoAP as VFS backend
2024-05-29 11:32:22 +02:00
Benjamin Valentin
994211d955
nanocoap_sock: add nanocoap_sock_get_block()
2024-05-28 11:42:32 +02:00
benpicco
e62c25a015
Merge pull request #20690 from benpicco/nanocoap_get_blockwise_to_buf
...
nanocoap_sock: add nanocoap_get_blockwise_to_buf()
2024-05-27 16:53:44 +00:00
Fabian Hüßler
b6aa7a6ea5
nanocoap/sock: fix response token matching for piggybacked ACKs
2024-05-27 17:58:44 +02:00
Fabian Hüßler
afc9f9bf28
nanocoap/sock: nanocoap_sock_request_cb(): fix state handling
2024-05-27 17:58:44 +02:00
Fabian Hüßler
058ab2ce40
nanocoap/sock: nanocoap_sock_request_cb(): wait for response without cb
2024-05-27 17:58:16 +02:00
Fabian Hüßler
ec9a114f7a
nanocoap/sock: stop retransmissions after empty ACK
2024-05-27 09:54:02 +02:00
Benjamin Valentin
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