Cenk Gündoğan
9746c3a830
nanocoap: add COAP_IGNORE for when method parsing is not important
2022-03-11 14:53:17 +01:00
Cenk Gündoğan
fa19b62cdb
gcoap/forward_proxy: add submodule
2022-03-11 14:53:17 +01:00
Marian Buschsieweke
f298d0a585
Merge pull request #17780 from benpicco/gnrc_sock-iolist
...
net/gnrc_sock: depend on iolist
2022-03-10 11:38:14 +01:00
benpicco
9896071bb9
Merge pull request #17493 from HendrikVE/pr/auto_init_sock_dns
...
sys/net/application_layer/sock_dns: add pseudomodule auto_init_sock_dns
2022-03-10 00:53:32 +01:00
Benjamin Valentin
32cf05b110
net/gnrc_sock: depend on iolist
2022-03-09 22:42:01 +01:00
Hendrik van Essen
0b0910f82a
sys/net/application_layer/sock_dns: add pseudomodule auto_init_sock_dns
2022-03-09 20:05:20 +01:00
benpicco
f83fa88ccd
Merge pull request #17764 from HendrikVE/pr/netutils_netutils_get_ipv4
...
sys/net/netutils: add netutils_get_ipv4()
2022-03-09 11:30:38 +01:00
benpicco
948e8d9463
Merge pull request #17766 from HendrikVE/pr/sock_util_fix_compilation_ipv4
...
sys/net/sock_util: fix compilation for IPv4-only mode
2022-03-09 01:47:40 +01:00
Hendrik van Essen
ffd93c9b1b
sys/net/netutils: add netutils_get_ipv4()
2022-03-08 13:35:32 +01:00
benpicco
2d89399047
Merge pull request #17745 from leandrolanzieri/cpu/esp32/esp-eth/move_auto_init
...
cpu/esp32/esp-eth: move GNRC auto_init to init_devs
2022-03-07 20:25:06 +01:00
Dylan Laduranty
9d459b8a14
Merge pull request #17746 from leandrolanzieri/cpu/sam0_common/eth/expose_correct_setup
...
cpu/sam0_common/eth: expose correct setup function
2022-03-07 18:42:08 +01:00
benpicco
a9456b6935
Merge pull request #17741 from fabian18/bugfix-NIB_handle_rtr_timeout
...
ipv6/nib: fix memcpy() bug in _handle_rtr_timeout()
2022-03-07 13:39:05 +01:00
Hendrik van Essen
73431b398d
sys/net/sock_util: fix compilation for IPv4-only mode
2022-03-07 02:58:17 +01:00
Hendrik van Essen
a3faa79612
sys/net/netutils: add missing string.h include
2022-03-07 02:57:50 +01:00
benpicco
f31fdfd12d
Merge pull request #17747 from leandrolanzieri/drivers/encx24j600/default_params
...
drivers/encx24j600: define default parameters
2022-03-05 10:29:48 +01:00
Leandro Lanzieri
de79edb352
drivers/encx24j600: define default parameters
2022-03-04 09:58:50 +01:00
Leandro Lanzieri
74c8893a4f
cpu/esp32/esp-eth: move GNRC auto init to init_devs
2022-03-04 09:41:18 +01:00
Leandro Lanzieri
f1075ad749
cpu/sam0_common/eth: expose correct setup function
2022-03-04 08:57:42 +01:00
Francisco Molina
1aea12c27c
sys/net/gnrc/sock_types: guard tcp.h header inclusion
2022-03-04 08:47:47 +01:00
Francisco
0c166b1e2a
Merge pull request #17732 from fjmolinas/pr_xtimer_compat_deps
...
sys: sort out ztimer_xtimer_compat and ztimer64_xtimer_compat depes
2022-03-04 08:08:41 +01:00
Fabian Hüßler
6916f72419
ipv6/nib: fix memcpy() bug in _handle_rtr_timeout
2022-03-03 23:35:06 +01:00
c7c5279362
Merge pull request #17731 from fjmolinas/pr_csma_sender_use_public_api
...
sys/net/link_layer/csma_sender: use public xtimer_now()
2022-03-03 19:20:18 +01:00
benpicco
c411edef55
Merge pull request #16688 from miri64/gcoap/enh/multitransport
...
gcoap: multi-transport support
2022-03-03 12:15:48 +01:00
Benjamin Valentin
9eb62da2d4
gnrc_dhcpv6_client_simple_pd: set AAC_DHCP if IA_NA is enabled
2022-03-02 14:53:09 +01:00
Francisco Molina
6151895bfa
sys: use ztimer64_xtimer_compat when required
2022-03-02 14:28:54 +01:00
Francisco Molina
8378b401d8
sys/net/link_layer/csma_sender: use public xtimer_now_usec()
2022-03-02 12:06:47 +01:00
ce1ec91adc
Merge pull request #17729 from fjmolinas/pr_gomach_no_periph_rtt_ztimer
...
sys/net/gnrc: ztimer_no_periph_rtt if gomach
2022-03-02 10:59:33 +01:00
Francisco Molina
a151a8e66a
sys/net/gnrc: ztimer_no_periph_rtt if gomach
2022-03-02 08:33:29 +01:00
Benjamin Valentin
2034fa5101
sys/net/application_layer: add telnet server module
2022-03-01 23:07:22 +01:00
Benjamin Valentin
1b52dee2d6
net/gnrc: restore inclusion of net/gnrc/tcp.h
...
This reverts d03175c2ae
2022-03-01 23:07:21 +01:00
Martine Lenders
287bfdc10d
gcoap: multi-transport support for listeners
2022-03-01 19:33:15 +01:00
Martine Lenders
90eae8e0a4
gcoap: multi-transport support for clients
...
23a8659bdf
introduced DTLS support for
CoAP, but did not make it possible to select the transport on request.
Since switching between CoAP and CoAPS (CoAP-over-DTLS) as client is a
valid use case (one might want to e.g. talk to one server over CoAP and
to another over CoAPS), this change makes that possible.
2022-03-01 19:26:10 +01:00
a17ff53ecf
Merge pull request #17485 from benpicco/sock_udp_sendv
...
sys/net/sock: add sock_udp_sendv() API
2022-03-01 14:05:21 +01:00
Karl Fessel
35107ec4ba
sys/net: add missing includes
2022-02-28 14:53:07 +01:00
Karl Fessel
d03175c2ae
net/gnrc: avoid *timer creeping though header
2022-02-28 14:53:07 +01:00
benpicco
bbfa69153e
Merge pull request #17474 from benpicco/nanocoap-suit
...
sys/net/nanocoap: introduce `nanocoap_sock_*()`, use in suit/transport/coap
2022-02-27 02:07:50 +01:00
benpicco
67b98fd741
sys/net/nanocoap: introduce nanocoap_sock_*()
...
Co-authored-by: Jan Romann <jan.romann@uni-bremen.de>
2022-02-24 12:20:47 +01:00
Benjamin Valentin
0b768e5602
nanocoap: add nanocoap_request_simple()
2022-02-24 12:20:05 +01:00
Benjamin Valentin
7dc2f730d2
nanocoap: check if all critical options were handled
2022-02-24 12:20:05 +01:00
Benjamin Valentin
4cf94083de
sys/net/grnc: implement sock_udp_sendv_aux()
2022-02-22 10:05:41 +01:00
Francisco Molina
0a2b83358c
sys/net/dsm: add missing dependencies
2022-02-21 15:15:02 +01:00
Benjamin Valentin
32c89e72ef
Revert "gnrc_ipv6_nib: consider all local interfaces when looking for address"
...
This reverts commit 8871b929ab
.
2022-02-17 19:27:48 +01:00
Francisco Molina
13bb00f863
sys/net/gnrc_sixlowpan_frag_sfr: use xtimer_is_set
2022-02-17 08:29:21 +01:00
Jens Wetterich
4dfeafcabd
cpu/native/netdev_tap: Add to netdev_register
2022-02-11 07:54:11 +01:00
3b5662e116
gnrc/netif: convert to ztimer
2022-01-28 13:38:50 +01:00
Benjamin Valentin
2682848a29
suit/transport/coap: move suit_coap_get_blockwise() to nanocoap
2022-01-27 14:42:49 +01:00
Benjamin Valentin
d680743fe9
net/coap: specify timeout in milliseconds
...
This allows for more flexibility when choosing timeouts.
2022-01-27 14:42:49 +01:00
Benjamin Valentin
3895fdc2c3
net/coap: move socket open/close out of nanocoap API
...
This allows to reuse a socket between requests and aligns the API
with the usage in SUIT.
2022-01-27 14:31:06 +01:00
José Alamos
c326be00f6
Merge pull request #16940 from chrysn-pull-requests/6lo-docs
...
net/ieee802154: Add overview documentation
2022-01-17 17:33:05 +01:00
Francisco
000e6fa99d
Merge pull request #17228 from miri64/gnrc_pktbuf_cmd/enh/add-od-dep
...
gnrc_pktbuf_cmd: add od dependency with gnrc_pktbuf_static
2022-01-17 12:10:49 +01:00
chrysn
13036c1bc4
net/iee802154 doc: Add overview / introduction documentation
...
The module previously called net_ieee802154 is renamed to capture that
it is about interacting the frames and headers, and moved "into" the new
topic in the documentation tree.
Exceptions for undocumented headers are updated.
2022-01-16 11:29:32 +01:00
d792bc2b35
Merge pull request #17516 from aabadie/pr/sys/loramac_use_new_private_network_config
...
sys/loramac: remove deprecated LORAMAC_DEFAULT_PUBLIC_NETWORK
2022-01-15 12:29:00 +01:00
Karl Fessel
2bebcb62b5
Merge pull request #17411 from kfessel/p-nib-no-minutes
...
gnrc/ipv6nib: remove the need for evtimer-minutes
2022-01-15 02:33:30 +01:00
50c5d84277
sys/net/gnrc_lorawan: use CONFIG_LORAMAC_DEFAULT_PRIVATE_NETWORK
2022-01-14 10:21:19 +01:00
Benjamin Valentin
67ef5faeed
sys/net/sock_util: make use of SOCK_HAS_IPV4
2022-01-13 18:40:12 +01:00
Karl Fessel
505ce8481b
gnrc/ipv6nib: remove the need for evtimer-minutes
...
gnrc/nib: add unitmarker to valid_untils that where min and are now ms
2022-01-13 15:17:24 +01:00
benpicco
d0868bc997
Merge pull request #16918 from jia200x/pr/gnrc_netif/refactor_init
...
gnrc_netif: move netdev initialization to ops->init
2022-01-10 17:58:45 +01:00
Jose Alamos
5f46ab72e0
net/gnrc/lorawan: adapt ops->init to handle driver initialization
2022-01-10 13:59:27 +01:00
Jose Alamos
08ec9693cd
net/lwmac: adapt ops->init to handle driver initialization
2022-01-10 13:59:26 +01:00
Jose Alamos
298f16fee7
net/gomach: adapt ops->init to handle driver initialization
2022-01-10 13:59:26 +01:00
Jose Alamos
415704fa76
net/gnrc_netif: move netdev init code to ops->init
2022-01-10 13:59:24 +01:00
Jose Alamos
e7fac9f661
net/gnrc_netif: add return values to init
2022-01-10 13:59:01 +01:00
Jose Alamos
db815aa779
ieee802154/hal: migrate to request_op and confirm_op
2022-01-10 13:57:02 +01:00
benpicco
55900e0fb5
Merge pull request #16755 from benpicco/gnrc_ipv6_nib-no_adv_router
...
gnrc_dhcpv6_client / uhcp: delay router advertisements until prefix was received
2022-01-04 13:34:32 +01:00
Benjamin Valentin
0504771c6c
sys/net/uhcp: delay router advertisements until prefix was received
2022-01-04 12:42:44 +01:00
Benjamin Valentin
a629e70357
gnrc_dhcpv6_client: delay router advertisements until prefix was received
2022-01-04 12:42:43 +01:00
Jan Romann
e29da26ea1
Merge pull request #17250 from JKRhb/dhcpv6-restart-fix
...
sys/net/dhcpv6: fix variable shadowing issue
2022-01-01 20:48:07 +01:00
Jan Romann
e185a2556d
sys/net/dhcpv6: fix variable shadowing issue
2022-01-01 18:43:13 +01:00
Karl Fessel
af13447238
gnrc/ipv6_auto_subnets: depend on xtimer
2021-12-14 22:53:01 +01:00
Karl Fessel
0a3dd441ce
net/gnrc_sock: do not include xtimer.h without xtimer module
2021-12-14 22:53:01 +01:00
benpicco
cfaa167469
Merge pull request #16598 from benpicco/sys/shell/udp
...
examples/gnrc_networking: move udp command to shell commands
2021-12-13 15:03:18 +01:00
Gunar Schorcht
8c044c0163
gnrc/ipv6_ext_opt: fix compilation with NDEBUG
2021-12-09 16:44:19 +01:00
Karl Fessel
6347dcdffc
Merge pull request #17141 from kfessel/p-ztimer-gcoap
...
net/gcoap: port to ztimer
2021-12-09 15:22:10 +01:00
Benjamin Valentin
4b9bdc61b2
gnrc_netif/lorawan: add ; after DEBUG()
2021-12-09 10:14:07 +01:00
Benjamin Valentin
cbc8251874
gnrc_tcp: add ; after DEBUG()
2021-12-08 21:09:31 +01:00
Benjamin Valentin
1db8ab4f72
sys/net/gcoap: add ; after DEBUG()
2021-12-08 20:41:21 +01:00
José Alamos
ce8cda2fd8
Merge pull request #16932 from benpicco/socket_zep-hal
...
socket_zep: port to radio HAL
2021-12-07 18:24:33 +01:00
Karl Fessel
9195a4f02b
net/gcoap: most ZITMER_USEC to ZTIMER_MSEC
2021-12-06 13:31:18 +01:00
Karl Fessel
f56eb9bb83
net/gcoap: port to ztimer_usec
2021-12-06 13:31:18 +01:00
Karl Fessel
2dd0cec4e9
net/gcoap: clean xtimer include from header
2021-12-06 13:31:18 +01:00
benpicco
f9f95534f6
Merge pull request #17333 from benpicco/gnrc/rpl-auto_init
...
gnrc/rpl: auto-init RPL if there is only a single interface
2021-12-04 11:07:01 +01:00
529cc2d9ad
Merge pull request #17329 from miri64/ieee802154/fix/resv-src
...
ieee802154 / tests/unittests: fix all-asan reported errors
2021-12-04 02:27:27 +01:00
benpicco
8be9fe73f6
Merge pull request #17297 from nmeum/pr/sock_dns_string.h
...
sock_dns: include string.h for strlen(3) function prototype
2021-12-03 19:45:36 +01:00
Benjamin Valentin
11672ac5e4
gnrc/rpl: auto-init RPL if there is only a single interface
2021-12-03 15:34:17 +01:00
Martine Lenders
1eda5b80b9
ieee802154: fix reserved source address handling
...
This fixes the handling when the source address is neither short nor
long. For the reserved address mode no PAN behavior is defined, so
rather check, if the source address is in reserved mode before trying to
read the destination PAN.
2021-12-03 11:31:06 +01:00
Marian Buschsieweke
b7269c39e8
sys/net/gnrc_pktbuf_static: fix compilation with -Wcast-align
...
Comparing the pointers as `uintptr_t` won't hurt but makes the compiler
happy.
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
b1114b0674
sys/net/gnrc/netif: use container_of()
...
Using `container_of()` to translate from `netif_t *` to the containing
`gnrc_netif_t *` adds a bit of plausibility: It will fail when `gnrc_netif_t`
stops to contain `netif_t` as member. Additionally, this silences false
positives of -Wcast-align
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
581aa6b70b
sys/net/netif: allow const in netif_iter()
...
For consistency with `gnrc_netif_iter()`, add the `const` qualifier to the
parameter of `netif_iter()`. This allows calling it on `const` pointers without
having to cast `netif_t *`, which (apart of dropping the `const` qualifier)
disables a lot of type safety checks offered by the compiler.
2021-12-03 10:12:33 +01:00
benpicco
7155fb82d0
Merge pull request #17194 from maribu/sys/net/fib
...
sys/net/fib: fix compilation with -Wcast-align
2021-12-01 16:29:00 +01:00
Marian Buschsieweke
6907bdf140
sys/net/gnrc: make cppcheck happy
2021-11-30 11:20:20 +01:00
Marian Buschsieweke
50be359a96
sys/net/gnrc: fix compilation with -Wcast-align
...
Also ensure that the alignment requirement is indeed matched.
2021-11-30 11:20:17 +01:00
Marian Buschsieweke
050b024b79
sys/net/fib: make CI happy
2021-11-30 10:27:46 +01:00
Marian Buschsieweke
9356a7d561
sys/net/fib: fix compilation with -Wcast-align
2021-11-30 10:16:39 +01:00
Sören Tempel
dc1b6d0436
sock_dns: include string.h for strlen(3) function prototype
...
Needed by the following code in `dns.c`:
e8cbc6da85/sys/net/application_layer/sock_dns/dns.c (L39-L41)
The include was probably wrongfully removed by accident in
e8cbc6da85
(CC: @miri64 ).
2021-11-30 01:12:40 +01:00
Benjamin Valentin
17fdf61cbe
ieee802154/submac: handle write of NULL buffer
...
tests/socket_zep tests for this condition, so we better handle it
gracefully instead of crashing.
2021-11-18 11:51:14 +01:00
Benjamin Valentin
fa2d9bde56
socket_zep: port to radio HAL
2021-11-18 11:51:14 +01:00
Martine Lenders
d4f7f9182b
gnrc_pktbuf_cmd: add od
dependency with gnrc_pktbuf_static
2021-11-17 15:52:44 +01:00
dba51edc69
net/uhcp[cd]: use modules to select client/server code
2021-11-09 21:42:45 +01:00
Martine Lenders
4b2ca7a702
Merge pull request #16986 from benpicco/uhcp-debug
...
sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO
2021-11-09 12:58:16 +01:00
benpicco
47029055a6
Merge pull request #8954 from zhuoshuguo/gnrc_gomach/adapt_duty_recode_para_name
...
gnrc_gomach: adapt duty recording parameters' namings.
2021-11-03 12:56:39 +01:00
chrysn
a92cdb535e
Merge pull request #16378 from chrysn-pull-requests/gcoap-handle-truncation
...
sys/net/gcoap: Use socket _buf API to recognize truncated requests
2021-10-27 08:55:52 +02:00
Karl Fessel
c9f4d11c52
Merge pull request #16966 from yarrick/net_v6
...
sys/net: Add ipv4/ipv6 pseudomodules
to ease code unification
2021-10-20 11:58:26 +02:00
Martine Lenders
44927b493f
Merge pull request #16967 from miri64/dsm/enh/peer-sync
...
dsm: rename DTLS_PEER_MAX and make it dependent on CONFIG_DTLS_PEER_MAX
2021-10-18 16:27:26 +02:00
benpicco
525fe24576
Merge pull request #16992 from miri64/dhcpv6_client/bug/fix-retrans-calc
...
dhcpv6_client: keep integers in retransmission calculations signed
2021-10-16 17:47:34 +02:00
Martine Lenders
b1b0a9b4f5
dhcpv6_client: add comment on why the division is needed
2021-10-15 17:36:13 +02:00
Martine Lenders
d844de2263
dhcpv6_client: keep integers in retransmission calculations signed
2021-10-15 17:35:46 +02:00
Benjamin Valentin
9d5808d756
gnrc/ipv6_auto_subnets: set RIO priority to ZERO
...
This is required for Linux to accept the RIO
with this patch:
2001:db8:8000::/33 via fe80::d0e7:ffff:fe46:6b52 dev tap0 proto ra metric 1024 expires 86338sec pref medium
2001:db8::/32 dev tap0 proto kernel metric 256 pref medium
before:
2001:db8::/32 dev tap0 proto kernel metric 256 pref medium
2021-10-15 15:57:59 +02:00
Benjamin Valentin
0e7b8d09d5
gnrc_ipv6_nib: fix setting RIO flags
...
We have to use NDP_OPT_RI_FLAGS_MASK, not NDP_OPT_PI_FLAGS_MASK.
This fixes flags always being 0.
2021-10-15 15:49:13 +02:00
Benjamin Valentin
35b727c7be
sys/net/uhcp: cleanup
2021-10-14 14:20:46 +02:00
Benjamin Valentin
f74c795033
sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO
...
uhcp is pretty noisy compared to DHCPv6 as INFO log level is enabled
by default.
Tone it down to LOG_DEBUG to keep the output clean.
2021-10-14 14:09:17 +02:00
benpicco
f8c8abf75d
Merge branch 'master' into gnrc_gomach/adapt_duty_recode_para_name
2021-10-13 17:36:21 +02:00
Martine Lenders
e74b54d3ae
gcoap_dtls: destroy session in _tl_send only on connection errors
2021-10-08 12:24:57 +02:00
Martine Lenders
945b05886b
dsm: rename DTLS_PEER_MAX to CONFIG_DSM_PEER_MAX
...
To make avoid confusion with tinydtls's `DTLS_PEER_MAX` and
`CONFIG_DTLS_PEER_MAX`
2021-10-08 12:15:16 +02:00
Erik Ekman
3df56d576f
sys/net: Add ipv6 pseudomodule
...
Enabled when GNRC, lwIP or OpenWSN uses IPv6
2021-10-08 10:27:22 +02:00
Martine Lenders
e804a738de
Merge pull request #16947 from miri64/gnrc_ipv6_nib/fix/queue-pkts-on-6lbr
...
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-05 14:01:17 +02:00
Martine Lenders
96eb2c5050
Merge pull request #16731 from JKRhb/dhcp-stateless
...
sys/net/dhcpv6: Add stateless DHCPv6
2021-10-05 10:13:22 +02:00
benpicco
88b495906b
Merge pull request #16936 from mtausig/update_tinyasn1
...
Update tiny-asn1 package
2021-10-05 00:04:23 +02:00
Mathias Tausig
279c584335
module/credman: Adapt to tiny-asn1 changes
2021-10-04 21:43:13 +02:00
Jan Romann
ff42d6749b
sys/net/gnrc/dhcpv6: Set stateful configuration mode
2021-10-04 21:41:50 +02:00
Jan Romann
c62d6eb834
sys/net/dhcpv6: Implement stateless DHCPv6
2021-10-04 17:40:56 +02:00
Martine Lenders
b8691842fb
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-04 17:25:36 +02:00
Francisco
193ebb51e7
Merge pull request #16913 from jia200x/pr/test/hal/l2util
...
test/ieee802154_hal: general cleanup and cosmetic fixes
2021-10-04 10:06:15 +02:00
Jose Alamos
d64f073df7
net/link_layer/l2util: initial Kconfig modeling
2021-09-30 17:30:16 +02:00
Martine Lenders
e0ac9d3f45
dns_msg: Use correct byteorder for ID
2021-09-29 13:32:12 +02:00
benpicco
a39c0e1010
Merge pull request #16750 from benpicco/gnrc_ipv6_auto_subnets
...
gnrc/ipv6_auto_subnets: relax topology requirements
2021-09-28 19:07:21 +02:00
Benjamin Valentin
6742fb8076
gnrc/ipv6_auto_subnets: relax topology requirements
2021-09-28 16:57:10 +02:00
Leandro Lanzieri
9980aa35b3
sys/net/credman: add key loading functions
...
This allows to load private and public keys encoded in DER format.
2021-09-20 08:10:59 +02:00
benpicco
ea80df1780
Merge pull request #16824 from benpicco/gnrc_netif_ipv6_wait_for_prefix
...
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
2021-09-17 14:32:53 +02:00
Martine Lenders
75c9aaceb4
Merge pull request #15946 from jia200x/pr/gnrc_lorawan_redundancy
...
net/gnrc_lorawan: implement unconfirmed uplink redundancy
2021-09-17 13:38:10 +02:00
Benjamin Valentin
4bd53e70fa
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
...
This adds a function to wait until a global address becomes available.
2021-09-17 13:00:14 +02:00
benpicco
abeb9c871d
Merge pull request #16745 from jia200x/pr/gnrc_netif_pktq/fix_deschedule
...
gnrc_netif_pktq: schedule immediately if timer us is equal to zero
2021-09-15 00:16:42 +02:00
Jean Pierre Dudey
cd728e08c6
Merge pull request #16764 from brummer-simon/gnrc_tcp-experimental_dynamic_MSL
...
gnrc_tcp: experimental feature "dynamic msl"
2021-09-13 10:36:54 +02:00
Karl Fessel
be28c537b3
gnrc/sock: recv avoid spinning xtimer
2021-09-09 22:41:39 +02:00
MrKevinWeiss
99d43a7223
drivers/netdev,sys/net: Add kconfig for netdev
2021-09-08 12:40:31 +02:00
benpicco
86f42068ae
Merge pull request #16823 from jia200x/pr/submac/fix_rx_continuous
...
ieee802154/submac: fix leftovers of #16746
2021-09-07 21:28:11 +02:00
Jose Alamos
8e6895352e
ieee802154/submac: add missing state transitions if radio doesn't stay in RX
2021-09-07 16:09:22 +02:00
Benjamin Valentin
459f3987d0
gnrc: select gnrc_netif if netdev_default is selected
...
A generic application might select netdev_default instead of
gnrc_netdev_default to pull in the default network interface.
So pull in gnrc_netif if netdev_default is selected with GNRC.
2021-09-06 15:43:40 +02:00
chrysn
7381fb638a
Merge pull request #16113 from chrysn-pull-requests/cord-extraargs
...
sys/net/app/cord: Support the addition of extra registration arguments
2021-09-04 16:43:16 +02:00
Simon Brummer
1870e8a3ce
gnrc_tcp: experimental feature "dynamic msl"
2021-09-04 07:37:53 +02:00
benpicco
c98c488559
Merge pull request #16746 from jia200x/pr/hal/fb_lock
...
ieee802154/submac: reimplement using FSM
2021-09-03 18:13:58 +02:00
Jose Alamos
8f97f73453
ieee802154/submac: reimplement using FSM
2021-09-03 15:00:47 +02:00
chrysn
2e70f29d4f
sys/net/gcoap: Use socket _buf API to recognize truncated requests
...
Closes: https://github.com/RIOT-OS/RIOT/issues/14167
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-09-02 16:49:46 +02:00
chrysn
0ff56f284d
sys/net/app/cord: Support the addition of extra registration arguments
2021-09-02 16:40:19 +02:00
benpicco
9ac9b41a57
Merge pull request #16536 from benpicco/gnrc_ipv6_nib_subnets
...
gnrc_ipv6_simple_subnets: auto-configuration for nested subnets on a simple tree topology
2021-09-02 16:24:53 +02:00
Benjamin Valentin
b208db0f27
gnrc_ipv6_auto_subnets: auto-configuration for nested subnets
...
If we get a large (e.g. /62) prefix from e.g. DHCPv6, we can split it
into subnets automatically to configure downstream interfaces.
This allows for automatic configuration of daisy-chained nodes or
nodes connected in a tree topology.
To enable the feature, a new pseudo-module `gnrc_ipv6_auto_subnets` is
provided.
2021-09-02 15:35:14 +02:00
Benjamin Valentin
f4828cc7ae
gnrc_ipv6_nib: add hook for Prefix Information Option
2021-09-02 15:35:14 +02:00
Martine Lenders
0850061124
Merge pull request #16728 from JKRhb/dhcp-refactor
...
sys/net/dhcpv6: Refactor DHCPv6 client
2021-09-01 16:47:25 +02:00
Jan Romann
507d39c054
sys/net/dhcpv6: Reformat parsing of IA_NA
2021-09-01 01:24:56 +02:00
Martine Lenders
eace9495b4
Merge pull request #16729 from benpicco/_nib_offl_remove_prefix
...
gnrc/nib: consolidate prefix removal code in _nib_offl_remove_prefix()
2021-08-26 19:17:21 +02:00
Benjamin Valentin
10887ebb19
gnrc/nib: consolidate prefix removal code in _nib_offl_remove_prefix()
2021-08-25 17:23:21 +02:00
Hauke Petersen
f5f28347c2
net/gnrc/rpl: add hooks for nimble_rpble
2021-08-24 11:33:13 +02:00
benpicco
3d0e5509dc
Merge pull request #16734 from benpicco/_handle_rio-ltime
...
gnrc_ipv6_nib: handle route information option with ltime = 0
2021-08-24 10:20:02 +02:00
Jose Alamos
ddc9c7c686
ieee802154/radio_hal: detach hal descriptor from driver
2021-08-18 15:24:10 +02:00
Jan Romann
18dd056f8a
sys/net/dhcpv6: Add missing IA_NA IS_USED check
2021-08-18 02:03:56 +02:00
Jan Romann
192e09b7bf
sys/net/dhcpv6: Refactor update of leases
2021-08-18 02:00:12 +02:00
Jan Romann
d0dd12cf25
sys/net/dhcpv6: Refactor parsing of IA_PD
2021-08-18 02:00:11 +02:00
Jan Romann
1daa4b6e30
sys/net/dhcpv6: Refactor message composition
2021-08-18 02:00:08 +02:00
Jan Romann
bbce04f854
sys/net/dhcpv6: Refactor mrd calculation
2021-08-18 02:00:08 +02:00
Jose Alamos
e9a2f186ba
gnrc_netif_pktq: send schedule msg directly if dequeue timer is zero
2021-08-16 14:42:56 +02:00
Simon Brummer
6fba0d970c
gnrc_sock_tcp: integrate gnrc_tcp
2021-08-14 21:27:34 +02:00
benpicco
a76bc58d9b
Merge pull request #16738 from brummer-simon/gnrc_tcp-handle_zero_size_buffers
...
gnrc_tcp: handle zero size buffers
2021-08-14 18:44:29 +02:00
benpicco
6d7fdfccd6
Merge pull request #16736 from brummer-simon/gnrc_tcp-document_internal_defines
...
gnrc_tcp: Document internal defines
2021-08-14 17:42:58 +02:00
Simon Brummer
11d73fbf30
gnrc_tcp: handle zero size buffers
2021-08-14 17:04:57 +02:00
benpicco
84413a3e6e
Merge pull request #16735 from brummer-simon/gnrc_tcp-add_GNRC_TCP_NO_TIMEOUT
...
gnrc_tcp: Add GNRC_TCP_NO_TIMEOUT
2021-08-14 17:00:11 +02:00
benpicco
6eacb41e23
Merge pull request #16664 from jia200x/pr/gnrc/lorawan/random
...
net/gnrc_lorawan: fix pick channel
2021-08-14 16:35:14 +02:00
Simon Brummer
41bafdd928
gnrc_tcp: Document internal defines
2021-08-14 15:49:42 +02:00
Simon Brummer
6b24601ee9
gnrc_tcp: Add GNRC_TCP_NO_TIMEOUT
2021-08-14 15:28:14 +02:00
Benjamin Valentin
0ead10e79a
gnrc_ipv6_nib: handle route information option with ltime = 0
2021-08-13 21:35:48 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
benpicco
1fd645ebcd
Merge pull request #16725 from JKRhb/cocinelle-fixes
...
ci: fix coccinelle warnings
2021-08-12 23:15:37 +02:00
Martine Lenders
febb07c64e
Merge pull request #16704 from fjmolinas/pr_block_finish_return_more
...
sys/net/nanocoap: block_finish returns if more are expected
2021-08-12 19:16:46 +02:00
Jan Romann
e7a24fe136
gnrc_netif/lorawan: fix ENABLE_DEBUG definition
2021-08-12 17:30:46 +02:00
Jan Romann
441afca9fe
drivers/nrf24l01p_ng: fix ENABLE_DEBUG definitions
2021-08-12 17:30:45 +02:00
Jan Romann
ad0096cde6
sys/net/dhcpv6: Refactor IA_NA implementation
2021-08-11 22:19:59 +02:00
Martine Lenders
f2f6700865
Merge pull request #16228 from JKRhb/dhcp-ia-na
...
sys/net/dhcpv6: Add IA_NA support to the DHCPv6 client
2021-08-11 20:50:01 +02:00
Jan Romann
234a71870a
sys/net/dhcpv6: Add IA_NA implementation
2021-08-11 19:15:35 +02:00
Martine Lenders
2d7c613948
tests/gnrc_dhcpv6_relay: initial import
2021-08-11 14:30:37 +02:00
Martine Lenders
4afc65688f
dhcpv6_relay: initial import of a lightweight DHCPv6 relay agent
2021-08-11 13:19:06 +02:00
Martine Lenders
6da2f0fab3
Merge pull request #16669 from miri64/sock_dns/enh/factor-out-msg-parsing
...
sock_dns: factor out message parsing and composition
2021-08-11 12:43:26 +02:00
Martine Lenders
de3e5f964a
Merge pull request #16671 from benpicco/gnrc/nib-_nib_onl_get-fix
...
gnrc/nib: gnrc_ipv6_nib_get_next_hop_l2addr(): only assume neighbor cache entries to always be on-link
2021-08-11 12:17:38 +02:00
Martine Lenders
7920ab2b95
dns_msg: make parsing input buffer const
2021-08-11 11:55:29 +02:00
Martine Lenders
e8cbc6da85
dns: move message parsing and composition to own module
2021-08-11 11:55:29 +02:00
Martine Lenders
c86bd7454c
Merge pull request #16557 from benpicco/gnrc_ipv6_nib-fib_on-link
...
gnrc_ipv6_nib: consider largest prefix match when deciding if host on-link
2021-08-09 18:53:40 +02:00
Benjamin Valentin
452500b3eb
gnrc_ipv6_nib: consider largest prefix match when deciding if host on-link
...
If the fib contains a route to a subnet via another host, it can not
be on-link.
Consider fib entries when deciding whether an address is on-link.
If a route via another host is a stronger match than an on-link
prefix, the address must be off-link.
2021-08-09 16:57:14 +02:00
Benjamin Valentin
f4fa197951
gnrc_netif: properly initialize address in gnrc_netif_ipv6_add_prefix()
...
Initialize addr with 0 first.
Otherwise if prefix is < 64 there will be random bits of stack memory
in the bits of the address that are neither touched by ipv6_addr_set_aiid()
nor ipv6_addr_init_prefix().
2021-08-09 16:50:21 +02:00
Francisco Molina
9195f772ad
sys/net/nanocoap: block_finish returns if more are expected
2021-08-06 09:29:03 +02:00
Martine Lenders
5d59065b09
gcoap: provide buffer version of gcoap_req_init()
...
This simplifies the usage of `gcoap` with modules such as `uri_parser`
greatly.
2021-08-05 13:31:07 +02:00
Martine Lenders
1b0152bd73
Merge pull request #16709 from leandrolanzieri/pr/net/netif_get_by_name_buf
...
net/netif: add function to get interface by name from a buffer
2021-08-04 19:37:55 +02:00
Leandro Lanzieri
d8cf157b26
sys/net/netif: add netif_get_by_name_buffer function
2021-08-04 18:12:56 +02:00
José Alamos
39d27c2f7c
Merge pull request #16533 from jia200x/pr/submac_fixes
...
ieee802154/submac: fix initialization code
2021-08-04 16:53:58 +02:00
José Alamos
91fe57a4d1
Merge pull request #16654 from jia200x/pr/gnrc_lorawan_tests
...
tests/gnrc_lorawan: add initial tests
2021-08-04 10:33:33 +02:00
Martine Lenders
8492bd7b12
Merge pull request #16568 from benpicco/gnrc_ipv6_nib-rio
...
gnrc_ipv6_nib: handle route information option and add config to add to final RAs
2021-08-03 15:44:01 +02:00
Benjamin Valentin
71ae768e56
net/gnrc/ipv6/nib: add option to include RIO with final RA
...
Sending a RA with ltime = 0 does not get us added to the default router
list, but the options (and therefore the RIO) are still parsed.
This even appears to work with Linux as a receiver.
2021-08-02 21:44:55 +02:00
Jose Alamos
179a2c2780
net/gnrc_lorawan: fix random_uint32_range upper bound
2021-08-02 10:28:17 +02:00
Martine Lenders
6b5a1818f1
Merge pull request #16672 from benpicco/gnrc_util_conf_prefix
...
gnrc_netif: add gnrc_netif_ipv6_add_prefix() & helper functions
2021-07-29 18:01:26 +02:00
Benjamin Valentin
6e3c09eb78
sys/net/uhcp: make use of gnrc_netif_ipv6_add_prefix()
2021-07-29 16:04:28 +02:00
Benjamin Valentin
a18f123ff1
gnrc_dhcpv6_client: make use of gnrc_netif_ipv6_add_prefix()
2021-07-29 16:04:28 +02:00
Benjamin Valentin
d99972791a
gnrc/rpl: add gnrc_rpl_configure_root() convenience function
2021-07-29 16:04:28 +02:00
Benjamin Valentin
3dad587307
gnrc/rpl: allow const dodag ID
2021-07-29 16:04:28 +02:00
Benjamin Valentin
b90c6ed373
gnrc_netif: add gnrc_netif_ipv6_add_prefix()
2021-07-29 16:04:28 +02:00
Martine Lenders
485eb741e2
Merge pull request #16644 from benpicco/gnrc_ipv6_nib-evtimer_del-fix
...
gnrc_ipv6_nib: don't stop sending router solicitations when receiving last router advertisement from router
2021-07-29 12:23:14 +02:00
Martine Lenders
4b7ef70e66
gcoap: fix socket type naming
...
The `coap_socket_t` and `coap_socket_type_t` types are used by gCoAP
only and the `coap_` prefix is usually used to namespace the `nanocoap`
module's API. This makes it confusing to locate the types in question.
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2021-07-27 22:37:04 +02:00
Benjamin Valentin
62308d200c
gnrc_ipv6_nib: don't stop sending router solicitations on last RA
...
When the default router was removed or could not be added, `dr` will
be NULL.
In this case, don't cease sending router solicitations - we still don't
have a default router.
2021-07-26 23:56:53 +02:00
Karl Fessel
238c759899
dhcpv6_client: mrd calculation fixed for renew and rebind
...
mrd calculation for dhcp-renew was wrong this fixes it
and the logic for dhcp rebind mrd handling
(try rebind if ther is mrd)
see issue #16677
2021-07-23 17:54:55 +02:00
Karl Fessel
fe9a6d7d84
gnrc_dhcpv6_client: dhcp-helper-function return valid seconds left
...
dhcpv6_client_prefix_valid_until returned the valid timestamp
this fixes it according to the documentation given in
/sys/include/net/dhcpv6/client.h
to return seconds left
2021-07-23 17:53:59 +02:00
Martine Lenders
fc1bd005de
Merge pull request #16673 from miri64/netutils/fix/netif_get_by_name
...
netutils: get interface by name rather than ID
2021-07-23 15:51:15 +02:00
Martine Lenders
81c927f80a
netutils: get interface by name rather than ID
...
The zone ID part in a host part is the name of the network interface
(which by chance is the string representation of the ID with GNRC), not
the ID.
2021-07-22 17:26:47 +02:00
Benjamin Valentin
12a0d481dc
gnrc_ipv6_nib: handle route information option
2021-07-22 15:54:46 +02:00
Benjamin Valentin
5ad58b152a
gnrc_ipv6_nib: make use of _nib_onl_nc_get()
2021-07-22 13:37:12 +02:00
Benjamin Valentin
c189ed5d1b
gnrc_ipv6_nib: add _nib_onl_nc_get()
2021-07-22 13:37:11 +02:00
Benjamin Valentin
11e9b7c08f
gnrc_ipv6_nib: only consider NC in gnrc_ipv6_nib_get_next_hop_l2addr()
...
Consider the following: A node tries to forward a packet to another
host for which it does not know the route yet. It assumes it to be
on-link and starts a neighbor solicitation, putting the node address
in the destinatio cache.
Later the route is known (via a second hop) but the host is still in
the NIB.
The result is that gnrc_ipv6_nib_get_next_hop_l2addr() ends up in the
"nib: %s is in NC or on-link, start address resolution" case and does
not attempt to resolve the route.
This results in the host remaining unreachable even though now a route
is present.
2021-07-22 13:36:53 +02:00
Benjamin Valentin
ac0b36384f
gnrc_ipv6_nib: improve debug output
2021-07-22 13:18:55 +02:00
Martine Lenders
6493241ed4
dhcpv6_client: add ztimer backend support
2021-07-21 16:28:39 +02:00
Martine Lenders
b5d9f78cbd
dhcpv6_client: port timeout mechanism to event_timeout
2021-07-21 16:28:39 +02:00
Martine Lenders
805952c5ce
dhcpv6_client: use event_timeout instead of xtimer
2021-07-21 16:28:37 +02:00
Martine Lenders
ed9a682e49
dhcpv6_client: set timer by unit rather than integer width
2021-07-21 16:27:54 +02:00
Martine Lenders
d1613da617
dhcpv6_client: use milliseconds rather than microseconds as base unit
2021-07-21 16:27:54 +02:00
Martine Lenders
eb577c933e
dhcpv6_client: move timer setting to their own functions
2021-07-21 16:27:53 +02:00
Martine Lenders
bf764fd700
sock_dns: move module to directory named like module
2021-07-21 14:58:04 +02:00
benpicco
c4bc40f03b
Merge pull request #16658 from miri64/dhcpv6_client/enh/optional-ia_pd
...
dhcpv6_client: make IA_PD an optional module
2021-07-21 14:36:34 +02:00
Martine Lenders
38d14b6335
dhcpv6_client: make IA_PD an optional module
...
Prefix delegation used to be the only supported feature of our DHCPv6
client, but by now it also supports MUD, DNS recursive name servers and
IA_NA is on the horizon. So it makes sense to make IA_PD an optional
module like all those other features are as well.
2021-07-21 11:37:29 +02:00
Benjamin Valentin
da7d3779bf
examples/gnrc_networking: move udp command to shell commands
...
The `udp` command is a valuable debugging tool that is also useful
outside of the gnrc_networking example.
To enable easy sending of udp messages in other applications during
development, move the `udp` command to the shell module and introduce
the `gnrc_udp_cmd` pseudo-module to enable it.
2021-07-21 11:19:47 +02:00
Martine Lenders
7793098ed8
Merge pull request #16634 from benpicco/gnrc_netif_parse_hostname
...
netutils: add netutils_parse_hostname()
2021-07-21 10:11:25 +02:00
Jose Alamos
df97f348e2
net/gnrc_lorawan: implement uplink redundancy
...
This commit implements uplink redundancy in GNRC LoRaWAN. Uplink
redundancy is used to retransmit unconfirmed uplink frames. The
retransmission stops when either a downlink message is received or the
number of uplink retransmissions is reached.
This functionality doesn't affect confirmed uplinks.
2021-07-21 03:51:47 +02:00
Jose Alamos
02151deae4
net/loramac: add redundancy configuration parameter
2021-07-21 03:51:46 +02:00
Jose Alamos
4692e9e376
net/gnrc_lorawan: fix dependency resolution
2021-07-21 03:41:33 +02:00
Benjamin Valentin
3081eeb556
netutils: add netutils_get_ipv6()
2021-07-20 22:44:39 +02:00
Martine Lenders
70f3723fab
Merge pull request #16659 from miri64/gnrc_dhcpv6_client_mud_url/cleanup/rename
...
gnrc_dhcpv6_client_mud_url: rename to dhcpv6_client_mud_url
2021-07-20 17:22:17 +02:00
Martine Lenders
d9be29318d
gnrc_dhcpv6_client_mud_url: rename to dhcpv6_client_mud_url
...
There is no real reason for that pseudo-module to use the `gnrc_`
prefix. Neither does it need GNRC-components (except, but optionally, as
a network stack of course), nor is it implemented with in the GNRC
network stack.
2021-07-20 15:30:34 +02:00
Martine Lenders
a0b9eb064c
gnrc_dhcpv6_client_simple_pd: fix old doc and names
2021-07-20 14:42:07 +02:00
Leandro Lanzieri
9ca9efd15b
Merge pull request #16640 from jia200x/pr/revert/rx_symbol
...
net/lorawan: Revert #16604 and fix NETOPT_RX_SYMBOL_TIMEOUT documentation
2021-07-14 16:42:38 +02:00
Martine Lenders
5c3c1b6a5f
gnrc_sock: imply end-point netif only if unset
2021-07-14 10:29:09 +02:00
Jose Alamos
f7dd532dd3
Revert "net/gnrc_lorawan: use uint8_t for NETOPT_RX_SYMBOL_TIMEOUT"
...
This reverts commit e791a86971
.
2021-07-13 21:14:03 +02:00
Simon Brummer
873d1fe378
gnrc_tcp: align with sock_tcp
2021-07-13 20:32:14 +02:00
Jose Alamos
ee3fcaf8c2
ieee802154/submac: check error codes
2021-07-12 18:20:50 +02:00
Jose Alamos
4bd77183a3
ieee802154/submac: call confirm_set_trx_state after initialization
2021-07-12 16:47:15 +02:00
Jose Alamos
9d754a6ed4
ieee802154/submac: fix default SubGHz page
2021-07-12 16:47:15 +02:00
Jose Alamos
5e3f7e35f1
gnrc_netif/auto_init_*: avoid explicit cast to netdev
2021-07-09 11:35:21 +02:00
Jose Alamos
b483d1f809
netdev_test: avoid explicit cast to netdev
2021-07-09 11:35:19 +02:00
Jose Alamos
d33008483e
gnrc_netif_ieee802154: avoid explicit cast to netdev
2021-07-09 11:35:19 +02:00
Jose Alamos
fef46029be
link_layer/lwmac: avoid explicit cast to netdev
2021-07-09 11:35:18 +02:00
Jose Alamos
5de141227b
link_layer/gomach: avoid explicit cast to netdev
2021-07-09 11:35:18 +02:00
Francisco
79ee4fd489
Merge pull request #16459 from brummer-simon/gnrc_tcp-rewrite_passive_open
...
gnrc_tcp: rewrite passive open
2021-07-08 12:08:52 +02:00
Simon Brummer
88a0273434
gnrc_tcp: add listen/accept
2021-07-08 09:40:02 +02:00
benpicco
eacbaf5295
Merge pull request #15549 from janosbrodbeck/gcoap/pr/dtls
...
net/gcoap: support DTLS
2021-07-07 15:34:55 +02:00
János Brodbeck
23a8659bdf
net/gcoap: support DTLS
2021-07-07 14:45:30 +02:00
János Brodbeck
5567f13258
net/dtls/dsm: add DTLS session management module
2021-07-07 14:45:28 +02:00
José Alamos
ed1692033f
Merge pull request #16617 from jia200x/pr/gnrc_lorawan_fix_release
...
gnrc_lorawan: fix gnrc_pktbuf_release_error (introduced by #16080 )
2021-07-07 10:15:33 +02:00
Jose Alamos
13274da74a
gnrc_lorawan: fix gnrc_pktbuf_release_error
2021-07-06 14:14:27 +02:00
Francisco
daeac91aea
Merge pull request #16604 from jia200x/pr/lora/fix_rx_timeout_size
...
netdev/lora: fix size of NETOPT_RX_SYMBOL_TIMEOUT
2021-07-06 12:15:00 +02:00
Jose Alamos
e791a86971
net/gnrc_lorawan: use uint8_t for NETOPT_RX_SYMBOL_TIMEOUT
2021-07-01 11:59:39 +02:00
Martine Lenders
c5a1012695
Merge pull request #16596 from JKRhb/aac-flags
...
sys/net/gnrc/netif: Make aac_mode a flag field
2021-06-30 13:29:44 +02:00
Jan Romann
672a86d58e
sys/net/gnrc/netif: Make aac_mode a flag field
2021-06-29 19:06:22 +02:00
Kevin "Tristate Tom" Weiss
25c871ed9a
Merge pull request #16576 from jia200x/pr/netdev/migrate_dst_filter
...
ieee802154: migrate `netdev_ieee802154_dst_filter` to a common ieee802154
2021-06-29 10:50:08 +02:00
Vera Clemens
b0f4781e15
net/emcute: Allow RETAIN flag to be set on incoming PUBLISHs
2021-06-25 18:32:53 +02:00
Kevin "Tristate Tom" Weiss
d9973d4bf8
Merge pull request #16586 from jia200x/pr/fix_gnrc_lorawan_psdu_null
...
gnrc_lorawan: fix undefined state when PSDU is NULL
2021-06-25 13:42:39 +02:00
Kevin "Tristate Tom" Weiss
05b61e84ae
Merge pull request #16584 from jia200x/pr/fix_gnrc_lorawan_memory_leak
...
gnrc_netif/lorawan: drop netif header on send
2021-06-25 10:25:01 +02:00
Martine Lenders
4deb15cb6f
dhcpv6_client: add DNS recursive name server option handling
...
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2021-06-24 16:01:59 +02:00
Jose Alamos
a90e5e6fc4
gnrc_lorawan: update gnrc_lorawan_radio_rx_done function
2021-06-24 15:56:23 +02:00
Jose Alamos
71ddd3bd61
gnrc_lorawan: fix undefined state when PSDU is NULL
2021-06-24 15:51:04 +02:00
Jose Alamos
5808a16f23
gnrc_netif/lorawan: drop netif header on send
2021-06-24 15:21:05 +02:00
Jose Alamos
8f2be7b486
ieee802154: add ieee802154_dst_filter
2021-06-23 16:44:07 +02:00
Martine Lenders
270ea83c0f
Merge pull request #16531 from benpicco/drivers/slipdev-l2
...
drivers/slipdev: report NETOPT_ADDRESS to simulate l2 address
2021-06-22 20:15:31 +02:00
Martine Lenders
23fef51cae
Merge pull request #16569 from benpicco/gnrc_ipv6_nib-all_ifs
...
gnrc_ipv6_nib: consider all local interfaces when looking for address
2021-06-22 16:01:52 +02:00
Benjamin Valentin
8871b929ab
gnrc_ipv6_nib: consider all local interfaces when looking for address
...
If a node has two interfaces A with 2001:16b8:45b5:9af8:5884:3bff:fe4f:a903
and B with 2001:16b8:45b5:9afa:5884:3bff:fe4f:a902 and receives a neighbor
solicitation on A for an address configured on interface B, answer the neighbor
solicitation instead of bailing out with
> Target address 2001:16b8:45b5:9afa:5884:3bff:fe4f:a902 is not assigned
> to the local interface
2021-06-22 15:05:09 +02:00
benpicco
cf688774e5
Merge pull request #16527 from benpicco/gnrc_netif_create-race
...
sys/net/gnrc/netif: make gnrc_netif_create() blocking to avoid race condition
2021-06-21 15:48:18 +02:00
Benjamin Valentin
d7c377f400
sys/net/gnrc/netif: make gnrc_netif_create() blocking
...
Make gnrc_netif_create() block until the interface is created and
registered.
This avoids a race condition where after calling gnrc_netif_init_devs()
not all interfaces are available yet when iterating through the list
of interfaces with gnrc_netif_iter().
2021-06-21 14:04:06 +02:00
Benjamin Valentin
c1eead925d
drivers/slipdev: register with netdev
2021-06-21 12:42:03 +02:00
Benjamin Valentin
9fbab8f0f8
drivers/slipdev: report NETOPT_ADDRESS to simulate l2 address
...
A lot of things break if `GNRC_NETIF_FLAGS_HAS_L2ADDR` is not set.
In order to handle router advertisements and auto-configureation,
generate a faux l2 address based on the netdev ID.
2021-06-21 12:42:03 +02:00
Benjamin Valentin
68afd9d900
gnrc_ndp: add route information option
2021-06-18 00:13:08 +02:00
Benjamin Valentin
f5d5ff3794
gnrc/nib: honor CONFIG_GNRC_IPV6_NIB_ADV_ROUTER option
...
This option was unused before, honor it to make it possible to start
with router advertisements disabled and enable them at run time.
The defaults remain unchanged by that.
2021-06-17 18:45:38 +02:00
Benjamin Valentin
e74ba8f92d
gnrc/nib: don't define _set_rtr_adv() twice
...
It's already defined in `_nib-router.h`, defining it to no-op
in `_nib-6lr.h` makes it impossible to run-time enable advertisements
on non 6lo nodes.
2021-06-17 18:45:38 +02:00
Martine Lenders
7cad799afe
Merge pull request #15468 from jia200x/pr/rh/rev.13.11
...
ieee802154/hal: adapt frame filter and source address matching changes
2021-06-17 16:18:57 +02:00
Leandro Lanzieri
ae81b808a1
Merge pull request #16080 from jia200x/pr/gnrc_lorawan_netif
...
gnrc_lorawan: encode LoRaWAN port in netif header
2021-06-17 11:30:09 +02:00
Jose Alamos
7d14fb3571
ieee802154/hal: remove set_rx_mode
2021-06-17 10:07:43 +02:00
Jose Alamos
6d64b537ef
ieee802154/hal: remove set_hw_addr_filter
2021-06-17 10:07:43 +02:00
Francisco
a20790b0ef
Merge pull request #16530 from benpicco/gnrc_dhcpv6_client_6lbr-generic
...
gnrc_dhcpv6_client_6lbr: choose downstream if as !upstream
2021-06-17 08:37:30 +02:00
Francisco
629cecb625
Merge pull request #14558 from jia200x/pr/gnrc_lorawan_rtt_support
...
gnrc_lorawan: add support for RTT (ztimer)
2021-06-17 08:34:59 +02:00
Hauke Petersen
7c6b72d3b4
net/gnrc/rpl: use ztimer_msec if available
2021-06-16 20:39:32 +02:00
Jose Alamos
dca0b366ac
gnrc_lorawan: drop frame if port exceeds max app port
2021-06-16 14:50:48 +02:00
Jose Alamos
9dce6eba14
ieee802154: add Auto ACK compile time config
2021-06-16 14:19:39 +02:00
Jose Alamos
7343c1c503
gnrc_netif_lorawan: add netif hdr support
2021-06-16 13:18:04 +02:00
Jose Alamos
dfacff9568
gnrc_lorawan: add support for RTT
2021-06-16 13:13:37 +02:00
Jose Alamos
2f680eaf01
gnrc_lorawan: remove xtimer and msg dependency
...
This commit removes the dependency to xtimer and RIOT messages.
This step is required to use other sources of events (e.g event_queue)
and timers (RTT)
2021-06-16 13:03:28 +02:00
benpicco
c7d12733ea
Merge pull request #16523 from benpicco/boards/same54-xpro-lock_eui
...
boards: lock EUI provider to interface type
2021-06-15 16:16:12 +02:00
Benjamin Valentin
056dcd8ae1
gnrc_dhcpv6_client_6lbr: choose downstream if as !upstream
2021-06-15 15:35:10 +02:00
Martine Lenders
35e40ce245
Merge pull request #16548 from benpicco/gnrc_ipv6_nib-nce_switch
...
gnrc_ipv6_nib: get node from proper interface
2021-06-15 12:00:42 +02:00
Leandro Lanzieri
fee045d3e9
Merge pull request #16515 from fabian18/ieee802154_security_kconfig
...
Kconfig: expose IEEE 802.15.4 Security to Kconfig
2021-06-15 11:21:41 +02:00
Benjamin Valentin
ae4165b374
gnrc_ipv6_nib: get node from proper interface
...
If we switch the interface in gnrc_ipv6_nib_get_next_hop_l2addr()
we must also re-get the nib entry from the 'proper' interface.
Otherwise we will always find the host unreachable on the 'wrong'
interface.
2021-06-14 16:56:15 +02:00
Benjamin Valentin
2467c84634
drivers/ethos: enable multiple instances
2021-06-11 12:31:37 +02:00
Benjamin Valentin
118e08607a
net/eui_provider: prohibit use of NETDEV_ANY for EUI device type
...
The EUI provider function only gets the index of a device within it's
device type.
Using NETDEV_ANY with two devices of different type causes the EUI
provider to be used for both (since both interfaces are index 0 of
their type).
To prevent this, require EUI providers to be locked to an interface type.
2021-06-08 14:30:40 +02:00
Benjamin Valentin
d2b6f79143
gnrc_ipv6_nib: consider all prefixes when deciding on-link next hop
...
Consider the following configuration:
nib prefix
2001:16b8:4569:88fc::/62 dev #7 expires 7081 sec deprecates 3481 sec
2001:16b8:4569:88fe::/63 dev #6
If `_on_link()` stops at the first match, a packet received from #7 with a
destination in the downstream subnet in #6 would always be sent back via #7
if this happens to be the first entry in the list.
Instead, consider all prefixes and return the one that is the closest match.
2021-06-07 12:58:42 +02:00
János Brodbeck
2e523bf101
net/gcoap: change return type from gcoap_req_send() to ssize_t
2021-06-04 17:15:04 +02:00
Fabian Hüßler
93759a747b
ieee802154_security: adapt to Kconfig
2021-06-03 08:38:25 +02:00
Fabian Hüßler
d09ca43a84
Kconfig: Expose ieee802154 security configuration
2021-05-31 10:32:01 +02:00
Jnae
b287d120ff
at86rf215: timestamp counter for rx frames
2021-05-12 15:27:36 +02:00
Martine Lenders
4b4eaf3b76
gnrc_ipv6_nib: fix acquire race on gnrc_ipv6_nib_get_next_hop_l2addr()
...
When two threads use `gnrc_ipv6_nib_get_next_hop_l2addr()` to determine
a next hop (e.g. when there is both an IPv6 sender and a 6LoWPAN
fragment forwarder), a race condition may happen, where one thread
acquires the NIB and the other acquires the network interface resulting
in a deadlock. By releasing the NIB (if acquired) before trying to
acquire the network interface and re-acquiring the NIB after the network
interface is acquired, this is fixed.
2021-05-05 17:48:24 +02:00
Leandro Lanzieri
d36628d37e
Merge pull request #16183 from Ollrogge/aes_pr
...
sys/crypto: Enable support for AES-192, AES-256
2021-05-05 09:19:12 +02:00
Ollrogge
427d2bd06e
sys/crypto: Enable support for AES-192, AES-256
2021-05-03 17:34:49 +02:00
benpicco
2b6454a2d7
Merge pull request #16106 from fabian18/ieee802154_security_small_bugfix_and_stricter_names
...
net/ieee802154_security: small bugfix and stricter names
2021-05-03 11:29:43 +02:00
Benjamin Valentin
d611a264fd
drivers/cc2420: register with netdev
2021-04-27 17:37:52 +02:00
Fabian Hüßler
346f92f663
sys/net/link_layer/ieee802154: stricter names for security types
...
stricter prefixing of security related types and constants with
"ieee802154_sec_"
2021-04-27 08:54:19 +02:00
Fabian Hüßler
9390b3072b
sys/net/link_layer/ieee802154: add missing const
2021-04-27 08:54:19 +02:00
Fabian Hüßler
1f0c62fbc8
sys/net/link_layer/ieee802154: move _set_key _sec_ecb _sec_cbc together
2021-04-27 08:54:19 +02:00
Fabian Hüßler
7036c2b9ee
sys/net/link_layer/ieee802154: fix small typos
2021-04-27 08:54:19 +02:00
Fabian Hüßler
43f1470abc
sys/net/link_layer/ieee802154: fix small copy paste bug
2021-04-27 08:54:19 +02:00
Marian Buschsieweke
19d92cb455
sys/net/gnrc/Makefile.dep: split out of sys/Makefile.dep
2021-04-23 20:29:38 +02:00
Hauke Petersen
75dbf65256
net/gnrc/sixlowpan/ctx: use ztimer if available
2021-04-16 11:38:54 +02:00
Martine Lenders
e3f398e3d3
Merge pull request #16279 from brummer-simon/gnrc_tcp-fix_data_race_on_status
...
gnrc_tcp: fix data race on fsm status
2021-04-06 15:53:08 +02:00
Simon Brummer
247f4d52bc
gnrc_tcp: fix warnings from static-tests
2021-04-06 14:13:34 +02:00
Simon Brummer
458cfb9994
gnrc_tcp: fix data race on fsm status
2021-04-04 17:47:53 +02:00
Leandro Lanzieri
62fb9ad69f
net/sock/dtls: allow to register multiple credentials into a sock
2021-04-01 09:47:36 +02:00
Leandro Lanzieri
d7440ce1e3
net/sock/dtls: allow to set PSK Identity hint
2021-04-01 09:47:36 +02:00
efdaf9225f
sys/net/gnrc: disable sx126x auto init with loramac
2021-03-30 19:03:34 +02:00
bede0cd98c
sys/net/auto_init: add sx126x auto_init logic
2021-03-30 16:12:40 +02:00
Marian Buschsieweke
bcc899f2db
Merge pull request #16100 from maribu/netopt_tx_end_irq
...
sys/net/netopt: make NETOPT_TX_END_IRQ and friends read-only
2021-03-22 21:17:45 +01:00
José Alamos
c5d620add8
Merge pull request #16206 from akshaim/lorawan-netif_dr_fix
...
gnrc_netif_lorawan: Validate DR
2021-03-22 11:03:30 +01:00
Marian Buschsieweke
80d56488cc
sys/net/gnrc/netif: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if the needed events are supported (with DEVELHELP).
2021-03-22 08:15:52 +01:00
Marian Buschsieweke
ff08139263
sys/net/gnrc/lwmac: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if those are supported (with DEVELHELP).
2021-03-22 08:14:28 +01:00
Marian Buschsieweke
94e0ef47c7
sys/net/gnrc/gomach: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if those are supported (with DEVELHELP).
2021-03-22 08:14:27 +01:00
Leandro Lanzieri
99c7ec57cf
Merge pull request #15943 from jia200x/pr/gnrc_lorawan_channel_mask
...
net/gnrc_lorawan: implement channel mask support
2021-03-19 16:23:13 +01:00
Akshai M
efdefaa7db
gnrc_netif_lorawan: Validate DR
...
Co-authored-by: José Alamos <jialamos@uc.cl>
2021-03-19 12:17:44 +01:00
Jose Alamos
166ee57a5a
net/gnrc_lorawan: implement funcion to set channel mask
2021-03-19 12:15:03 +01:00
Martine Lenders
214fdf007d
Merge pull request #16193 from miri64/gnrc_netif_pktq/feat/usage
...
gnrc_netif_pktq: add function to check usage
2021-03-18 23:05:27 +01:00
a53cbbfa91
sys/net/sock_util: zero out temporary buffer
...
Otherwise, the following strncpy() leaves strtol() with a non-terminated
buffer.
2021-03-18 14:58:35 +01:00
José Alamos
21390849bf
Merge pull request #16188 from aabadie/semtech-loramac_netdev
...
pkg/semtech-loramac: refactor to use netdev API only
2021-03-18 13:11:32 +01:00
benpicco
8ca676aa6e
Merge pull request #15907 from benpicco/gnrc_netif-register
...
sys/net/gnrc/netif: only register netif after init was successful
2021-03-16 16:26:06 +01:00
Benjamin Valentin
545497e970
net/netif: make netif_register() thread safe
2021-03-16 14:49:04 +01:00
Martine S. Lenders
db8415b5b6
gnrc_netif_pktq: add function to check usage
2021-03-15 15:13:27 +01:00
05224adc96
sys/net/loramac: move lora time on air compute helper in loramac.h
2021-03-14 11:09:39 +01:00
MrKevinWeiss
223430f589
net/ipv*/addr: Add ipv*_addr modules to Kconfig
2021-03-09 09:08:50 +01:00
Marian Buschsieweke
9e55c2d9e9
sys/net/gnrc/lwmac: add missing const qualifier
...
The name of the thread running the MAC can be stored in ROM.
2021-03-02 17:12:01 +01:00
Marian Buschsieweke
f7f739046d
sys/net/gnrc/gomach: add missing const qualifier
...
The name of the thread running the MAC can be stored in ROM.
2021-03-02 17:10:58 +01:00
Leandro Lanzieri
7faa84ff56
Merge pull request #16110 from jia200x/pr/fix_gnrc_lorawan_pktbuf
...
gnrc_netif_lorawan: add missing NULL check
2021-03-01 14:46:44 +01:00
benpicco
b572e67846
Merge pull request #16112 from chrysn-pull-requests/cord-27
...
sys/net/app/cord: Update to RD draft -27
2021-03-01 14:13:33 +01:00
chrysn
049b5179a7
sys/net/app/cord and examples: Update references to -27
...
With all (the few necessary) changes done, this can claim -27
compatibility.
2021-03-01 11:59:57 +01:00
chrysn
6542f7008f
sys/net/app/cord: Use updated .well-known path from draft -26
2021-03-01 11:20:42 +01:00
Jose Alamos
275630289d
gnrc_netif_lorawan: add missing NULL check
2021-03-01 10:50:57 +01:00
Jean Pierre Dudey
e99e2d222d
net/ieee802154/submac: select and save PHY mode on device init
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Jean Pierre Dudey
0cd3deb74c
net/ieee802154: add PHY mode configuration
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Benjamin Valentin
a82bc64a34
sys/net/gnrc/netif: only register netif after init was successful
...
If we call `netif_register()` before we can be sure that the interface
can be configured, a 'zombie' interface remains in the list, causing
all kinds of trouble down the line.
Only call `netif_register()` if `init()` was successful.
2021-02-25 21:48:47 +01:00
Marian Buschsieweke
7cfedbfb8a
sys/net/gnrc: fix logic bug in gnrc_tx_sync implementation
...
In case of an error, the tx sync packet snip could previously have been
released twice. This moves re-attaching the tx sync snip down after the
last `goto error` to avoid this.
2021-02-24 21:22:25 +01:00
benpicco
930e760143
Merge pull request #16081 from cgundogan/pr/rpl_options_fix
...
gnrc_rpl: harden validation routine for options
2021-02-24 12:38:45 +01:00
benpicco
9fc60da4ca
Merge pull request #15830 from benpicco/net/nanocoap_add_uri
...
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-24 12:09:08 +01:00
Cenk Gündoğan
72337ebb9b
gnrc_rpl: harden validation routine for options
2021-02-23 18:58:03 +01:00
Benjamin Valentin
d4e5c25b70
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-23 18:27:54 +01:00
Martine Lenders
de4ee0f934
Merge pull request #15562 from benpicco/socket_zep_register
...
socket_zep: register with netdev, provide EUI-64 as command line parameter
2021-02-20 20:32:01 +01:00
Martine Lenders
ecba5fa1d0
gnrc_pktbuf_static: expose _align() function to be used for tests
2021-02-19 12:23:22 +01:00
Cenk Gündoğan
896e44cf93
rpl: strenghen length checks for DAO and DAO-ACK
2021-02-18 15:47:53 +01:00
Francisco Molina
3cd12d3e1b
sys/include/net/netstats: move xtimer header where it is needed
2021-02-16 18:18:21 +01:00