Benjamin Valentin
2a6b8a3fed
gnrc_netif: use different error messages for can't queue packet
2024-11-22 19:50:20 +01:00
benpicco
2bce94a7c7
Merge pull request #21012 from benpicco/netdev_new_api-relax
...
netdev_new_api: allow `.send()` to return > 0 to signal synchronos send
2024-11-20 22:28:26 +00:00
Benjamin Valentin
a86411b81e
drivers/netdev: allow .send() to return > 0 to signal synchronos send
2024-11-20 16:40:36 +01:00
Benjamin Valentin
83f5b261a8
sys/net/gnrc_pktbuf: detect use after free if canary is in metadata
2024-11-19 15:23:03 +01:00
Benjamin Valentin
ea1670ab0f
sys/net/gnrc_pktbuf: move CANARY to header file
2024-11-19 15:23:03 +01:00
Benjamin Valentin
278e8f53b7
sys/net/gnrc_pktbuf: fail assertion if illegal memory was freed
2024-11-19 15:23:03 +01:00
benpicco
aee4c1ef9c
Merge pull request #20984 from benpicco/gnrc_pktsnip_t-shrink
...
sys/net/gnrc/pkt: use `uint8_t` for user count
2024-11-17 17:29:16 +00:00
Marian Buschsieweke
51f969d655
Merge pull request #20993 from benpicco/netdev_new_api-enhance
...
gnrc_netif: netdev_new_api implies TX end irq, no need to check it
2024-11-17 08:45:19 +00:00
Marian Buschsieweke
2adb4042b3
Merge pull request #20974 from benpicco/gnrc_pktbuf_static-double-free
...
sys/net/gnrc_pktbuf_static: add double free detection
2024-11-16 09:03:42 +00:00
Marian Buschsieweke
fbf5c66f78
Merge pull request #20983 from benpicco/gnrc_netif_netdev_new_api-leak
...
gnrc_netif: fix packet leak with gnrc_netif_pktq & netdev_new_api
2024-11-15 22:46:54 +00:00
Benjamin Valentin
300a936e42
gnrc: add comment about gnrc_pktbuf_hold() use
2024-11-15 16:59:08 +01:00
Benjamin Valentin
e8b3b4d3e4
gnrc_pktbuf: assert that user count does not exceed 255
2024-11-15 16:41:42 +01:00
Benjamin Valentin
f82c41e96f
gnrc_netif: netdev_new_api implies TX end irq, no need to check it
2024-11-14 17:11:58 +01:00
Benjamin Valentin
8eef1c1170
sys/net/gnrc/netif: don't release snip with netdev_new_api
2024-11-14 11:57:58 +01:00
Benjamin Valentin
b9b8c4a68f
gnrc_netif: fix packet leak with gnrc_netif_pktq & netdev_new_api
2024-11-13 13:40:13 +01:00
Marian Buschsieweke
2623762c16
Merge pull request #20977 from maribu/net/grnc/tcp/select-netif
...
sys/net/gnrc/tcp: fix gnrc_tcp_open() netif handling
2024-11-13 05:31:00 +00:00
Marian Buschsieweke
e714707b14
sys/net/gnrc/tcp: fix gnrc_tcp_open() netif handling
...
gnrc_tcp_open() previously would eventually fail with a timeout without
sending any data when no netif was specified and a link-local target
address was used. This fixes the behavior:
- If there is only one netif, we just pick that
- If there are multiple netifs, fail directly with `-EINVAL` rather than
sending out nothing and waiting for a timeout.
Co-authored-by: benpicco <benpicco@googlemail.com>
2024-11-12 15:44:41 +01:00
Benjamin Valentin
0bed0c6bfe
gnrc_netif: fix double free with netdev_new_api & gnrc_netif_pktq
2024-11-11 20:30:30 +01:00
Benjamin Valentin
982af61c82
sys/net/gnrc_pktbuf_static: make hexdump optional
2024-11-11 15:17:40 +01:00
Benjamin Valentin
4bd273f009
sys/net/gnrc_pktbuf_static: add double free detection
2024-11-11 15:17:40 +01:00
benpicco
3706589959
Merge pull request #20834 from derMihai/mir/nib/drop_for_unreachable_rebase
...
gnrc/ipv6/nib: don't queue packets on 6lo neighbors and drop/flush if…
2024-10-16 09:16:40 +00:00
Mihai Renea
3a5612ee57
gnrc/ipv6/nib: don't queue packets on 6lo neighbors and drop/flush if UNREACHABLE
2024-10-16 09:01:36 +02:00
Mikolai Gütschow
f0e6776d40
treewide: apply codespell corrections
2024-10-09 13:03:52 +02:00
Teufelchen1
51537908d1
gnrc_lorawan: Ensure minimal packet length
2024-10-01 12:11:05 +02:00
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
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
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
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
Daniel Lockau
7240d37fc2
nib.c: allow selection of interfaces for static link local addresses
2024-08-26 08:31:21 +02: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
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
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
42754b58ea
gnrc_sock_udp: set source port when aux local is present
2024-05-21 19:25:55 +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
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
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
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
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