Benjamin Valentin
56fc7c375f
gnrc_netif: move message queue to gnrc_netif_t
2022-07-18 23:28:38 +02:00
Martine Lenders
8bec9c1115
sock_dns_cache: move to dns_cache
...
Also piggy-back some fixes to the unittests and submodule handling
2022-07-18 15:27:58 +02:00
Martine Lenders
635488616f
fmt: unify and align wording regarding characters, digits, and bytes
2022-07-18 10:38:59 +02:00
Benjamin Valentin
d7bb42296a
gcoap: move tl_type to coap_request_ctx_t
2022-07-17 18:05:07 +02:00
Benjamin Valentin
3806f7d532
nanocoap: make coap_request_ctx_t members internal
2022-07-17 14:32:16 +02:00
Benjamin Valentin
e8829d5591
gcoap_fileserver: make use of coap_request_ctx_t
2022-07-17 14:32:16 +02:00
Benjamin Valentin
2daad4f5ff
nanocoap: document coap_handler_t
2022-07-17 14:32:16 +02:00
Benjamin Valentin
acfab72296
nanocoap: make use of coap_request_ctx_t
2022-07-17 14:29:39 +02:00
Benjamin Valentin
0898e499fc
nanocoap: define coap_request_ctx_t for request handlers
2022-07-17 14:29:39 +02:00
Benjamin Valentin
077a41a719
sock_dns: implement DNS cache
2022-07-13 23:23:52 +02:00
Benjamin Valentin
34e11bf2bc
sys/architecture: introduce uinttxtptr_t
2022-07-13 23:19:33 +02:00
benpicco
54544c0a36
Merge pull request #18131 from firas-hamdi/feat/apply_filters_to_target_mailbox
...
drivers/mcp2515: apply filters to target mailbox
2022-07-13 09:40:06 +02:00
Martine Lenders
a8254d52b8
Merge pull request #16705 from miri64/gcoap_dns/feat/initial
...
gcoap_dns: initial import of a DNS over CoAP (DoC) client
2022-07-13 02:27:17 +02:00
MrKevinWeiss
3095afafd2
sys/test_utils: add netdev ieee802154 minimal processing
2022-07-11 09:25:01 +02:00
Martine Lenders
107a2a0753
gcoap_dns: initial import of a DNS over CoAP client
2022-07-01 18:44:02 +02:00
Martine Lenders
fda230eb7c
Merge pull request #18275 from maribu/sys/net/rpl/netstats
...
sys/net/gnrc/rpl: sync access to netstats
2022-07-01 12:24:24 +02:00
Firas Hamdi
bc0d3f9de3
drivers/mcp2515: apply the filter to a target mailbox
...
sys/include/can: add the mailbox target as a member to the filter structure
drivers/mcp2515: cleanup defines
2022-06-30 10:07:24 +02:00
Marian Buschsieweke
5a47d6a9b8
sys/net/gnrc/rpl: sync access to netstats
...
Synchronize the RPL thread updating the RPL netstats with the RPL
shell command reading it by disabling IRQs. This will prevent printing
corrupted data on non-32bit platforms as well as printing inconsistent
data (e.g. TX count of old state in conjunction with TX bytes of new
state) for all platforms.
Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-06-30 09:48:46 +02:00
Marian Buschsieweke
93d8bade8e
sys/net/gnrc/rpl: refactor netstats_rpl_t
...
There is a repeating pattern in the struct that is split out into a
subtype in this commit. This makes handling the data easier, as now
done in the print routine.
2022-06-30 09:48:45 +02:00
Martine Lenders
d9846e414f
Merge pull request #18269 from maribu/sys/net/netstats
...
sys/net/netopt: change NETOPT_STATS semantics
2022-06-29 15:52:03 +02:00
Marian Buschsieweke
973b6f69bf
sys/net/netopt: change NETOPT_STATS semantics
...
Instead of retrieving a pointer with NETOPT_STATS, retrieve the current
data. This avoids data corruptions when reading from one thread (e.g.
the thread running the shell (ifconfig command)) while another thread
is updating it (e.g. the netif thread).
The issue affects all boards, as users typically expect the count of
TX packets and the number of TX bytes to refer to the same state. For
16 bit and 8 bit platforms even a single netstat entry can read back
corrupted.
This fixes the issue by just copying the whole netstat_t struct over
without requiring explicit locking on the user side. A multi-threaded
network stack still needs to synchronize the thread responding to
netopt_get with the thread writing to the netstat_t structure, but that
is an implementation detail no relevant to the user of the API.
2022-06-28 16:57:43 +02:00
benpicco
5bb12f3e57
Merge pull request #18264 from jia200x/pr/submac_use_ieee802154_retrans_config
...
ieee802154: add default max frame retransmissions config
2022-06-28 16:00:51 +02:00
Jose Alamos
88e14f01a1
ieee802154/submac: use default config for max frame retransmissions
2022-06-27 14:51:16 +02:00
Jose Alamos
0a76a88dc8
ieee802154: add default max frame retransmissions config
2022-06-27 14:50:54 +02:00
Benjamin Valentin
de91fc4b3a
sys/vfs: FATFS_VFS_FILE_BUFFER_SIZE depends on VFS_NAME_MAX
...
e.g. try CFLAGS += -DVFS_NAME_MAX=39
2022-06-21 18:02:54 +02:00
Martine Lenders
03dfad899b
Merge pull request #17834 from haukepetersen/opt_skald_advitvlconfig
...
net/ble/skald: make advertising interval configurable per context
2022-06-21 13:31:57 +02:00
Gunar Schorcht
934c65fb2e
Merge pull request #18212 from benpicco/kernel_defines-CONST
...
core/kernel_defines: drop CONST definition
2022-06-17 17:45:46 +02:00
Benjamin Valentin
7bc1fea55a
sys/tm: drop CONST
2022-06-16 15:26:27 +02:00
benpicco
0a16f8266a
Merge pull request #17962 from benpicco/nanocoap_vfs-put
...
nanocoap_vfs: add nanocoap_vfs_put()
2022-06-16 11:53:36 +02:00
Benjamin Valentin
148651a94d
sys/fs/constfs: allow to host arbitrary data
...
Don't require data to be a uint8_t array to to be casted into one.
2022-06-12 19:39:27 +02:00
benpicco
d797b74b0b
Merge pull request #18196 from gschorcht/sys/rtc_utils_doc_fix
...
sys/rtc_utils: small doc fix of rtc_mktime
2022-06-12 17:14:21 +02:00
Gunar Schorcht
8a5e632b2f
sys/rtc_utils: small doc fix of rtc_mktime
2022-06-12 15:49:01 +02:00
Benjamin Valentin
bb42f6a2f4
nanocoap_vfs: add nanocoap_vfs_put()
2022-06-08 17:19:03 +02:00
Benjamin Valentin
3adda46cec
nanocoap: add coap_size2szx()
2022-06-08 17:19:03 +02:00
Benjamin Valentin
7029572ca7
sys/net/telnet: add telnet_server_disconnect()
2022-06-08 13:01:23 +02:00
Hendrik van Essen
ccc795133f
sys/shell: add pseudomodule shell_lock_auto_locking
...
Module to lock the shell after a given timeout of time x. When the
shell did not receive any input within time x, then the shell is
locked automatically.
2022-06-08 12:53:48 +02:00
Hendrik van Essen
2284f87fdb
sys/shell: add module shell_lock
...
Module to lock the running shell with a password. Shell is proceeded only
when the valid password was entered by the user. After 3 failed attempts,
the input is blocked for a few seconds to slow down brute force attacks.
Does not make use of any cryptographic features yet.
2022-06-08 12:53:48 +02:00
Marian Buschsieweke
20d3304077
Merge pull request #18152 from maribu/sys/shell_commands
...
sys/shell_commands: convert to SHELL_COMMAND()
2022-06-08 06:40:46 +02:00
benpicco
6019925c75
Merge pull request #17943 from fjmolinas/pr_suit_vfs_storage
...
sys/suit/storage/vfs: initial import
2022-06-07 09:33:37 +02:00
Marian Buschsieweke
5ea582b3dd
sys/shell_commands: convert to SHELL_COMMAND()
...
Make use of XFA for shell commands
2022-06-07 09:25:04 +02:00
Francisco
f6d5a54c3e
Merge pull request #18045 from benpicco/suit/transport-vfs
...
suit/transport/vfs: add VFS as source for firmware updates
2022-06-07 08:32:15 +02:00
Marian Buschsieweke
bfb8a55764
sys/net/netif: add helpers for IPv6 addresses
...
- add `netif_get_ipv6()` to query IPv6 (as a slim convenience wrapper
for `netif_get_opt()`)
- add `netifs_get_ipv6()` to query IPv6 addresses of all netifs
- add `netif_print_ipv6()` to print the IPv6 address(es) of a single
netif
- add `netifs_print_ipv6()` to print the IPv6 address(es) of all netifs
2022-06-06 20:46:48 +02:00
Marian Buschsieweke
a4d00df586
sys/net: add ipv6_addrs_print()
...
Also use `IS_USED(MODULE_FMT)` rather than the preprocessor and rely
on the optimizer to eliminate the dead branch.
2022-06-06 20:46:48 +02:00
Francisco Molina
f485e9b0d9
sys/storage/vfs: initial import
2022-06-03 08:49:44 +02:00
Benjamin Valentin
d9114f81c4
suit: replace SUIT_URL_MAX with CONFIG_SOCK_URLPATH_MAXLEN
2022-06-01 13:00:51 +02:00
Benjamin Valentin
8e5812d218
suit/transport: move common code to new file
2022-06-01 13:00:51 +02:00
Benjamin Valentin
dd4a578ef3
suit/transport/vfs: add VFS as source for firmware updates
2022-06-01 13:00:50 +02:00
benpicco
4b6da5c8e4
Merge pull request #17863 from benpicco/sam0_sdhc
...
cpu/samd5x: add SD Host Controller implementation
2022-05-31 15:33:24 +02:00
Benjamin Valentin
babee877ce
cpu/sam0_common: add SD Host Controller implementation
2022-05-31 11:07:20 +02:00
Benjamin Valentin
01eba05ca1
sys/net/sock: add a word of warning to sock_udp_create()
...
If a socket is created we must also call sock_udp_recv() on it as
otherwise messages will get stuck in it's queue until the socket is
closed (which might be never).
If applications only want to send without receiving, they must use
sock_udp_send().
2022-05-30 20:21:13 +02:00
Martine Lenders
2d67eaf7ef
Merge pull request #18105 from kfessel/p-deprecate-ztimer-now64-2
...
ztimer: add module removal information to doxygen and date it
2022-05-25 18:54:09 +02:00
benpicco
31b8518d20
Merge pull request #17965 from benpicco/coap_get_blockopt-uint8
...
nanocoap: use uint8_t for szx value
2022-05-25 14:00:04 +02:00
Benjamin Valentin
1662f0fa46
sys/suit: move suit_storage_helper() to handlers_command_seq.c
2022-05-25 12:17:48 +02:00
Martine Lenders
3e531801e6
Merge pull request #17678 from miri64/gnrc_netif/enh/optional-comp-ctx
...
gnrc_netif: make auto-config of compression context optional
2022-05-25 00:51:36 +02:00
Hauke Petersen
f10a28a7f7
net/ble/skald: let itvl be configured per context
2022-05-24 13:02:10 +02:00
Martine Lenders
3d819ce707
gnrc_netif: make auto-config of compression context optional
2022-05-24 12:30:36 +02:00
Benjamin Valentin
87359bb70a
nanocoap_vfs: add nanocoap_vfs_get()
2022-05-24 09:32:57 +02:00
Benjamin Valentin
ad7d974183
nanocoap: define default block size
2022-05-24 09:32:09 +02:00
Benjamin Valentin
00221818b6
nanocoap: use uint8_t for szx value
...
The value is an exponent, 8 bits totally suffice here
2022-05-23 23:41:21 +02:00
benpicco
08e430bee7
Merge pull request #17956 from benpicco/coapfileserver
...
gcoap: Add file server
2022-05-23 22:10:49 +02:00
Marian Buschsieweke
16f859dafd
drivers/saul: use const qualifier for data to write
...
This makes life easier when calling e.g. `saul_reg_write()` with data
stored in flash.
As now the signatures for reading and writing differ (in that `const`
qualifier only), `saul_notsup()` is split into `saul_write_notsup()`
and `saul_read_notsup()`. However, one is implemented as a symbol alias
of the other, so that ROM consumption remains unchanged.
2022-05-23 08:35:27 +02:00
chrysn
185dfea07f
gcoap_fileserver: New module to serve VFS via CoAP
2022-05-22 16:36:21 +02:00
chrysn
bb56b34c3a
Merge pull request #18117 from LP-HAW/fix-phydat_to_json
...
sys/phydat: fix phydat_to_json precondition
2022-05-19 23:24:25 +02:00
Karl Fessel
b7fef93f9c
ztimer: add module removal information to doxygen
2022-05-19 11:39:00 +02:00
benpicco
82fd89fa89
Merge pull request #18040 from benpicco/vfs_util-hash
...
sys/vfs_util: add vfs_file_<hash>() functions and md5sum, sha1sum and sha256sum shell commands
2022-05-19 09:08:23 +02:00
Lars Pfau
7a94b36430
sys/phydat: fix phydat_to_json dim precondition
2022-05-19 07:29:51 +02:00
Francisco
37da85f047
Merge pull request #18033 from thingsat/pr/sx1280_v2
...
drivers/sx1280: add driver for SX1280 transceiver v2
2022-05-18 22:10:38 +02:00
benpicco
7c62c8983d
Merge pull request #17958 from benpicco/nanocoap-blockwise_put
...
nanocoap_sock: add nanocoap_sock_block_request()
2022-05-18 10:40:24 +02:00
Benjamin Valentin
c20a1d04c8
net/nanocoap: improve documentation of coap_pkt_t
2022-05-17 23:07:23 +02:00
Benjamin Valentin
b99d4b58bd
nanocoap_sock: add nanocoap_sock_block_request()
2022-05-17 23:07:23 +02:00
Benjamin Valentin
f2279e43ae
nanocoap_sock: support sending CoAP packet with payload snips
2022-05-17 23:07:23 +02:00
benpicco
cabb0b7398
Merge pull request #18109 from benpicco/vfs_unmount_by_path
...
sys/vfs: add vfs_unmount_by_path()
2022-05-17 20:25:18 +02:00
Aymeric Brochier
8e86382e29
sys/include/net/lora: add 2.4Ghz BW definitions
2022-05-17 15:30:01 +02:00
Benjamin Valentin
427d06c987
sys/vfs_util: add vfs_file_sha256()
2022-05-17 11:30:51 +02:00
Benjamin Valentin
846adfc0cc
sys/vfs_util: add vfs_file_sha1()
2022-05-17 11:30:51 +02:00
Benjamin Valentin
65578269fc
sys/vfs_util: add vfs_file_md5()
2022-05-17 11:30:51 +02:00
benpicco
1c97eea8b9
Merge pull request #18038 from benpicco/vfs_util
...
sys/vfs_util: add VFS helper functions
2022-05-17 02:17:38 +02:00
chrysn
ee346fe628
sys/vfs: Point user to simplified functions
2022-05-16 13:52:29 +02:00
Benjamin Valentin
c15e87475b
sys/vfs_util: add VFS helper functions
2022-05-16 13:52:29 +02:00
benpicco
d28a45e939
Merge pull request #18089 from benpicco/NETOPT_RX_END_IRQ
...
net/netopt: drop NETOPT_RX_END_IRQ
2022-05-16 11:34:48 +02:00
Benjamin Valentin
ff4c738e2d
sys/vfs: add vfs_unmount_by_path()
2022-05-16 11:11:11 +02:00
benpicco
1e315c7308
Merge pull request #16748 from jia200x/pr/gnrc_netif/remove_netdev_event_isr_msg
...
gnrc_netif: use event loops by default to process ISR
2022-05-13 18:49:01 +02:00
Martine Lenders
dbed2b48ea
nanocoap_cache: add helper function to check if entry is stale
2022-05-13 12:14:55 +02:00
Martine Lenders
310ed649ae
gcoap: reflect truncation with caching
2022-05-13 12:14:55 +02:00
Martine Lenders
728c7d6088
gcoap: add nanocoap_cache support for clients
2022-05-13 12:14:54 +02:00
Martine Lenders
cbbde07cc6
gcoap: add helper function to get request header from a request memo
2022-05-12 15:22:05 +02:00
Martine Lenders
73bcd83543
nanocoap_cache, forward_proxy: add ETag validation support
2022-05-12 13:22:41 +02:00
Benjamin Valentin
aae9bb0a91
net/netopt: remove NETOPT_RX_END_IRQ
2022-05-11 23:44:24 +02:00
Cenk Gündoğan
8750605d26
nanocoap: add cache for response messages
2022-05-10 18:43:56 +02:00
Jose Alamos
38798cb877
gnrc_netif: use events instead of msg queue for ISR offload
2022-05-10 17:48:42 +02:00
Marian Buschsieweke
eadd282cf4
Merge pull request #18026 from benpicco/gcoap_add_fix
...
gcoap: ensure response address is the same as request address
2022-05-10 10:49:56 +02:00
Marian Buschsieweke
3dad6740da
Merge pull request #17990 from benpicco/nanocoap-void
...
nanocoap: use void * for payload bytes
2022-05-10 10:49:05 +02:00
Benjamin Valentin
6e1fb4c3aa
sys/net/sock: introduce SOCK_AUX_SET_LOCAL
2022-05-10 09:24:56 +02:00
Benjamin Valentin
f11899f6bb
sys/net: add local to sock_udp_aux_tx_t
2022-05-10 09:24:56 +02:00
Benjamin Valentin
bcd58bfd10
sys/net: add local to sock_ip_aux_tx_t
2022-05-10 09:24:56 +02:00
Benjamin Valentin
79987483e4
net/gnrc_netif: clarify documentation of gnrc_netif_ipv6_addrs_get()
...
Reformulate the documentation to make it clear that this returns the
*size* of the addresses, not the number of addresses.
2022-05-09 21:46:01 +02:00
benpicco
de23ba0d04
Merge pull request #18046 from benpicco/nanocoap-minor
...
nanocoap: minor fixes
2022-05-05 14:56:47 +02:00
Marian Buschsieweke
08ae9bd771
sys/include/time_units.h: add more constants
...
Added all sensible conversion factors up to days and ordered them.
2022-05-05 11:31:45 +02:00
Karl Fessel
3680198619
ztimer: deprecate ztimer_now64 and ztimer_now_t
2022-05-04 15:57:57 +02:00
Benjamin Valentin
0847c18a18
nanocoap: use size_t for payload_len
2022-05-03 11:32:20 +02:00
Benjamin Valentin
cabb2c912d
nanocoap: use void * for payload bytes
2022-05-03 11:32:20 +02:00
Benjamin Valentin
76090d98d4
nanocoap: fix doc of coap_blockwise_cb_t return code
...
see 04a8a36734
2022-05-03 03:54:17 +02:00
Benjamin Valentin
42e5d0d402
sys/vfs: add vfs_write_iol()
2022-05-02 23:23:52 +02:00
Benjamin Valentin
501ca7e34d
sys/iolist: introduce iolist_to_buffer()
2022-05-02 23:23:52 +02:00
benpicco
1b92fb9858
Merge pull request #17350 from benpicco/gnrc_rpl/auto_init_on_prefix
...
gnrc/ipv6_auto_subnets: init RPL root when adding a prefix
2022-05-02 21:38:21 +02:00
Benjamin Valentin
878596d393
gnrc_netif: improve documentation of gnrc_netif_ipv6_add_prefix()
2022-04-29 22:56:35 +02:00
Teufelchen1
4f60140014
net/gnrc: Fixing whitespace in the documentation
2022-04-29 14:19:25 +02:00
Laurin Wolf
2d9a7e27c3
/net/sock/udp: designated iolist_t intializer
2022-04-28 23:47:45 +02:00
benpicco
42f0d0d24c
Merge pull request #18013 from kfessel/p-coap_pkt-token-deprecate
...
net/nanocoap: deprecate coap_pkt token ptr
2022-04-28 11:25:47 +02:00
Karl Fessel
dcac22eebb
net/nanocoap: deprecate coap_pkt token ptr
2022-04-27 12:31:28 +02:00
cdf1d43e15
Merge pull request #17984 from fjmolinas/pr_suit_install_once
...
sys/suit: avoid installing payload twice
2022-04-27 09:44:58 +02:00
chrysn
0a72fc9255
Merge pull request #16812 from chrysn-pull-requests/cord-doc-discoverability
...
net/cord doc: Usability fixes
2022-04-26 21:10:52 +02:00
Alexandre Moguilevski
17afe9cb1f
sys/include/ztimer64: fix for xtimer_msg_receive_timeout64 in xtimer_compat.h
2022-04-25 17:12:11 +02:00
Francisco Molina
e66ad95c4c
sys/suit: avoid installing payload twice
2022-04-25 15:21:22 +02:00
677871d717
suit/transport/coap: Use generic subtree handler
...
The SUIT CoAP code can make use of the generic subtree handler. This
commit removes the obsolete code to make use of the more generic
nanocoap subtree handlers.
2022-04-23 10:21:37 +02:00
eecac6945b
nanocoap: Add handler for resource-based subtrees
...
This adds a coap_handler_t function that can be used to parse new
subtrees. The subtree information is included in the context pointer of
the call and must be of type coap_resource_subtree_t. This object then
contains the pointer and length of a different coap_resource_t instance.
2022-04-23 10:12:18 +02:00
Benjamin Valentin
6113b79bdb
ztimer64_xtimer_compat: fix ztimer_msleep()
2022-04-22 18:12:45 +02:00
benpicco
c032e40fba
Merge pull request #17976 from benpicco/coap_get_token
...
nanocoap: add coap_get_token()
2022-04-22 10:08:30 +02:00
Francisco
7307923703
Merge pull request #17960 from benpicco/sock_urlpath
...
nanocoap_sock: add nanocoap_sock_url_connect()
2022-04-22 08:26:12 +02:00
Benjamin Valentin
e627d25752
nanocoap: constify get functions
2022-04-21 15:39:25 +02:00
Benjamin Valentin
328d46277d
nanocoap: add coap_get_token()
2022-04-21 15:34:31 +02:00
56fdc90ef4
Merge pull request #17952 from leandrolanzieri/pr/sys/event/add_doc_and_assert
...
sys/event: Add documentation and enforce waiter on wait
2022-04-19 09:24:53 +02:00
Benjamin Valentin
2ea6c81217
nanocoap_sock: add nanocoap_sock_url_connect()
2022-04-18 01:53:23 +02:00
Benjamin Valentin
f6be7d6ffe
sys/net/sock_util: add sock_urlpath()
2022-04-18 01:36:50 +02:00
benpicco
c610b1fa2f
Merge pull request #17939 from fjmolinas/pr_suit_manifest_ram_seq_no
...
sys/suit: save seq_number when parsing manifest
2022-04-15 14:22:57 +02:00
Leandro Lanzieri
b3b76bf6f3
sys/event: ensure that a queue has a waiter before waiting for flags
...
Document and enforce that a queue has a waiter (i.e. it is claimed)
before waiting for thread flags.
2022-04-14 17:10:24 +02:00
Leandro Lanzieri
d3ee32fe97
sys/event: add queue initialization pre-cond to event_post
...
Document that a queue should have been initialized before posting events
to it.
2022-04-14 17:08:42 +02:00
benpicco
2790e361d8
Merge pull request #17946 from fjmolinas/pr_net_af_cleanup_doc
...
sys/include/net/af: fix doc comment
2022-04-14 13:46:29 +02:00
Francisco Molina
7e520b1194
sys/include/net/af: fix doc comment
2022-04-14 09:23:27 +02:00
Francisco Molina
6a1b472a06
sys/suit: save seq_number when parsing manifest
2022-04-14 08:27:30 +02:00
benpicco
32790eb8f2
Merge pull request #17509 from benpicco/nanocoap-rework
...
sys/net/nanocoap: refactor to remove work-buffer requirement
2022-04-14 01:17:30 +02:00
Benjamin Valentin
dbbb602522
net/coap: refactor nanocoap_request for zero-copy operation
...
This removes the need for a user provied work buffer from nanocoap.
Instead we let the user operate directly on network stack internal
memory and provide a callback mechanism to make sure the memory is
properly freed again.
2022-04-13 19:33:00 +02:00
Joshua DeWeese
7f8bf30b70
sys/can: fix typo in documentation
...
The documentation mentions the can module's interaction with the can
tranciver driver (can_trx), but incorrectly calls it trx_can. This patch
fixes the documentation.
2022-04-13 11:48:43 -04:00
Peter Kietzmann
5a8654ecab
Merge pull request #17096 from Ollrogge/fido2_follow_up
...
Fido2 follow up
2022-04-13 12:14:43 +02:00
Benjamin Valentin
21cba5771d
nanocoap: constify helper functions
2022-04-12 16:07:32 +02:00
Ollrogge
deeea2b5f2
sys/fido2: documentation changes && code cleanup
2022-04-12 16:01:50 +02:00
Dario Petrillo
f5e6268418
net/loramac: use enum type in lora_time_on_air()
2022-04-12 12:16:44 +02:00
Ollrogge
3306dffe23
sys/fido2: update flash handling && bug fixes
2022-04-11 13:03:41 +02:00
Martine Lenders
0f1674379a
congure_reno: initial import of TCP Reno congestion control
2022-04-08 14:37:47 +02:00
Oleg Hahm
755ea30da7
Merge pull request #17871 from HendrikVE/pr/sock_dns_mock
...
sys/net/application_layer/sock_dns_mock: add module for mocking sock_dns
2022-04-08 14:20:17 +02:00
Oleg Hahm
f3ffe134b0
Merge pull request #17895 from benpicco/pm_blocker_array
...
sys/pm_layered: use array representation, get rid of implicit IDLE mode
2022-04-08 14:04:46 +02:00
Oleg Hahm
a687552ac9
Merge pull request #17794 from fabian18/auto_init_using_xfa_simple
...
sys/auto_init: custom auto-initialization sequence (simple)
2022-04-07 12:32:01 +02:00
Benjamin Valentin
7fb8f3b7c5
sys/pm_layered: rename val_u8 -> blockers
2022-04-06 12:29:25 +02:00
Benjamin Valentin
79de7ea5e5
sys/pm_layered: use array representation, get rid of implicit IDLE mode
2022-04-06 12:29:25 +02:00
Hendrik van Essen
a9fb3388ca
sys/net/application_layer/sock_dns_mock: add module for mocking sock_dns
2022-04-03 17:29:10 +02:00
3a83c380f7
Merge pull request #17824 from geonnave/set_channels_mask
...
pkg/semtech-loramac: enable setting channels mask
2022-04-02 18:56:11 +02:00
Martine Lenders
00fdd8a146
nanocoap: introduce coap_opt_remove()
2022-03-31 09:47:57 +02:00
Fabian Hüßler
8d7a7593e8
sys/auto_init: use XFA to insert custom modules
2022-03-30 15:00:21 +02:00
benpicco
9ca3dd5d4b
Merge pull request #17656 from benpicco/vfs_default-test
...
vfs_default: add compile test and add default mount for more boards
2022-03-29 13:47:08 +02:00
Benjamin Valentin
7ba58d4461
sys/vfs: add vfs_default.h
2022-03-29 10:24:01 +02:00
benpicco
1133d04de1
Merge pull request #17813 from leandrolanzieri/pr/tests/eth_drivers_rework
...
tests: rework eth drivers
2022-03-28 18:15:27 +02:00
Martine Lenders
76935ddbf5
Merge pull request #17510 from benpicco/sock_tl_str2ep-dns
...
sys/net/sock_util: add sock_tl_name2ep() to optionally perform DNS lookups
2022-03-24 15:59:59 +01:00
Leandro Lanzieri
48ae24b545
sys/test_utils: add netdev Ethernet minimal processing
2022-03-24 09:44:52 +01:00
Benjamin Valentin
3f95f39d88
sys/net/sock_util: add sock_{udp,tcp}_name2ep() wrapper
2022-03-22 11:03:12 +01:00
Benjamin Valentin
1ef6da7de4
sys/net/sock_util: add sock_tl_name2ep()
2022-03-22 11:03:12 +01:00
Benjamin Valentin
a6a8356385
nanocoap: add nanocoap_get_blockwise_url_to_buf() function
...
This moves the internal convenience function suit_coap_get_blockwise_url_buf()
into nanocoap to make it globally available.
2022-03-22 10:36:50 +01:00
Geovane Fedrecheski
eabeee0ebe
sys/shell+pkg/semtech-loramac: add get ch_mask
...
Also, set LORAMAC_CHANNELS_MASK_LEN based on the
selected LORA_REGION configuration.
2022-03-18 14:26:01 -03:00
Geovane Fedrecheski
26c55a91bd
sys/shell: add 'loramac set ch_mask' command
2022-03-18 10:48:18 -03:00
benpicco
9f73630ed9
Merge pull request #17798 from benpicco/pkg/fatfs-exfat
...
pkg/fatfs: enable exFAT support
2022-03-11 22:02:28 +01:00
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
Benjamin Valentin
805bfc754a
pkg/fatfs: enable exFAT support
...
Enabling exFAT requires enabling long file names, so enable LFN if
exFAT is enabled.
exFAT (and LFN) also requires bumping the per-file/per-dir buffer.
Can be tested with
CFLAGS += -DFATFS_FFCONF_OPT_FS_EXFAT=1
2022-03-11 13:21:46 +01:00
b29a658555
Merge pull request #17719 from fjmolinas/pr_sys_posix_convert
...
sys/sema: add sema_ztimer64 to implement old api, deprecate sema
2022-03-10 15:36:06 +01:00
Francisco Molina
2e2daae5d0
sys/sema: use sema_ztimer64 to implement old sema api
...
This PR removes the old xtimer based implementation for sema. Since
this implementation used 64bit timeout, backweard compatibility is
kept by having `sema_wait_timed` be implemented by `ztimer64_usec`
which is enabled by selecting `sema_deprecated`
With this 64bit `sema` api is now deprecated.
2022-03-10 14:19:44 +01:00
Francisco
8fa2687880
Merge pull request #17753 from fjmolinas/pr_fido2_all_ztimer
...
sys/fido2: use ztimer instead of xtimer
2022-03-10 08:08:30 +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
benpicco
60fb36eb1e
Merge pull request #17710 from benpicco/sys/bitfield-ops
...
sys/bitfield: add support for bit-wise bitfield operations
2022-03-09 22:09:34 +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
34ea5c31d1
Merge pull request #17758 from chrysn-pull-requests/ztimer_periodic_callback_t
...
sys/ztimer: Name callback types
2022-03-08 17:23:01 +01:00
Hendrik van Essen
ffd93c9b1b
sys/net/netutils: add netutils_get_ipv4()
2022-03-08 13:35:32 +01:00
benpicco
888b2aa098
Merge pull request #17762 from HendrikVE/pr/const_ipv4_addr_t_pointer
...
sys/net/ipv4: ipv4_addr_t pointer should be const
2022-03-08 12:10:42 +01:00
Benjamin Valentin
d406f12028
sys/bitfield: improve documentation of bf_get_unset()
2022-03-08 10:28:31 +01:00
Benjamin Valentin
f3e519e27a
sys/bitfield: add support for bitfield operations
2022-03-08 10:28:16 +01:00
chrysn
f3e462d039
sys/ztimer: Name callback types
2022-03-08 09:12:20 +01:00
benpicco
8a67aaba91
Merge pull request #17744 from leandrolanzieri/sys/chunked_ringbuffer/kconfig
...
sys/chunked_ringbuffer: model Kconfig
2022-03-07 18:20:38 +01:00
Hendrik van Essen
60153eed4c
sys/net/ipv4: ipv4_addr_t pointer should be const
2022-03-05 14:39:50 +01:00
Francisco Molina
8e3422781d
sys/fido2: use ztimer instead of xtimer
...
- for ctap hid timeouts xtimer was used, use ztimer64_msec instead
since the code is using absolute times, an already using ztimer_msec
- use event_timeout_ztimer instead of event_timeout to not pull in
xtimer
2022-03-04 17:04:28 +01:00
Benjamin Valentin
91ad8ec403
sys/net/ipv6: add ipv6_addr_init() helper function
...
Setting a compile-time const IP address can be a bit cumbersome.
Add a helper function to easy the process.
2022-03-04 15:34:15 +01:00
Leandro Lanzieri
0d4dae9c38
sys/chunked_ringbuffer: move config to CONFIG_ namespace
2022-03-04 09:35:39 +01:00
benpicco
21205bd6ce
Merge pull request #17351 from benpicco/ztimer_periodic-return
...
ztimer_periodic: make callback function return bool
2022-03-03 14:42:33 +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
97174015ac
Merge pull request #17730 from fjmolinas/pr_sixlowpan_frag_fb_include_guard
...
sys/gnrc/sixlowpan/frag/fb: guard sfr_types.h header include
2022-03-02 14:25:44 +01:00
Francisco Molina
c8045dc815
sys/gnrc/sixlowpan/frag/fb: guard sfr_types.h header include
...
The included header references evtimer which is not a direct
dependency for gnrc_sixlowpan_frag, but only for
gnr_sixlowpan_frag_sfr
2022-03-02 08:42:36 +01:00
Benjamin Valentin
2034fa5101
sys/net/application_layer: add telnet server module
2022-03-01 23:07:22 +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
Karl Fessel
f3d935e31f
Merge pull request #17705 from kfessel/p-fix-ztimer-compat
...
sys/ztimer/xtimer_compat: fix bug introduced in #17690 and ..
also adds missing
dummy XTIMER_BACKOFF
xtimer_init
xtimer_is_set
xtimer_rmutex_lock_timeout
2022-02-25 23:44:30 +01:00
benpicco
51e47e70cb
Merge pull request #17631 from benpicco/pkg/fatfs-non_tiny
...
pkg/fatfs_vfs: support FF_FS_TINY=0
2022-02-25 23:43:54 +01:00
Karl Fessel
08442dbc83
sys/ztimer/xtimer_comapt: add missing define and functions
...
- dummy XTIMER_BACKOFF
- xtimer_init
- xtimer_is_set
- xtimer_rmutex_lock_timeout
2022-02-25 16:32:35 +01:00
Karl Fessel
eb87cb7d3a
sys/ztimer/xtimer_compat: fix bug introduced in #17690
2022-02-25 13:52:18 +01:00
Francisco
d895a29c79
Merge pull request #17690 from kfessel/p-ztimer-xtimer-compat32
...
sys/ztimer: cleanup xtimer_compat.h for 32Bit only
2022-02-25 08:37:34 +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
df8086091f
sys/ztimer: add ztimer64_xtimer_compat
...
The ztimer64_xtimer_compat modules implements the whole xtimer api
on top of ztimer64_usec
2022-02-24 09:10:58 +01:00
Karl Fessel
822dbc718d
sys/ztimer: xtimer_compat (32) remove xtimer_now_timex()
2022-02-23 16:21:37 +01:00
Karl Fessel
d81fbf044b
sys/ztimer: cleanup xtimer_compat.h for 32Bit only
2022-02-23 16:01:05 +01:00
d43ad768f1
Merge pull request #17689 from fjmolinas/pr_event_timeout_deprecate_xtimer
...
sys/event/timeout: remove alternative xtimer implementation
2022-02-23 13:37:30 +01:00
Francisco Molina
b4a70fc29c
sys/event/timeout: remove alternative xtimer implementation
...
The old event_timeout API is no soley implemented on top of ztimer_usec.
2022-02-23 12:14:30 +01:00
c6151226ad
Merge pull request #17633 from fjmolinas/pr_ztimer_auto_adjust
...
sys/ztimer: add auto_adjust module
2022-02-23 10:01:05 +01:00
Benjamin Valentin
8322110f84
pkg/fatfs: support FF_USE_FASTSEEK=1
2022-02-22 15:03:55 +01:00
Benjamin Valentin
635016baf9
pkg/fatfs: support FF_FS_TINY=0
...
For increased performance it can be desireable to disable the tiny option.
The config option enables a per-file cache which increases the size
of `fatfs_file_desc_t`.
2022-02-22 15:03:55 +01:00
Benjamin Valentin
2a129fc327
sys/net/sock: add sock_udp_sendv() API
2022-02-22 10:05:41 +01:00
d758cb93ef
sys/ztimer: add auto_adjust module
2022-02-18 13:07:49 +01:00
benpicco
34b11e032d
Merge pull request #17675 from benpicco/net/dhcpv6-doc
...
sys/net/dhcpv6: enhance doc of CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX
2022-02-17 23:00:53 +01:00
chrysn
40f7c66625
Merge pull request #17660 from chrysn-pull-requests/vfs-drop-per-fs-fstatvfs
...
vfs: Introduce reliable disk enumeration
2022-02-17 18:47:41 +01:00
Benjamin Valentin
effa879a56
sys/net/dhcpv6: enhance doc of CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX
...
I always keep forgetting which option to tweak when I want multiple
downstream networks.
2022-02-17 18:46:28 +01:00
Francisco Molina
2005ba53f5
sys/include/ztimer: document CONFIG_ZTIMER_USEC_ADJUST_%
2022-02-17 09:30:09 +01:00
chrysn
395d031cd3
Merge pull request #17661 from benpicco/vfs_mount_path
...
sys/vfs: add vfs_mount_by_path()
2022-02-16 23:42:51 +01:00
chrysn
d60f7aee72
sys/vfs: Deprecate public use of vfs_iterate_mounts
2022-02-16 19:15:02 +01:00
chrysn
b9b0ca8972
sys/shell/vfs: Use vfs_iter_mount_dirs instead of vfs_iter_mounts
...
This solves highly theoretical race conditions of file systems being
unmounted in an application while a shell `df` runs, fixes the previous
weird behavior that `/mountpoint/non-existant-path` could be df'd and
would even report that non-existant path as a file name, but more
practically ensures that an example of vfs_iter_mount_dirs is around.
2022-02-16 19:15:02 +01:00
chrysn
f0e80ee10c
tests: Cover vfs_iterate_mount_dirs in a new test
...
... adding precision to the documentation where a corner case was
discovered during testing and is permitted.
The test is too large for one small board, just like the other existing
VFS test.
2022-02-16 19:15:02 +01:00
chrysn
90069197f7
sys/vfs: Introduce vfs_iterate_mount_dirs
...
... as thread-safe replacement for vfs_iterate_mounts
2022-02-16 19:15:02 +01:00
Benjamin Valentin
54d5f43aff
sys/vfs: add vfs_mount_by_path()
2022-02-16 18:55:26 +01:00
Benjamin Valentin
5b246d02c0
pkg/fatfs: fatfs_vfs: wire up format()
2022-02-16 14:30:08 +01:00
Karl Fessel
c4b760cb6b
Merge pull request #17655 from kfessel/p-remove-evtimer-now-min
...
sys/evtimer: remove deprecated evtimer_now_min
2022-02-15 15:03:57 +01:00
chrysn
599eade495
sys/vfs: Add vfs_dstatvfs
2022-02-15 14:58:01 +01:00
chrysn
ff1f81aac8
sys/vfs: Drop per-filesystem fstatvfs
...
No current file system implements it, there is no defined semantic
difference between running fstatfs and the fallback currently
implemented, and there is practically no optimization gained from not
just running it through a single statvfs.
2022-02-15 14:58:01 +01:00
Karl Fessel
726c461cb5
Merge pull request #17574 from kfessel/p-fix-asserth
...
core/assert: avoid including panic.h with assert.h
2022-02-15 11:57:55 +01:00
chrysn
4c54bd8bdb
vfs: Document that open directories are counted
...
The addition is helpful because directories are visibly different from
open files (and generally are not treated like files).
2022-02-15 11:17:02 +01:00
chrysn
69db27f1cc
Merge pull request #17614 from chrysn-pull-requests/ztimer-doc-stricter
...
sys/ztimer doc: List prerequisites for successful use of ztimer_now
2022-02-15 09:09:12 +01:00
Karl Fessel
a1f5b5d05f
sys/evtimer: remove deprecated evtimer_now_min
2022-02-14 16:17:27 +01:00
chrysn
632ca35eb4
sys/ztimer doc: List prerequisites for successful use of ztimer_now
...
Closes: https://github.com/RIOT-OS/RIOT/issues/17298
Co-authored-by: Karl Fessel <karl.fessel@ovgu.de>
2022-02-14 15:50:09 +01:00
Karl Fessel
49e99f712b
net/gnrc: include kernel_defines.h
2022-02-12 18:30:58 +01:00
Karl Fessel
3bce72af2d
sys/utlist: include stddef.h
2022-02-12 18:30:58 +01:00
8c36648bd5
Merge pull request #17640 from benpicco/sys/benchmark-cleanup
...
sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
2022-02-11 16:35:46 +01:00
Benjamin Valentin
17cc382b93
sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
...
This makes the BENCHMARK_FUNC() behave more like a normal C function.
2022-02-11 14:24:38 +01:00
Francisco
e6024c7fa7
Merge pull request #16384 from silkeh/pr/senml-module
...
sys/senml: add SenML modules
2022-02-11 13:57:36 +01:00
Silke Hofstra
9d61bdbb06
sys/senml: add SenML modules
...
Add a basic SenML module and submodules with support for:
- Encoding SenML values as CBOR using NanoCBOR.
- Converting from Phydat to SenML.
- Reading and encoding SAUL sensors.
2022-02-11 12:38:21 +01:00
benpicco
ce779f7b70
Merge pull request #17637 from jenswet/feature/unix_af_enum_t
...
net: Add typedef for AF enum
2022-02-11 11:52:32 +01:00
Jens Wetterich
fd5b1a68b5
net: Add typedef for AF enum
2022-02-10 19:02:50 +01:00
Jens Wetterich
f1f1896628
net/gnrc/pkt: Fix ISO C++ compatibility
2022-02-10 18:26:38 +01:00
benpicco
be45400631
Merge pull request #17341 from benpicco/vfs-mtd_cleanup
...
sys/vfs: add file-system auto-mount
2022-02-09 21:50:34 +01:00
b15d1c127b
sys/xtimer: introduce xtimer_is_set()
2022-02-09 12:54:16 +01:00
Benjamin Valentin
ae06265de0
pkg/fatfs: VFS: internally handle fatfs_mtd_devs
...
This makes FAT behave more like the other file systems supported by VFS.
The `fatfs_mtd_devs` array is populated internally so the application does
not have to handle this.
2022-02-09 12:21:53 +01:00
Benjamin Valentin
2f6aa71946
sys/vfs: add file-system auto-mount
2022-02-09 12:21:53 +01:00
Benjamin Valentin
aac538ba7f
sys/vfs: provide vfs_fsync()
2022-02-07 16:07:20 +01:00
benpicco
4aa90d3dc6
Merge pull request #16919 from maribu/core/rmutex
...
core/rmutex: use atomic utils
2022-02-04 11:56:05 +01:00
Francisco
14f22c17aa
Merge pull request #12012 from HendrikVE/nimble_shell_module
...
sys/stdio_nimble: add new stdio module using nimble
2022-02-04 11:10:17 +01:00
Hendrik van Essen
72a6ca6366
sys/stdio_nimble: add new stdio module using nimble
...
Implement a new module stdio_nimble, which uses nimble
for stdio. The characteristic for stdin is writable and
the characteristic for stdout uses the indicate mechanism
to publish the system's output to a connected device.
Data will be sent out asynchronously via callout functions.
The module can be enabled with "USEMODULE += stdio_nimble"
Co-authored-by: Francisco Molina <femolina@uc.cl>
2022-01-28 19:26:38 +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
88d0b5753c
suit/transport/coap: let caller allocate blockwise work buffer
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
chrysn
418dafd40e
net/cord doc: Expand CONFIG_CORD_EXTRAARGS documentation
2022-01-27 09:50:08 +01:00
chrysn
72c21f6506
net/cord doc: Fix Endpoint ID grouping
...
The braces (which appear to do nothing) were keeping Doxygen from
grouping the three "Endpoint ID defition" parameters (apparently
intended to be grouped from the braces in the file) from being shown
together.
Moreover, they kept CONFIG_CORD_EXTRAARGS from showing.
2022-01-27 09:50:08 +01:00
chrysn
7253817890
net/cord doc: Unify configuration documentation ...
...
... anchored both under "compile time configuration" and "Networking /
CoRE RD"
This makes the related configuration items visible on the same page.
Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-01-27 09:50:03 +01:00
chrysn
ca25ab95f9
net/cord doc: Fix unbalanced grouping
2022-01-27 09:47:14 +01:00
chrysn
da03ee80d8
net/cord doc: Rename configuration section
...
The title is long enough that it is easily misread as "Client
Configuration" and skipped when looking for common configuration.
(Plus none of the other submodules of net_cord spell out the full "Core
RD Endpoint and Lookup Client" module name again,a dn all say "CoRE RD
Something".)
2022-01-27 09:47:14 +01:00
chrysn
206bea0a1d
phydat: Add Tesla unit
...
While this is equivalent to the existing Gs (1 T = 10^-4 Gs), this is
the SI (and thus preferred) unit.
2022-01-25 13:46:08 +01:00
Benjamin Valentin
70d9f2fb1a
sys/vfs: move mtd_vfs_ops to vfs.h
...
This avoids a cyclic include of mtd.h
2022-01-24 13:53:21 +01:00
Benjamin Valentin
77ab8a657a
sys/chunked_ringbuffer: add chunked ringbuffer
2022-01-19 11:43:35 +01:00
75f5048b68
Merge pull request #17497 from jia200x/pr/lora/fix_rssi_val
...
[treewide] lora: use int16_t for RSSI value
2022-01-17 18:57:37 +01:00
Jose Alamos
9955a35c63
[treewide] lora: use int16_t for RSSI value
...
The RSSI values reported by LoRa transceiver can be less than -127.
Therefore, `int8_t` is not enough. This commit defines the RSSI of
`netdev_lora_rx_info` as `int16_t` and adapt the drivers accordingly
(sx126x, sx127x).
2022-01-17 17:54:18 +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
54d62f1303
Merge pull request #17517 from aabadie/pr/sys/lora_remove_deprecated_define
...
sys/lora: remove deprecated LORA_PAYLOAD_CRC_ON_DEFAULT define
2022-01-17 11:09:00 +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
chrysn
fdf3c324b9
net/ieee802154 doc: Group security with existing 802154
2022-01-16 11:24:22 +01:00
chrysn
2637a9f17e
net/ieee802154 doc: Consistent spacing
...
This ensures that the the 802.15.4 modules are grouped together in the
built documentation (vs. "IEEE 802.15.4" / "IEEE EUI-..." /
"IEEE802.15.4" sorting).
2022-01-16 11:24:22 +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
ed155f82ce
sys/lora: remove deprecated LORA_PAYLOAD_CRC_ON_DEFAULT define
2022-01-14 10:37:42 +01:00
cceaf45389
sys/loramac: remove deprecated LORAMAC_DEFAULT_PUBLIC_NETWORK define
2022-01-14 10:21:20 +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
Marian Buschsieweke
71ed611607
Merge pull request #17366 from aabadie/pr/can_ztimer
...
sys/can: migrate to ztimer
2022-01-12 17:56:41 +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
e40f97c4da
net/gnrc/netif: move interface registration to init function
2022-01-10 13:59:28 +01:00
Jose Alamos
e7fac9f661
net/gnrc_netif: add return values to init
2022-01-10 13:59:01 +01:00
Jose Alamos
874a13e090
ieee802154/hal: remove RX continuous cap
2022-01-10 13:57:03 +01:00
Jose Alamos
94a996ee7c
ieee802154/hal: request set IDLE before calling read
2022-01-10 13:57:02 +01:00
Jose Alamos
db815aa779
ieee802154/hal: migrate to request_op and confirm_op
2022-01-10 13:57:02 +01:00
benpicco
f33b3ad10d
Merge pull request #17242 from bergzand/pr/hid/add_descriptor_defines
...
usb/hid: Add HID report descriptor defines
2022-01-10 12:28:01 +01:00
ce373902ee
sys/can: migrate to ztimer
2022-01-10 12:21:40 +01:00
758a0bc174
usb/hid: Add HID report descriptor defines
2022-01-10 11:35:58 +01:00
benpicco
c18c56aa03
Merge pull request #17380 from qmk/bind_extra_usb_config
...
usbus: Bind extra USB config
2022-01-09 17:58:38 +01:00
08f93d7904
sys/saul_reg: remove deprecated saul_reg_rm
2022-01-08 11:48:44 +01:00
c5656ef3b2
Merge pull request #17481 from aabadie/pr/sys/asymcute_bufsize_removal
...
sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP
2022-01-08 11:30:59 +01:00
795b71f7bf
Merge pull request #17480 from aabadie/pr/sys/crypto_aes_cipher_removal
...
sys/crypto: remove deprecated CIPHER_AES_128
2022-01-08 02:18:23 +01:00
844fd52deb
sys/shell: remove deprecated SHELL_NO_{ECHO,PROMPT} defines
2022-01-07 13:23:52 +01:00
19628804ba
sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP
2022-01-07 11:28:11 +01:00
0e977b89ae
sys/crypto: remove deprecated CIPHER_AES_128
2022-01-07 11:14:10 +01:00
Ollrogge
58764f2e16
usbus/hid: Remove unimplemented function declaration
2022-01-05 21:46:15 +01:00
Marian Buschsieweke
20793fd6c6
sys/atomic_utils: Add load/store for kernel PIDs
...
This will make it easier to change the width of kernel_pid_t if needed
without breaking code.
2022-01-05 15:45:53 +01:00
8d3d012acd
Merge pull request #17248 from benpicco/riotboot_serial-btn
...
riotboot_serial: enter bootloader mode by pin
2022-01-05 14:14:00 +01:00
0056648581
Merge pull request #17418 from aabadie/pr/drivers/periph_build_enh
...
drivers/periph_common: build periph module selectively
2022-01-04 14:59:39 +01:00
74b38ca641
Merge pull request #17446 from gschorcht/sys/std_available
...
sys/stdio: add optional function stdio_available
2022-01-03 18:15:06 +01:00
Gunar Schorcht
a71dec81a2
sys/stdio_base: add optional function stdio_available
...
A couple of `stdio` backend implementations allow to check for the number of available bytes for reading before the blocking `stdio_read` is called. This helps to implement non-blocking functionalities while waiting for `stdin`.
2022-01-03 16:14:11 +01:00
benpicco
74d1582fad
Merge pull request #17407 from kaspar030/time_units
...
sys: factor out US_PER_SEC etc from timex.h into time_units.h
2022-01-03 13:32:53 +01:00
f27cccd0cc
sys/net: fix non matching arguments in doc
2022-01-03 09:52:57 +01:00
c78a67422a
sys/crypto: fix missing documentation
2022-01-03 09:52:28 +01:00
Ollrogge
8ec310b085
usbus/hid: Remove unimplemented function declaration
2021-12-27 21:18:43 +01:00
23ab8431a7
Merge pull request #17412 from jenswet/feature/cpp-doxygen-documentation
...
doc: Improve C++ documentation
2021-12-21 12:32:47 +01:00
79df157727
sys: move rtc utility functions to their own module
2021-12-20 13:04:20 +01:00
chrysn
9e35b75ff4
Merge pull request #17408 from chrysn-pull-requests/ztimer-report-removal
...
sys/ztimer: ztimer_remove report success
2021-12-17 08:57:14 +01:00
chrysn
c703dc6e35
sys/ztimer: Documentation clarification
2021-12-16 15:35:20 +01:00
chrysn
991f74a62a
sys/ztimer: ztimer_remove return its success
...
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-16 15:35:17 +01:00
Jens Wetterich
a0930a8ec0
doc: Improve C++ documentation
...
Move C++ modules in a new menu tree and improve the description.
2021-12-15 18:58:23 +01:00
a8ade82a95
Merge pull request #17404 from kaspar030/ztimer_clarify_now_comparisons
...
sys/ztimer: ztimer_now() add warning regarding comparing now() values
2021-12-15 15:44:27 +01:00
9c71dd7566
Merge pull request #17342 from aabadie/pr/sysclk
...
sys: introduce sysclk function to retrieve core clock frequency
2021-12-15 15:41:34 +01:00
fd1f257ee8
sys: factor out US_PER_SEC etc from timex.h into time_units.h
2021-12-15 14:33:20 +01:00
ec41c43751
sys: introduce coreclk utility function
2021-12-15 12:41:36 +01:00
32afae0b5f
sys/ztimer: ztimer_now() add warning regarding comparing now() values
2021-12-15 12:34:37 +01:00
Karl Fessel
95767ec9b5
sys/evtimer: deprecate evtimer_now_min
2021-12-14 22:53:01 +01:00
Francisco Molina
dd03d8c362
sys/ztimer: ztimer_set return the now value
2021-12-13 11:21:23 +01:00
zvecr
bf241a117c
usbus: Bind extra USB config
2021-12-10 23:34:59 +00:00
ca74a57870
Merge pull request #17370 from kaspar030/ztimer_best_practices
...
sys/ztimer: add some best practices
2021-12-10 08:47:55 +01:00
b07b11b431
sys/ztimer: add some best practices
2021-12-09 15:53:39 +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
d959ce7eea
Merge pull request #16928 from kaspar030/ztimer64
...
sys/ztimer64: initial PR
2021-12-09 10:17:15 +01:00
Karl Fessel
08ef57fbd0
Merge pull request #16126 from kfessel/p-mix-schedrr
...
sys/sched_rr: Add a round robin scheduler module
2021-12-08 16:01:57 +01:00
Benjamin Valentin
64bd80d389
ztimer_periodic: make callback function return bool
...
The callback function of `ztimer_periodic` is only expected to have
two states.
So let it return `true` if the timer should keep repeating, `false`
otherwise.
2021-12-08 00:10:55 +01:00
benpicco
536f7e23c8
Merge pull request #17276 from fjmolinas/pr_event_periodic_count
...
sys/include/event/periodic: add count
2021-12-08 00:09:57 +01:00
439fcbf392
sys/ztimer64: initial implementation
...
Co-authored-by: Francisco Molina <femolina@uc.cl>
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-07 23:57:56 +01:00
Francisco
97b4dd3a57
Merge pull request #17216 from bergzand/pr/ps_schedstatistics/ztimer
...
schedstatistics: Convert to ztimer
2021-12-07 20:22:58 +01:00
Francisco Molina
7d084a43ff
sys/include/event/periodic: add count
2021-12-07 19:42:32 +01:00
Francisco
07e7a6edce
Merge pull request #17336 from HendrikVE/pr/isrpipe_write
...
sys/isrpipe: add isrpipe_write
2021-12-07 17:10:44 +01:00
4b95459483
schedstatistics: Convert to ztimer
2021-12-07 16:31:15 +01:00
Hendrik van Essen
774e765d59
sys/isrpipe: add isrpipe_write
2021-12-07 13:00:58 +01:00
Francisco
6749b71066
Merge pull request #17337 from HendrikVE/pr/tsrb_init
...
sys/tsrb: add tsrb_clear
2021-12-07 09:20:22 +01:00
Karl Fessel
9195a4f02b
net/gcoap: most ZITMER_USEC to ZTIMER_MSEC
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
Hendrik van Essen
de4b32ef54
sys/tsrb: add tsrb_clear
2021-12-06 11:53:59 +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
b6cc07009f
Merge pull request #17284 from fjmolinas/pr_ztimer_no_periph_rtt
...
sys/ztimer: add 'ztimer_no_periph_rtt'
2021-12-02 11:02:24 +01:00
Francisco Molina
7c3360e4d6
sys/ztimer: add 'ztimer_no_periph_rtt'
...
This is a temporary fix for Issue #17060 . It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.
Limitations:
- as ifeq are involved order of inclusion matters, therefore
these modules should be included early in the build at application
level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
since this only disables auto inclusion of these modules
This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
Martine Lenders
2cf0fca4e2
Merge pull request #17157 from maribu/sys/net/gnrc
...
sys/net/gnrc: fix compilation with -Wcast-align
2021-12-01 09:49:21 +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
Francisco Molina
92a003fcdc
sys/include/xtimer.h: deprecate nanosleep
2021-11-30 10:31:22 +01:00
Francisco Molina
857f3c3c51
sys/tsrb: add peek functions
2021-11-24 17:54:44 +01:00
Marian Buschsieweke
78ded2dd08
sys/atomic_utils: add atomic_{load,store}_ptr()
2021-11-23 14:23:50 +01:00
62772ab3f9
sys/fmt: add some documentation about out
2021-11-22 14:11:02 +01:00
61c62c2ed6
sys/fmt: make fmt_s32_dfp() string based
2021-11-22 14:11:01 +01:00
Benjamin Valentin
e6a06501b8
sys/riotboot: serial: add bootloader LED
2021-11-21 23:09:24 +01:00
Benjamin Valentin
e17cce41b4
bootloaders/riotboot_dfu: move bootloader_selection.h to common place
2021-11-21 23:08:31 +01:00
Karl Fessel
eb11e463df
sys/ztimer: make internal head update static
2021-11-18 13:45:49 +01:00
Francisco Molina
81c5d5dbcc
sys/event/timeout: split xtimer, ztimer backends, don't force usec
...
This PR makes `event_timeout` and `event_timeout_ztimer` two distinct
pseudomodules, where the only api difference is in the init function.
If only `event_timeout_ztimer` is selected then no default ZTIMER
backend is selected and the old init function is not implemented.
If only `event_timeout` is selected then `xtimer` is used unless
`ztimer_usec` is included. In which case the `xtimer` wrapper on top
of `ztimer` is used and `xtimer` is not directly selected. This
allows for the legacy api to be supported with `ztimer_usec` as
a drop-in replacement.
If `event_timeout` and `event_timeut_ztimer` are selected then
`event_timeout` SRC file is excluded from compilation.
2021-11-17 10:15:11 +01:00
587d25a38e
USBUS/hid: Adapt to xmit API
2021-11-16 20:17:05 +01:00
5455c40c7a
USBUS/cdc_ecm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
1a0bc3d8bc
USBUS/cdc_acm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
7d9a177f25
USBUS: Adapt to xmit API
...
Converts the control endpoint to xmit API
2021-11-16 20:17:04 +01:00
59e85cf921
usbdev: Refactor to xmit API
...
This API change refactors the usbdev API to supply buffers via the
usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
be used when defining buffers used for endpoints to adhere to the DMA alignment
restrictions often required with usb peripherals.
Main advantage is that the usbdev peripherals no longer have to allocate
oversized buffers for the endpoint data, potentially saving multiple KiB
of unused buffer space. These allocations are now the responsibility of
the individual USB interfaces in the firmware
2021-11-16 11:21:00 +01:00
8c2f0dd2af
sys/benchmark: Convert to ztimer
2021-11-15 14:14:23 +01:00
Karl Fessel
8c3aad1c25
sys/sched_round_robin: Add a round robin scheduler module
2021-11-11 13:18:52 +01:00
Marian Buschsieweke
7b06e665ee
sys/architecture: add HAS_ALIGNMENT_OF() helper
2021-11-11 10:57:26 +01:00
Marian Buschsieweke
2e6eca1918
sys/net/dns: mark dns_hdr_t as packed
...
This structure is used to parse data from unaligned buffers, so make
sure the compiler issues instructions suitable for unaligned memory
access.
2021-11-06 20:16:56 +01:00
df39337ebf
usbopt: resolve vera++ issues
2021-11-04 13:49:34 +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
Jens Wetterich
14f90f3c5e
pkg/fff: Add fake functions framework package
2021-11-02 18:01:21 +01:00
Benjamin Valentin
358aa11d48
ztimer/xtimer_compat: implement trivial functions
...
xtimer_ticks64_t / xtimer_ticks32_t is no longer a struct, so these are
even more trivial than on xtimer.
2021-10-29 00:45:01 +02: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
0ce6bfc1a2
usbus: Deprecate USBUS_HANDLER_FLAG_TR_FAIL event
2021-10-24 19:33:29 +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
f8c8abf75d
Merge branch 'master' into gnrc_gomach/adapt_duty_recode_para_name
2021-10-13 17:36:21 +02:00
Martine Lenders
65ff161b3a
dsm: make CONFIG_DSM_PEER_MAX depend on CONFIG_DTLS_PEER_MAX
2021-10-08 12:15:53 +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
Martine Lenders
a2cd5ed903
dtls: set CONFIG_DTLS_PEER_MAX in dtls.h header
2021-10-08 12:10:28 +02:00
Jose Alamos
d7f4d5b0bd
ieee802154/submac: avoid race condition between RX_DONE and ACK_TIMEOUT
2021-10-07 14:34:34 +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
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
benpicco
b1af25d4c6
Merge pull request #16743 from benpicco/net/sock/tcp-doc_fix
...
sock: tcp: fix sock_tcp_read() example
2021-09-22 20:58:49 +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
chrysn
b6dee72161
Merge pull request #16869 from chrysn-pull-requests/802154_submac-docs-syntax
...
ieee802154_submac doc: Make readable in doxygen builds
2021-09-19 11:11:22 +02:00
chrysn
eaf6219af3
ieee802154_submac doc: Make readable in doxygen builds
2021-09-18 21:32:26 +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
9c783ac7c4
gnrc/netif: accept const addr in gnrc_netif_ipv6_addr_add/remove()
2021-09-17 13:00:15 +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
Martine Lenders
913573a200
Merge pull request #16702 from miri64/ut_process/feat/initial
...
ut_process: initial import of a URI template processor
2021-09-17 09:43:20 +02:00
Martine Lenders
7c60f6031c
ut_process: initial import of a URI template processor
2021-09-16 18:18:48 +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
chrysn
5710d5ff34
net/ieee802154_security doc: Shape security expectations
2021-09-12 20:20:00 +02:00
Sören Tempel
71f933312d
ipv6: fix typo in ipv6_addr_to_str documentation
...
It doesn't make any sense that `result_len` should specify the length of
`result_len`. Instead, `result_len` should specify the length of the
`result` parameter.
2021-09-09 03:56:39 +02:00
Peter Kietzmann
b98fa6d9d0
Merge pull request #16489 from Ollrogge/fido2_pr
...
FIDO2 support in RIOT
2021-09-08 21:14:52 +02:00
Ollrogge
e127a4d865
FIDO2 support in RIOT
2021-09-08 15:22:40 +02:00
Benjamin Valentin
9a6fc85b16
treewide: replace gnrc_netdev_default with netdev_default
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
Jose Alamos
3c1909b443
ieee802154/radio: update FB Lock handle
2021-09-03 11:00:45 +02:00
Jose Alamos
56a8fece01
ieee802154/radio: add IEEE802154_CAP_RX_CONTINUOUS
2021-09-03 11:00:45 +02:00
Benjamin Valentin
73b929b3b9
test_utils: add UDP benchmark
2021-09-02 23:12:31 +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
0b69747389
Merge pull request #16023 from maribu/max_pdu_size
...
sys/net/netopt: Drop deprecated NETOPT_MAX_PACKET_SIZE
2021-08-26 14:40:18 +02:00
Hauke Petersen
f5f28347c2
net/gnrc/rpl: add hooks for nimble_rpble
2021-08-24 11:33:13 +02:00
Erik Ekman
2816ade5f8
pkg/lwip: Start rework of netif initialisation
...
Use separate files with auto_init
Proof of concept with only moving netdev_tap
2021-08-20 14:56:46 +02:00
Jose Alamos
ddc9c7c686
ieee802154/radio_hal: detach hal descriptor from driver
2021-08-18 15:24:10 +02:00
Benjamin Valentin
c3849ed9f9
sock: tcp: fix sock_tcp_read() example
...
sock_tcp_read() will return 0 if the connection was closed, we
need to check for this.
2021-08-16 12:55:12 +02:00
Simon Brummer
6fba0d970c
gnrc_sock_tcp: integrate gnrc_tcp
2021-08-14 21:27:34 +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
Simon Brummer
6b24601ee9
gnrc_tcp: Add GNRC_TCP_NO_TIMEOUT
2021-08-14 15:28:14 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +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
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
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
benpicco
7991e71384
Merge pull request #16721 from benpicco/sock/tcp-fix_doc
...
sock: tcp: fix Echo Server example
2021-08-10 14:41:42 +02:00
Benjamin Valentin
091e013ff0
sock: tcp: fix Echo Server example
...
The example has two errors:
- `sock_tcp_accept()` expects a timeout parameter
- `sock_tcp_stop_listen()` expects a pointer
with these fixed, the example actually compiles.
2021-08-10 13:45:56 +02:00
Martine Lenders
6e0c8db99f
Merge pull request #16706 from miri64/gnrc_ipv6_nib/enh/offset-time-functions
...
gnrc_ipv6_nib: provide functions to get offset of public timestamps
2021-08-08 02:28:12 +02:00
Martine Lenders
c33e40cce1
gnrc_ipv6_nib: provide functions to get offset of public timestamps
2021-08-07 14:04:44 +02:00
Francisco Molina
9195f772ad
sys/net/nanocoap: block_finish returns if more are expected
2021-08-06 09:29:03 +02:00
benpicco
81df6d6fcb
Merge pull request #16712 from miri64/gcoap+nanocoap/enh/buffer-path
...
nanocoap & gcoap: allow path to be non-`\0`-terminated.
2021-08-05 17:25:41 +02:00
Martine Lenders
17b9c5adbb
Merge pull request #16707 from benpicco/sys/uri_parser-constify
...
uri_parser: constify result
2021-08-05 15:55:45 +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
adce90343c
nanocoap: provide buffer version of coap_opt_add_uri_path()
...
This simplifies the usage of `nanocoap` with modules such as
`uri_parser` greatly.
2021-08-05 11:25:13 +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
Peter Kietzmann
e1a8280e2b
Merge pull request #16689 from Ollrogge/usb_hid_pr2
...
usbus/hid_io: add missing header file, add RX callback function
2021-08-04 15:56:33 +02:00
Ollrogge
2c2eb88c0e
usbus/hid: uncrustify files
2021-08-04 14:54:33 +02:00
Ollrogge
834ac3f5a5
usbus/hid_io: add missing header file, add RX callback function
2021-08-04 14:54:33 +02:00
Benjamin Valentin
b068d9245d
uri_parser: constify result
...
`uri_parser_process()` takes a `const char *` as input parameter but
the result is a struct of `char *` to the original string.
This may lead a user to modifying the strings in `uri_parser_result_t`
which will cause a crash if the original string resides in read-only
memory (and violates the no-modifications promise of the const parameter
in `uri_parser_process()`).
To fix this, make the resulting strings `const` as well, so nobody dares
to touch them in a writing way.
2021-08-04 14:01:28 +02:00
Martine Lenders
af03ba4aa8
uri_parser: provide function to split query
2021-08-04 12:47:28 +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
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
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
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
Martine Lenders
0f1e0b6798
Merge pull request #16676 from miri64/nanocoap/enh/opt_accept
...
nanocoap: provide Accept option convenience function
2021-07-23 18:21:22 +02:00
Martine Lenders
3cff67ce13
nanocoap: provide Accept option convenience function
2021-07-23 15:25:41 +02:00
Martine Lenders
b5d9f78cbd
dhcpv6_client: port timeout mechanism to event_timeout
2021-07-21 16:28:39 +02:00
Martine Lenders
02c0581ab9
timex: introduce MS_PER_CS
2021-07-21 16:27:53 +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
bf99bcc8d2
event/timeout.h: fix typos in doc
2021-07-21 12:25:05 +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
benpicco
4f905bfa8c
Merge pull request #15493 from benpicco/riotboot-serial
...
riotboot: implement serial flasher
2021-07-21 11:01:31 +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
0e41f9e557
net/loramac: fix typo
2021-07-21 03:51:46 +02:00
Benjamin Valentin
cabe639d04
sys/riotboot: move magic address to common file
2021-07-20 22:51:15 +02:00
Benjamin Valentin
7a07b7471f
riotboot: implement serial bootloader feature
2021-07-20 22:50:41 +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