Akshai M
ea79c71ce8
gnrc/tcp : Move GNRC_TCP_RTO_LOWER_BOUND to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
648247592c
gnrc/tcp : Move GNRC_TCP_RCV_BUFFERS to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
e8b13ab44d
gnrc/tcp : Move GNRC_TCP_MSS to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
d0145292aa
gnrc/tcp : Move GNRC_TCP_MSS_MULTIPLICATOR to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
0b3e0de03e
gnrc/tcp : Move GNRC_TCP_MSL to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
01dd8e4fa8
gnrc/tcp : Move GNRC_TCP_CONNECTION_TIMEOUT_DURATION to 'CONFIG_'
2020-06-02 15:46:44 +05:30
Akshai M
b5e95f6c49
gnrc/tcp : Update documentation
...
Add compile time parameters to doxygen group 'net_gnrc_conf'
2020-06-02 15:46:44 +05:30
benpicco
5055a1ef30
Merge pull request #13898 from nmeum/pr/fuzzing-gcoap
...
Add fuzzing application for gcoap
2020-05-30 18:40:37 +02:00
Benjamin Valentin
840be824d4
gnrc_netif: relax 6lo MTU assertion for 802.15.4g
...
802.15.4g devices have a 2047 byte PDU.
So the assertion `netif->ipv6.mtu == IPV6_MIN_MTU` is too strict here.
This is only enforced on init, so changing the modulation at run-time
did not catch this bug.
To test, use e.g. `at86rf215` with
CFLAGS += -DAT86RF215_DEFAULT_PHY_MODE=IEEE802154_PHY_MR_OQPSK
fixes #14164
2020-05-29 15:59:23 +02:00
Martine S. Lenders
c7916e11e6
sock_dtls: add missing whitespace to doc
2020-05-26 20:36:57 +02:00
Martine S. Lenders
880c42e236
sock_dtls: introduce UDP sock getter
2020-05-26 20:29:33 +02:00
Sören Tempel
bab916d084
sock_async_evnet: add comment to fuzzing termination condition
2020-05-26 17:24:45 +02:00
Sören Tempel
a8b0491751
gnrc_pktbuf_malloc: add comment to fuzzing termination condition
2020-05-26 17:24:44 +02:00
Sören Tempel
f37c1fd9dd
gnrc_sock: add comment to fuzzing termination condition
2020-05-26 17:24:43 +02:00
Sören Tempel
3314388417
sock_async_event: Implement termination condition for fuzzing
...
See: 65c7bbf76d
.
2020-05-26 17:24:40 +02:00
Sören Tempel
729e0f95ac
gnrc_sock: Export prevpkt and rename it to gnrc_sock_prevpkt
...
This is a perquisite for fuzzing applications using sock_async_event.
2020-05-26 17:24:39 +02:00
Maciej Jurczak
edf016a6cb
nanocoap: Added token length validation.
...
Implemented a check in coap_parse() to verify if TKL value is within valid range as specified by RFC7252. The token length must be within 0-8 range, any other value should be considered as invalid and the packet should produce message format error.
A test case was added to tests-nanocoap.c to verify correct behavior in case of TKL in range and out of range.
Update sys/net/application_layer/nanocoap/nanocoap.c
Prefixed debug message with module name and abbreviations expanded.
Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
Update sys/net/application_layer/nanocoap/nanocoap.c
Prefixed debug message with module name and abbreviations expanded.
Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2020-05-25 22:44:50 +02:00
Maciej Jurczak
3be2c51c42
nanocoap: Fixed buffer read out of the input packet bounds issue.
...
If token length in the header was longer than actually provided in the following payload, read out of the input buffer bounds or processing of data beyond the actual input packet bound could happen. In order to remove the risk, the options loop condition was modified to early detect the condition and abort packet processing if a malformed packet is detected.
nanocoap: Added pointer range check after token length parsing.
Added a check to verify if the current packet parsing pointer is still within the packet boundaries after incrementing by the token length declared in the header. If packet is malformed an error code is returned.
nanocoap: Combined packet length checks
Combined packet length checks after reading token length and processing options into a single packet length validation after the options parsing loop. The entry to the options parsing loop is safe as the while loop condition protects against entering the loop if the token length was invalid.
2020-05-25 22:44:39 +02:00
chrysn
2c62fec96e
saul/doc: Warn about and deprecate saul_reg_rm
...
saul_reg_rm can not be used safely unless in tight coordination with the
application. This points out the issue, puts the onus of making sure
nobody calls vanishing registrations on the device driver and deprecates
the call (as the requirements for correct usage are practically
impossible to fulfull for a generic driver).
2020-05-25 16:16:11 +02:00
Juergen Fitschen
b098108c99
ztimer_xtimer_compat: move PSEUDOMODULES definition to Makefile.include
2020-05-23 16:50:24 +02:00
Juergen Fitschen
5a54c29f09
xtimer_on_ztimer: move PSEUDOMODULES definition to pseudomodules.inc.mk
2020-05-23 16:37:45 +02:00
Martine Lenders
e011e3ed38
Merge pull request #14043 from pokgak/pr/sock_dtls/send_api_change
...
sock_dtls: add timeout to sock_dtls_send and add sock_dtls_session_init
2020-05-22 14:33:54 +02:00
Aiman Ismail
3ad2724f44
sock_dtls: fix vera++ warnings on line length
2020-05-22 14:06:38 +02:00
Aiman Ismail
b5b7955743
sock_dtls: add sock_dtls_session_init()
...
deprecates sock_dtls_session_create()
2020-05-22 14:06:12 +02:00
Hauke Petersen
9ad65786dd
sys/phydat: added phydat_to_json converter
2020-05-20 15:29:24 +02:00
Hauke Petersen
3e4229cd31
phydat: add verbose unit_to_str function
2020-05-20 15:29:24 +02:00
Hauke Petersen
7764754686
phydat: fixes to phydat_str.c
...
- add some missing unit strings to phydat_unit_to_str
- fixed doxygen group and file description
2020-05-20 15:23:21 +02:00
benpicco
70543bba1d
Merge pull request #13275 from miri64/gnrc_ipv6_ext_opt/feat/initial
...
gnrc_ipv6_ext_opt: initial import
2020-05-20 14:35:58 +02:00
Martine S. Lenders
d04621fc43
gnrc_ipv6_ext_opt: initial import
...
This provides header parsing for IPv6 hop-by-hop and destination
options according to [RFC 8200].
[RFC 8200]: https://tools.ietf.org/html/rfc8200#section-4.2
2020-05-20 12:34:04 +02:00
Martine S. Lenders
166315dcc2
ipv6_ext_opt: initial import of IPv6 options extension headers
2020-05-20 12:34:04 +02:00
Benjamin Valentin
3974a04623
gnrc/nib: add NIB event bus
...
Add a message bus where threads can listen for nib events.
Currently only the GNRC_IPV6_NIB_EVENT_ADDR_VALID event is
implemented which informs subscribers that an address got
valid.
2020-05-20 10:44:11 +02:00
Benjamin Valentin
85100ad61a
gnrc_netif: add message bus to interface
...
Allow threads to listen for events on an interface.
2020-05-20 10:44:11 +02:00
benpicco
f3dddd6127
Merge pull request #14068 from miri64/sock_util/enh/netif-str2ep
...
sock_util: add interface descriptor parsing to str2ep
2020-05-19 23:59:32 +02:00
Leandro Lanzieri
7032984a81
Merge pull request #14101 from benpicco/ieee802154-oqpsk_high_rate
...
net/netopt: clarify documentation of NETOPT_OQPSK_RATE
2020-05-19 16:46:22 +02:00
Benjamin Valentin
d8efcca81e
net/netopt: clarify documentation of NETOPT_OQPSK_RATE
...
802.15.4 only specifies one rate of 250 kbit/s for O-QPSK.
Everything else is a proprietary extension.
2020-05-19 16:39:15 +02:00
Leandro Lanzieri
16113afb1e
Merge pull request #14026 from miri64/gnrc_netif/fix/deps
...
gnrc_netif: use gnrc_netif-submodules to pull in upper-layer struct members
2020-05-19 16:36:18 +02:00
Martine S. Lenders
5e8f8ddc4a
gnrc_netif: introduce gnrc_netif_mac pseudo-module for gnrc_mac members
...
This aims to reduce circular dependencies in GNRC.
2020-05-19 16:10:59 +02:00
Martine S. Lenders
a48629b395
gnrc_netif: introduce gnrc_netif_ipv6 pseudo-module for IPv6 members
...
This aims to reduce circular dependencies in GNRC.
2020-05-19 16:10:59 +02:00
Martine S. Lenders
9801a439fc
gnrc_netif: introduce gnrc_netif_6lo pseudo-module for 6LoWPAN members
...
This aims to reduce circular dependencies in GNRC.
2020-05-19 16:10:59 +02:00
Martine S. Lenders
0d2f0a5ba4
gnrc_netif: fix gnrc_netif_lorawan dependencies
2020-05-19 16:10:58 +02:00
Martine S. Lenders
a603504a6e
sock_util: add interface descriptor parsing to str2ep
2020-05-19 14:57:41 +02:00
bf35edf3c6
Merge pull request #14036 from jue89/fix/xtimer_on_ztimer
...
ztimer: pull in xtimer_on_ztimer only if ztimer_periph_timer is used
2020-05-19 12:26:12 +02:00
Hendrik van Essen
86f60357cf
sys/shell: refactor tokenizer code
...
The tokenizer (the code that breaks up the line given to the shell into
strings to create argv) was quite a messy piece of code. This commit
refactors it into a more traditional state-machine based parser.
This fixes the issues with quote handling exposed by the recently
introduced test.
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-05-18 14:31:46 +02:00
Aiman Ismail
7f883f4098
sock_dtls: add timeout to sock_dtls_send()
2020-05-18 09:45:14 +02:00
Michel Rottleuthner
740bb4e32e
sys/net/gnrc/sock: release pktsnip when message queue is full
2020-05-15 18:24:42 +02:00
Ken Bannister
f81dda2174
Merge pull request #14059 from miri64/gnrc_sock/fix/re-recv-signal
...
gnrc_sock: re-issue MSG_RECV event if there are still received messages after `*_recv()` was called.
2020-05-15 11:38:32 -04:00
608207c4fa
Merge pull request #13859 from disconnect3d/patch-1
...
shell_commands/rtc: Fix off by one when checking for clearalarm command
2020-05-14 21:20:06 +02:00
Marian Buschsieweke
74ada3e0d8
sys/ztimer: Fixed typo in doc
2020-05-14 20:28:18 +02:00
Leandro Lanzieri
4b3bfd3c83
gnrc/rpl: Expose configurations to Kconfig
2020-05-14 15:57:02 +02:00
Leandro Lanzieri
8ce77f2045
gnrc/rpl: Move GNRC_RPL_MSG_QUEUE_SIZE to 'CONFIG_' namespace
2020-05-14 15:57:02 +02:00
Leandro Lanzieri
2c04f54d28
gnrc/rpl: Move GNRC_RPL_DEFAULT_NETIF to 'CONFIG_' namespace
2020-05-14 15:57:01 +02:00
Leandro Lanzieri
d075b4dfe9
gnrc/rpl: Move GNRC_RPL_PARENT_TIMEOUT_DIS_RETRIES to 'CONFIG_'
2020-05-14 15:57:01 +02:00
Leandro Lanzieri
e547061d19
gnrc/rpl: Move GNRC_RPL_DEFAULT_INSTANCE to 'CONFIG_' namespace
2020-05-14 15:57:01 +02:00
Leandro Lanzieri
5a28e7cad4
gnrc/rpl: Move GNRC_RPL_DEFAULT_MAX_RANK_INCREASE to 'CONFIG_'
2020-05-14 15:57:00 +02:00
Leandro Lanzieri
1b6f915e0c
gnrc/rpl: Move GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE to 'CONFIG_'
2020-05-14 15:57:00 +02:00
Leandro Lanzieri
cd50686eb6
gnrc/rpl: Move GNRC_RPL_WITHOUT_VALIDATION to 'CONFIG_' namespace
...
Also check its value using IS_ACTIVE when possible.
2020-05-14 15:57:00 +02:00
Leandro Lanzieri
02b10105c1
gnrc/rpl: Move GNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN to 'CONFIG_'
2020-05-14 15:56:59 +02:00
Leandro Lanzieri
dfa722c519
gnrc/rpl: Move GNRC_RPL_WITHOUT_PIO to 'CONFIG_' namespace
...
Also evaluate its value using IS_ACTIVE when possible.
2020-05-14 15:56:59 +02:00
Leandro Lanzieri
88edfbad2c
gnrc/rpl: Add independent flags to set mode of operation
2020-05-14 15:56:58 +02:00
Leandro Lanzieri
908309f714
gnrc/rpl: Move GNRC_RPL_CLEANUP_TIME to 'CONFIG_' namespace
2020-05-14 15:56:58 +02:00
Leandro Lanzieri
33189b869e
gnrc/rpl: Move GNRC_RPL_DAO_DELAY_JITTER to 'CONFIG_' namespace
2020-05-14 15:56:58 +02:00
Leandro Lanzieri
3deab70a4c
gnrc/rpl: Move GNRC_RPL_DAO_DELAY_DEFAULT to 'CONFIG_' namespace
2020-05-14 15:56:57 +02:00
Leandro Lanzieri
c8fb88d2f0
gnrc/rpl: Move GNRC_RPL_DAO_DELAY_LONG to 'CONFIG_' namespace
2020-05-14 15:56:57 +02:00
Leandro Lanzieri
c162631aa3
gnrc/rpl: Move GNRC_RPL_DAO_ACK_DELAY to 'CONFIG_'
2020-05-14 15:56:57 +02:00
Leandro Lanzieri
df29a769ba
gnrc/rpl: Move GNRC_RPL_DAO_SEND_RETRIES to 'CONFIG_' namespace
2020-05-14 15:56:56 +02:00
Leandro Lanzieri
51939c3608
gnrc/rpl: Move GNRC_RPL_LIFETIME_UNIT to 'CONFIG_' namespace
2020-05-14 15:56:56 +02:00
Leandro Lanzieri
3b06b41fa9
gnrc/rpl: Move GNRC_RPL_DEFAULT_LIFETIME to 'CONFIG_' namespace
2020-05-14 15:56:56 +02:00
Leandro Lanzieri
c61b6bca38
gnrc/rpl: Move GNRC_RPL_DEFAULT_DIO_REDUNDANCY_CONSTANT to 'CONFIG_'
2020-05-14 15:56:55 +02:00
Leandro Lanzieri
f353ca8225
gnrc/rpl: Move GNRC_RPL_DEFAULT_DIO_INTERVAL_MIN to 'CONFIG_' namespace
2020-05-14 15:56:55 +02:00
Leandro Lanzieri
7216c21dbc
gnrc/rpl: Move GNRC_RPL_DEFAULT_DIO_INTERVAL_DOUBLINGS to 'CONFIG_'
2020-05-14 15:56:52 +02:00
Francisco
1f9d299492
Merge pull request #13196 from HendrikVE/shell-readline-refactor
...
sys/shell: refactor readline function
2020-05-14 15:32:45 +02:00
c1049bbd7a
Merge pull request #14072 from Meumeu/fix_ztimer_cpp
...
sys/ztimer: fix extern "C" guard
2020-05-13 22:20:06 +02:00
Guillaume Meunier
4967b141fa
sys/ztimer: fix extern "C" guard at the end of ztimer.h and ztimer/config.h
2020-05-13 21:31:17 +02:00
benpicco
88e4c0ffef
Merge pull request #14016 from benpicco/luid_get_be
...
sys/luid: provide luid_get_lb(), fix documentation
2020-05-13 21:14:31 +02:00
Benjamin Valentin
e195e0269c
sys/luid: provide luid_get_lb(), fix documentation
...
This does two things:
The documentation of `luid_get()` is wrong, or at least confusing.
It talks about
> an 8-bit incrementing counter value into the most significant byte
while the implementation does
((uint8_t *)buf)[0] ^= lastused++; // 0 is LSB!
Now it could be argued that the intention was that the ID is supposed
to be used in Big Endian contexts and that was an omission, however
to keep everyone's sanity, let's keep it simple and just state that this
actually changes the LSB.
Also add a `luid_get_lb()` function that does the same, but modifies the
most significant byte - or the last byte if looking at the index.
This can then be used directly by e.g. #13743
2020-05-13 20:47:53 +02:00
Martine Lenders
b031337e29
Merge pull request #14066 from jue89/fix/fmt_hex_bytes_null
...
sys/fmt: add fmt_hex_bytes size probing
2020-05-12 18:29:52 +02:00
Juergen Fitschen
aeb1230266
sys/fmt: add fmt_hex_bytes size probing
2020-05-12 17:39:25 +02:00
Martine Lenders
a6fe69b0e8
Merge pull request #13740 from miri64/gnrc_ipv6_nib/fix/abr-add-pio-iface
...
gnrc_ipv6_nib: only add prefix of same interface to ABR
2020-05-12 15:43:45 +02:00
Martine S. Lenders
d66583b542
gnrc_sock: re-issue MSG_RECV event if there are still received messages
...
... after `*_recv()` was called.
This prevents a client from needing to call `*_recv()` in a loop.
2020-05-12 14:01:56 +02:00
Martine Lenders
fcd36f7b77
Merge pull request #13975 from kaspar030/uncrustify_ztimer
...
sys/ztimer: uncrustify
2020-05-12 13:14:05 +02:00
Martine Lenders
4e6df34576
gnrc_ipv6_nib: only add prefix of same interface to ABR
...
It doesn't make sense for an Authoritative Border Router to manage a
prefix that does not belong to the border router's downstream
interface.
2020-05-12 13:06:20 +02:00
Disconnect3d
d91c19b727
shell/commands: fixed off by one when checking for clearalarm command
2020-05-12 12:39:25 +02:00
6ac3e12661
Merge pull request #14053 from PeterKietzmann/pr_random_sha1prng_optimize
...
sys/random: optimize sha1prng
2020-05-12 12:02:54 +02:00
ba9afe98c3
sys/ztimer: uncrustify
2020-05-11 16:43:50 +02:00
José Alamos
089e0a2b44
Merge pull request #14048 from jue89/fix/gnrc_lorawan_abp
...
net/gnrc/netif/lorawan: fix ABP device activation
2020-05-11 11:34:59 +02:00
PeterKietzmann
eb62ac6ff1
sys/random/sha1prng: make random_init use init_by_array
2020-05-11 10:38:44 +02:00
PeterKietzmann
54d6b0d096
sys/random/sha1prng: remove redundant sha1 update in state transistion
2020-05-11 10:37:24 +02:00
PeterKietzmann
3f626e39ab
sys/random/sha1prng: rename seed size to state size
2020-05-11 10:35:58 +02:00
Juergen Fitschen
1eb3b596c4
net/gnrc/netif/lorawan: fixed ABP device activation
2020-05-09 20:16:29 +02:00
Juergen Fitschen
255c76ff35
net/gnrc/netif/lorawan: fixed deprecated NETOPT_LINK_CONNECTED
2020-05-09 20:11:16 +02:00
Leandro Lanzieri
2d1d13d452
Merge pull request #14028 from miri64/gnrc_pktdump/fix/opt-deps
...
gnrc_pktdump: fix dependencies
2020-05-08 08:53:31 +02:00
398959ccaf
Merge pull request #13990 from fjmolinas/pr_ztimer_base
...
sys/ztimer: expose ZTIMER_MSEC/USEC_BASE
2020-05-07 13:35:39 +02:00
Ken Bannister
10a479c1c5
Merge pull request #13935 from cgundogan/pr/nanocoap/proxy_uri_parsing
...
nanocoap: add coap_get_proxy_uri()
2020-05-07 06:14:19 -04:00
Juergen Fitschen
bb0f7e5014
ztimer: pull in xtimer_on_ztimer only if ztimer_usec is used
2020-05-06 20:18:13 +02:00
Martine Lenders
18bd56d2d9
Merge pull request #13979 from benpicco/net/gnrc/netif/6lo-frag_size
...
gnrc/netif: 6lo: use 16 bit for max_frag_size
2020-05-06 12:43:02 +02:00
Francisco Molina
95e2221003
sys/ztimer/auto_init: use default configuration header
2020-05-06 11:27:10 +02:00
Francisco Molina
bc16809d9c
sys/include/ztimer: add configuration header
2020-05-06 11:27:10 +02:00
Francisco Molina
a1f3a8d668
sys/ztimer: expose ZTIMER_MSEC/USEC_BASE
...
ztimer_clock are meant to be chained. At the end of the chaine
there is always a timer device object (periph_rtt/rtc/timer).
Since ZTIMER_MSEC and ZTIMER_USEC can be the scaled/shifted with
respect to the base periph_rtt/rtc/timer it makes sense to chain
other ZTIMER_XXX on top of the base rtc/timer/rtt in order to avoid
chained convertions.
2020-05-06 11:22:40 +02:00
8ffd34ddd0
Merge pull request #12776 from maribu/test_event_wait_timeout
...
tests/event_wait_timeout: Fix for 8bit platforms
2020-05-05 21:33:06 +02:00
Martine S. Lenders
a349748354
gnrc_pktdump: reorder switch-cases in accordance with enum order
2020-05-05 21:05:00 +02:00
Martine S. Lenders
d43384d238
gnrc_pktdump: remove some duplicate calls to od_hex_dump()
...
`od_hex_dump()` is called if `hdr_len < pkt->size` to print the rest
after `hdr_len` of `pkt`. So if we just leave `hdr_len = 0` instead of
calling `od_hex_dump()` for every other NETTYPE, we achieve the same
effect.
As it is more effective (and already done in some cases) to re-set
`hdr_len` when the header was printed, we initialize `hdr_len` first
with 0 now.
2020-05-05 21:05:00 +02:00
Martine S. Lenders
5414164119
gnrc_pktdump: use gnrc_nettype_% module where appropriate
2020-05-05 21:05:00 +02:00
Leandro Lanzieri
34689a290c
Merge pull request #13994 from miri64/gnrc_nettype/enh/use-pseudomodules
...
gnrc_nettype: indirect NETTYPE definition via pseudo-modules
2020-05-05 20:59:44 +02:00
Martine S. Lenders
ae05e84a9b
gnrc_nettype: fix line-length for all to be <100
2020-05-05 19:16:06 +02:00
Martine S. Lenders
1c251beb03
gnrc_nettype: indirect NETTYPE definition via pseudo-modules
...
Instead of making a NETTYPE definition dependent on an implementation
module, this change makes it dependent on a pseudo-module for each
specific NETTYPE and makes the respective implementation modules
dependent on it.
This has two advantages:
- one does not need include the whole implementation module to
subscribe to a NETTYPE for testing or to provide an alternative
implementation
- A lot of circular dependencies related to GNRC could be untangled.
E.g. the only reason `gnrc_icmpv6` needs the `gnrc_ipv6` is because it
uses `GNRC_NETTYPE_IPV6` to search for the IPv6 header in an ICMPv6
when demultiplexing an ICMPv6 header.
This change does not resolve these dependencies or include usages where
needed. The only dependency change is the addition of the
pseudo-modules to the implementation modules.
2020-05-05 19:16:06 +02:00
benpicco
775b43fbd4
Merge pull request #13967 from fjmolinas/pr_ztimer_rtt_auto_init
...
sys/ztimer/auto_init: fix rtt auto_init
2020-05-05 14:34:48 +02:00
benpicco
96eadc00ad
Merge pull request #13987 from fjmolinas/pr_ztimer_xtimer_include_board.h
...
sys/include/xtimer.h: include board.h with ztimer
2020-05-05 14:21:43 +02:00
Leandro Lanzieri
8c88e4710a
Merge pull request #14020 from miri64/gnrc_netif/fix/doc-define
...
gnrc_netif: doxygen does not process IS_ACTIVE()
2020-05-05 13:38:31 +02:00
Francisco Molina
98a4e1bcf2
sys/include/xtimer.h: fix endif
2020-05-05 12:16:22 +02:00
MichelRottleuthner
50c7b1be8b
Merge pull request #11977 from JulianHolzwarth/pr/xtimer_rmutex_lock_timeout
...
xtimer/xtimer.c: xtimer_rmutex_lock_timeout
2020-05-05 11:54:03 +02:00
Martine S. Lenders
d141d0b13d
gnrc_netif: doxygen does not process IS_ACTIVE()
2020-05-05 10:17:30 +02:00
JulianHolzwarth
6c8b1f10b5
sys/include/c11_atomics_compat.hpp: fix for esp32
...
Fixes a problem with redefining ATOMIC_VAR_INIT for esp32
2020-05-04 17:56:09 +02:00
JulianHolzwarth
8ef9f0fc6e
sys/include/vfs.h: use c11_atomics_compat.hpp header wrapper
...
to solve a problem with c and c++ atomic
2020-05-04 17:56:09 +02:00
JulianHolzwarth
67e83c1e3e
sys/include/xtimer.h: new function xtimer_rmutex_lock_timeout()
2020-05-04 17:46:31 +02:00
JulianHolzwarth
6d6b93afdc
sys/xtimer/xtimer.c: new function xtimer_rmutex_lock_timeout()
...
function tries to acquire a mutex within a timeout
2020-05-04 17:46:31 +02:00
fc68d9c3a3
sys/ztimer: properly initialize intermediate extension callback
2020-05-04 17:25:27 +02:00
Ken Bannister
595e8c631f
Merge pull request #13726 from benpicco/nanocoap-payload_helper
...
nanocoap: add payload helper functions
2020-05-03 08:56:30 -04:00
benpicco
261ff8acb5
Merge pull request #14005 from francois-berder/fix-pm-args
...
sys/shell: commands: Check argc in _pm_handler
2020-05-03 14:10:26 +02:00
079df5a79b
Merge pull request #13992 from PeterKietzmann/pr_fix_minstd_sign
...
sys/random/minstd: fix signedness
2020-05-02 22:34:08 +02:00
Francois Berder
31cdcdd0a4
sys/shell: commands: Check argc in _pm_handler
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-05-02 20:55:28 +01:00
PeterKietzmann
9c5759112e
sys/random/minstd: remove vague description
2020-05-01 17:30:36 +02:00
PeterKietzmann
090efc10de
sys/random/minstd: fix signedness
2020-05-01 17:30:36 +02:00
benpicco
f42b4b4d2f
Merge pull request #13722 from jue89/feature/ztimer_pm-layered
...
sys/ztimer: add power management for ztimer clocks
2020-05-01 14:12:45 +02:00
benpicco
ee7ec7e3ac
Merge pull request #13978 from maribu/fix_pm_off
...
sys/pm: Fix behavior of fallback pm_off() implementation
2020-05-01 14:09:48 +02:00
Benjamin Valentin
e5c20b143d
nanocoap: add coap_payload_put_char()
2020-05-01 13:58:22 +02:00
Benjamin Valentin
2751708341
nanocoap: add payload helper functions
...
This adds two functions `coap_payload_add()` and `coap_payload_advance()`.
- `coap_payload_add()` will add n bytes to the payload buffer and advance
payload pointer accordingly.
const char hello[] = "Hello CoAP!";
coap_payload_add(pkt, hello, sizeof(hello));
- `coap_payload_advance()` will advance the payload buffer after data
has been added to it.
int len = snprintf(pkt->payload, pkt->payload_len, "%s %s!", "Hello", "CoAP");
coap_payload_advance(pkt, len);
I considered adding an additional parameter to keep track of the total request size
(returned size from coap_opt_finish() incremented by each added payload fragment),
but decided against it to keep consistency with the existing API.
2020-05-01 13:58:22 +02:00
Francisco Molina
46a2d9b9ab
sys/include/xtimer.h: include board.h with ztimer
2020-04-30 11:46:11 +02:00
Benjamin Valentin
18651eb399
gnrc_netif: Use full L2-PDU as IPv6 MTU
...
If the L2-PDU is greater than IPV6_MIN_MTU, use that as the MTU instead.
2020-04-29 12:49:36 +02:00
Benjamin Valentin
4065da8838
gnrc/netif: 6lo: use 16 bit for max_frag_size
...
Using 8 bit for `max_frag_size` limits that value to 255.
802.15.4g specifies a PDU of 2047 bytes which exceeds that limit.
Using a 16 bit value here allows to use the full L2 PDU.
Before:
12:02:16,300 # ping6 fe80::2068:3123:59f5:d238%8 -s 400
12:02:16,302 # sending 244 bytes
12:02:16,387 # sending 218 bytes
12:02:16,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=0 ttl=64 rssi=-49 dBm time=316.307 ms
12:02:17,302 # sending 244 bytes
12:02:17,387 # sending 218 bytes
12:02:17,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=1 ttl=64 rssi=-49 dBm time=316.307 ms
12:02:18,302 # sending 244 bytes
12:02:18,387 # sending 218 bytes
12:02:18,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=2 ttl=64 rssi=-50 dBm time=316.306 ms
12:02:18,625 #
12:02:18,629 # --- fe80::2068:3123:59f5:d238 PING statistics ---
With this patch:
12:09:44,276 # ping6 fe80::2068:3123:59f5:d238%8 -s 400
12:09:44,278 # sending 432 bytes
12:09:44,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=0 ttl=64 rssi=-52 dBm time=289.888 ms
12:09:45,279 # sending 432 bytes
12:09:45,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=1 ttl=64 rssi=-52 dBm time=289.885 ms
12:09:46,069 # sending 43 bytes
12:09:46,279 # sending 432 bytes
12:09:46,499 # sending 43 bytes
12:09:46,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=2 ttl=64 rssi=-47 dBm time=289.886 ms
12:09:46,574 #
12:09:46,578 # --- fe80::2068:3123:59f5:d238 PING statistics ---
2020-04-29 12:49:36 +02:00
Francisco
80b300289d
Merge pull request #13912 from benpicco/at86rf215-mr-qpsk
...
drivers/at86rf215: implement MR-O-QPSK
2020-04-29 12:44:00 +02:00
Marian Buschsieweke
a3e7abc2e2
sys/pm: Fix behavior of fallback pm_off() implementation
...
- pm_off() should prevent other threads from getting executed after it is
called, as it should turn off the MCU completely according to its doc
- Previously, the fallback implementation would still allow other threads
to continue working
- Simply disabling IRQs and never enabling them again should make sure
the MCU behaves like it would be completely off
- pm_off() should reduce the power consumption as much as possible
- Previously, when IRQs came after the call to pm_set_lowest() in the
fallback implementation of pm_off(), `while(1) {}` got executed at full
power consumption
- Just calling `pm_set(0);` in a loop while make sure that lowest power mode
is restored if the MCU wakes up again.
- The check if the lowest power mode is available is skipped, as no code
gets executed afterwards anyway
2020-04-29 12:08:12 +02:00
Marian Buschsieweke
f6873dbac3
sys/pm: Add pm_get_blocker()
...
Provide access to pm_blocker via a well-defined API rather than hacks.
2020-04-29 11:21:03 +02:00
Juergen Fitschen
73e22612e2
sys/ztimer: add power management for ztimer clocks
2020-04-29 10:55:10 +02:00
Benjamin Valentin
6ce0092982
shell/sc_gnrc_netif: fix vera++ errors
2020-04-29 10:41:37 +02:00
Benjamin Valentin
504d02038d
gnrc_netif: update PDU after changing PHY mode
2020-04-29 10:41:37 +02:00
Benjamin Valentin
c77119957f
shell/sc_gnrc_netif: fix space after NID
...
All option have a space behind them. This fixes the formatting of the
NID parameter if there are options after it.
2020-04-29 10:41:37 +02:00
Benjamin Valentin
fac35644d0
ieee802154: add definitions & config options for MR-O-QPSK
...
Define options for IEEE 802.15.4g MR-O-QPSK as well as shell commands
to set them via ifconfig.
2020-04-29 10:41:37 +02:00
Thomas Stilwell
325ab426d4
sys/shell/commands: pm: add set mode
block mode
unblock mode
2020-04-28 16:56:34 +02:00
Thomas Stilwell
7c82ac6838
sys/shell/commands: add pm show
command to view current blockers
2020-04-28 16:51:23 +02:00
Martine Lenders
633d0f486d
Merge pull request #13669 from bergzand/pr/netif/async_events
...
gnrc_netif: Add support for internal event loop
2020-04-28 13:03:39 +02:00
943450a567
Merge pull request #13959 from leandrolanzieri/pr/nanocoap/kconfig/add_type
...
nanocoap/kconfig: Explicitly define type of MODULE_NANOCOAP
2020-04-28 12:48:47 +02:00
Francisco Molina
da7e14dc66
sys/ztimer/auto_init: fix rtt auto_init
2020-04-28 09:11:44 +02:00
Leandro Lanzieri
b91c8502dc
net/nanocoap/kconfig: Explicitly define type of MODULE_NANOCOAP
2020-04-27 10:06:01 +02:00
Martine S. Lenders
cb8a6c36b0
gnrc_ipv6_nib: 6ln: use interface-specific DR for address registration
...
With multiple 6LoWPAN interfaces the router for the given interface
—the one the triggering RA came over—should be used to register the
address with.
Co-Authored-By: Benjamin Valentin <benpicco@googlemail.com>
2020-04-25 01:20:55 +02:00
Martine S. Lenders
245c04f368
gnrc_ipv6_nib: internal: add capability to search DR by interface
...
Co-Authored-By: Benjamin Valentin <benpicco@googlemail.com>
2020-04-24 17:57:09 +02:00
Leandro Lanzieri
eeea9b7dae
net/coap: Expose configurations to Kconfig
2020-04-24 10:06:45 +02:00
Leandro Lanzieri
9e427e1584
net/coap: Move COAP_MAX_RETRANSMIT to 'CONFIG' namespace
...
COAP_MAX_RETRANSMIT is moved to the compile time configuration macro
namespace.
2020-04-24 10:06:43 +02:00
Leandro Lanzieri
afe4244ac9
net/coap: Move COAP_RANDOM_FACTOR_1000 to 'CONFIG' namespace
...
COAP_RANDOM_FACTOR_1000 is moved to the compile time configuration macro
namespace.
2020-04-24 10:06:43 +02:00
Leandro Lanzieri
072a0d8563
net/coap: Move COAP_ACK_TIMEOUT to 'CONFIG' namespace
...
COAP_ACK_TIMEOUT is moved to the compile time configuration macro
namespace.
2020-04-24 10:06:40 +02:00
Cenk Gündoğan
4e05a66ca2
nanocoap: add proxy_uri parsing
2020-04-23 22:41:12 +02:00
Marian Buschsieweke
7b67e74bed
sys/net/gnrc: Use %lu to print times
2020-04-23 21:16:57 +02:00
Marian Buschsieweke
654b558343
sys/timex: Fix integer width issue
...
The macros US_PER_MS and friends are assumed to be 32 bit unsigned integers
by users. However, e.g. on AVR a `1000U` is only 16 bit long. Thus, e.g.
`xtimer_usleep(100 * US_PER_MS)` will wrap around and only sleep for ~34ms.
This commit declares them as unsigned long, which is on all currently supported
platforms 32 bit wide.
2020-04-23 21:16:04 +02:00
5e5ed8233d
Merge pull request #13922 from kaspar030/ztimer_rtt_maxval_fix
...
ztimer: periph_rtt: ensure RTT_MAX_VALUE is honored
2020-04-23 18:42:00 +02:00
d8c129fc47
ztimer: periph_rtt: ensure RTT_MAX_VALUE is honored
...
Previously, ztimer would happily set an absolute RTT alarm value that exceeds
RTT's maximum value (though not a longer interval), as the `val` was
simply added to `rtt_get_counter()`.
This commit ensures that the target value wraps around RTT_MAX_VALUE.
Fixes #13920 .
2020-04-23 16:19:25 +02:00
Cenk Gündoğan
ea616abfda
nanocoap: allow coap_opt_add_string() for zero-terminated strings
2020-04-22 12:28:48 +02:00
Leandro Lanzieri
46507ff247
Merge pull request #13894 from kb2ma/gcoap/ping
...
net/gcoap: add CoAP ping request
2020-04-21 12:23:54 +02:00
5293e5400c
Merge pull request #13210 from kaspar030/add_xtimer_left
...
sys/xtimer: remove uses of xtimer internal struct members
2020-04-21 12:15:41 +02:00
0228553384
sys/shell: rpl: make use of xtimer_left_usec()
2020-04-21 11:26:56 +02:00
df520a70a7
sys/evtimer: make use of xtimer_left_usec()
2020-04-21 11:26:56 +02:00
c9c8c98a4b
sys/xtimer: introduce xtimer_left_usec()
2020-04-21 11:26:56 +02:00
40cb065a45
Merge pull request #13839 from leandrolanzieri/pr/kconfig_migrate/sys/usbus_ecm
...
usbus/cdc/ecm: Expose configurations to Kconfig
2020-04-21 10:12:30 +02:00
Ken Bannister
cac350901f
Merge pull request #13893 from cgundogan/pr/nanocoap-get-opt-uint
...
nanocoap: export coap_opt_get_uint()
2020-04-18 10:00:27 -04:00
Martine Lenders
55a7010a0a
Merge pull request #13157 from nmeum/pr/fuzzing_tcp_only
...
Add AFL-based fuzzing setup for network modules
2020-04-18 10:54:14 +02:00
Cenk Gündoğan
6859de7855
nanocoap: export coap_opt_get_uint()
2020-04-17 22:39:44 +02:00
Sören Tempel
ac9c1f4a69
gnrc_tcp: disable checksum checks during fuzzing
2020-04-17 17:11:15 +02:00
Martine Lenders
652276f00f
gnrc_netif: provide PID-based version for netif ID
2020-04-17 16:59:21 +02:00
Martine S. Lenders
b8294f1ba0
netif: add functions to get and get by identifier
2020-04-17 16:59:21 +02:00
Ken Bannister
6eae4ded84
net/gcoap: create CoAP ping request
2020-04-17 08:15:20 -04:00
Ken Bannister
f5a85e2aff
net/gcoap: handle CoAP ping request
2020-04-17 08:15:20 -04:00
Ken Bannister
2d3eb1a343
net/nanocoap: validate empty message length
2020-04-17 08:15:20 -04:00
Joakim Nohlgård
2013ac75f5
gnrc_netif: Add support for internal event loop
...
Enabled by the gnrc_netif_events pseudo module. Using an internal event
loop within the gnrc_netif thread eliminates the risk of lost interrupts
and lets ISR events always be handled before any send/receive requests
from other threads are processed.
The events in the event loop is also a potential hook for MAC layers and
other link layer modules which may need to inject and process events
before any external IPC messages are handled.
Co-Authored-By: Koen Zandberg <koen@bergzand.net>
2020-04-17 12:02:39 +02:00
Benjamin Valentin
795cd165fd
ieee802154: add definitions for 802.15.4 PHY modes
...
This adds PHY modes for IEEE 802.15.4-2003 and IEEE 802.15.4g-2012.
2020-04-15 21:41:19 +02:00
Francisco Molina
2331448644
Makefile: remove usage of SUBMODULES_NOFORCE
...
With #10970 only existing *.c files will be added to SRC when using
the SUBMODULES mechanism, so SUBMODULES_NOFORCE (used to filter out
non existing source files) is now redundant so remove the usage.
2020-04-15 12:11:44 +02:00
benpicco
e499290f19
Merge pull request #13863 from yogo1212/rtc_iff
...
tm.h: fix typo
2020-04-14 23:02:25 +02:00
Hendrik van Essen
a0a3e6c3a1
sys/shell: refactor readline function
...
This makes the code of `readline()` clearer and shorter. It also fixes a
minor artifact of the long line handling.
Previously it was not possible to recover from a long line. That is, if too
many characters were sent, the line would be invalidated and pressing backspace
would not fix it- the only option was to discard the line. It is now possible
to bring the line back to size. Note that visual effects when deleting characters
will still depend on the host's terminal.
The new code is written in a way that all writes to memory are guarded by
bounds check, so an assertion was removed.
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-04-14 15:38:56 +02:00
Hendrik van Essen
45f898563a
sys/shell: remove ifdefs in the middle of code
...
ifdefs in the middle of code reduce the readability
and debugability and should be avoided.
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-04-14 15:38:54 +02:00
Hendrik van Essen
268d1b2305
sys/shell: remove useless "inline prevention"
...
There was some code added to "prevent putchar from being inlined", which
supposedly enlarged the code size.
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-04-14 14:34:58 +02:00
Leandro Lanzieri
b4655f6c91
Merge pull request #13848 from fjmolinas/pr_ccm_no_plaintext
...
sys/crypto/modes/ccm: handle input_len = 0
2020-04-14 10:49:54 +02:00
Martine S. Lenders
085c62ecdc
xtimer_core: piggy-back style fixes
2020-04-10 12:42:32 +02:00
Francisco Molina
8372286591
sys/crypto/modes/ccm: accept input_len=0
...
CCM may be used on messages with no plaintext data.
2020-04-10 10:41:01 +02:00
Martine S. Lenders
212fe15786
xtimer: set now pointer correctly in _update_short_timers() loop
...
This fixes `xtimer` to use `xtimer_now64()` instead of `xtimer_now()`
for updating the `*now` variable during the iteration in
`_update_short_timers()` function. The same function is used to
initialize `*now` in `_timer_callback()` below.
While using `xtimer_now()` in this iteration step does not hinder the
proper execution of all timers in the short term timers (for those the
`xtimer` module only looks at the `start_time` member, not the
`long_start_time` member) at least for the current long term time window
(I did not test higher cases), it sets the `long_start_time` member to 0
for all timers following in the list of timers after this iteration
step. However, external modules that rely on this to be correct,
e.g. evtimer [1], fail their calculations when trying to compare to
the current value to `xtimer_now64()`.
[1] https://github.com/RIOT-OS/RIOT/blob/11f3d68/sys/evtimer/evtimer.c#L118-L121
Co-Authored-By: Cenk Gündoğan <mail+dev@gundogan.net>
2020-04-10 00:02:33 +02:00
Leandro Lanzieri
a06d9bbb66
Merge pull request #13315 from jia200x/pr/kconfig/ieee802154
...
ieee802154: Expose configurations to Kconfig
2020-04-08 19:34:55 +02:00
Jose Alamos
77325b4cde
ieee802154: add CONFIG_ prefix to config macros
2020-04-08 19:08:25 +02:00
Jose Alamos
d33e44a85c
ieee802154: Expose configurations to Kconfig
2020-04-08 18:28:23 +02:00
Leandro Lanzieri
dddeb54e7d
usbus/cdc/ecm: Expose configurations to Kconfig
2020-04-08 16:31:46 +02:00
Leandro Lanzieri
8b857844fc
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED to 'CONFIG_'
2020-04-08 16:30:58 +02:00
Leandro Lanzieri
335b0ceb50
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED_UPSTREAM to 'CONFIG_'
2020-04-08 16:27:04 +02:00
Leandro Lanzieri
88e50658f3
usbus/cdc/ecm: Move USBUS_CDC_ECM_CONFIG_SPEED_DOWNSTREAM to 'CONFIG_'
2020-04-08 16:24:59 +02:00
14706d7423
Merge pull request #13243 from leandrolanzieri/pr/kconfig_migrate/net/nanocoap
...
net/nanocoap: Expose configurations to Kconfig
2020-04-08 10:51:54 +02:00
Martine Lenders
475048ab2f
Merge pull request #13833 from benpicco/dist/tools/sliptty-fix
...
gnrc_dhcpv6_client: fix for SLIP link-layer
2020-04-08 10:05:02 +02:00
Benjamin Valentin
f198d689be
gnrc_dhcpv6_client: fix for SLIP link-layer
...
In a point-to-point serial connection, we don't have L2 addresses.
Set the link type & packet length accordingly and we will get a
prefix from KEA.
2020-04-07 22:08:57 +02:00
Ken Bannister
1ff78879ff
net/nanocoap: remove obsolete functions to add Uri-Query option
2020-04-07 12:17:41 -04:00
Sören Tempel
65c7bbf76d
gnrc_sock: Implement termination condition for fuzzing
...
The termination condition implemented in gnrc_pktbuf_malloc does not
work when using the sock interface as sock copies packet data to a local
buffer and frees the packet afterwards. As such, the fuzzing application
would exit before performing any input processing.
For this reason, the termination condition in gnrc_pktbuf_malloc is
disabled when using sock. Instead, the application terminates if
gnrc_sock_recv previously returned the fuzzing packet. The underlying
assumption of this implementation is that gnrc_sock_recv is called in a
loop.
2020-04-07 17:48:39 +02:00
Sören Tempel
e0570181e4
gnrc_pktbuf_malloc: Terminate when fuzzing packet is freed
...
Since RIOT is an operating system the native binary will never terminate
[0]. The termination condition for fuzzing GNRC is that the packet was
handled by the network stack and therefore freed. If it is never freed
we will deadlock meaning a memory leak was found, afl should be able to
detect this through timeouts.
This is currently only supported for gnrc_pktbuf_malloc since this is
the pktbuf implementation I used for fuzzing. Implementing this in
pktbuf.h is not possible.
[0]: Except NATIVE_AUTO_EXIT is defined, however, even with that define
set RIOT will only terminate when all threads terminated. Unfortunately,
gnrc_udp and other network threads will never terminate.
2020-04-07 17:48:39 +02:00
Sören Tempel
9e72f717e0
sys/fuzzing: Initialize
...
This adds a utility module which is used to write applications for
fuzzing RIOT network modules. The module provides a dummy network
interface which is configured with a static IPv6 addresses for modules
which perform operations on the underlying network interface. Besides,
it contains a utility function for transforming data received on
standard input into a `gnrc_pktsnip_t`.
2020-04-07 17:48:39 +02:00
Leandro Lanzieri
0137a06896
net/nanocoap: Expose configurations to Kconfig
2020-04-07 17:00:55 +02:00
Leandro Lanzieri
e80dcf2d8b
net/application_layer: Add Kconfig file and CoAP menu
2020-04-07 17:00:54 +02:00
Leandro Lanzieri
b6be8af81c
net/nanocoap: Move NANOCOAP_QS_MAX to 'CONFIG_' namespace
2020-04-07 17:00:53 +02:00
Leandro Lanzieri
2f72189aa2
net/nanocoap: Move NANOCOAP_BLOCK_SIZE_EXP_MAX to 'CONFIG_' namespace
2020-04-07 17:00:53 +02:00
Leandro Lanzieri
4052c01e85
net/nanocoap: Move NANOCOAP_URI_MAX to 'CONFIG_' namespace
2020-04-07 17:00:53 +02:00
Leandro Lanzieri
c84576ef6e
net/nanocoap: Move NANOCOAP_NOPTS_MAX to 'CONFIG_' namespace
2020-04-07 17:00:52 +02:00
c81c8ed104
Merge pull request #13375 from leandrolanzieri/pr/kconfig_migrate/sys/usbus_cdc
...
usbus/cdc/acm: Expose configurations to Kconfig
2020-04-07 15:00:36 +02:00
Leandro Lanzieri
934bede70e
usbus/cdc/acm: Expose configurations to Kconfig
2020-04-07 14:34:57 +02:00
Leandro Lanzieri
51c4f119a5
usbus/cdc/acm: Move USBUS_CDC_ACM_BULK_EP_SIZE to 'CONFIG_' namespace
2020-04-07 14:34:56 +02:00
Leandro Lanzieri
cd3ac726d9
usbus/cdc/acm: Move USBUS_CDC_ACM_STDIO_BUF_SIZE to 'CONFIG_' namespace
2020-04-07 14:34:52 +02:00
Ken Bannister
b32fcd28d1
Merge pull request #13815 from kb2ma/nanocoap/add_canonical_uri_query
...
net/gcoap: add canonical uri query function names
2020-04-07 06:32:13 -04:00
Ken Bannister
5d95436334
net/cord: use canonical function name to add Uri-Query option
2020-04-06 06:19:44 -04:00
Ken Bannister
04d14ae104
net/gcoap: reference canonical function name to add Uri-Query option
2020-04-06 06:19:44 -04:00
Ken Bannister
d57340c964
net/nanocoap: use new Uri-Query functions as primary implementation
2020-04-06 06:19:44 -04:00
Cenk Gündoğan
abd399b934
Merge pull request #13804 from chrysn-pull-requests/uri-test-isabsolute
...
uri_parser: Fix and test non-relative recognition
2020-04-05 13:42:11 +02:00
Martine Lenders
5c95df3151
Merge pull request #13806 from benpicco/sys/net/dhcpv6-multiple_prefixes
...
sys/net/dhcpv6: fix requesting multiple prefixes
2020-04-05 01:14:27 +02:00
Ken Bannister
127f8ca407
Merge pull request #13805 from benpicco/nanocoap_path
...
nanocoap: add convenience function for adding path elements
2020-04-04 12:50:16 -04:00
Benjamin Valentin
c8b2483de5
net/gcoap: make use of coap_opt_add_path()
2020-04-04 17:06:04 +02:00
Benjamin Valentin
1a4a5d4a9e
nanocoap: add convenience function for adding path elements
...
Add a convenience function to make adding additional sub-path
options easier.
2020-04-04 17:06:04 +02:00
Ken Bannister
c463c45939
net/nanocoap: add canonical function names to add Uri-Query option
2020-04-04 07:56:58 -04:00
Benjamin Valentin
0e5595cffd
sys/net/dhcpv6: fix requesting multiple prefixes
...
There were two subtle bugs that prevented the DHCPv6 client to request
multiple prefixes for different interfaces.
- `dhcpv6_client_req_ia_pd()` would fill up *all* leases with the same interface
- `_parse_reply()` would return after parsing the first answer
With this patch, `gnrc_border_router` gets a prefix on both interfaces of the at86rf215.
2020-04-03 17:02:57 +02:00
chrysn
050af95666
uri_parser: Fix relative recognition
...
Relative refernces with colons in their names can not be told by their
first character alone.
2020-04-03 15:22:13 +02:00
Cenk Gündoğan
f1bf9693a6
Merge pull request #13803 from chrysn-pull-requests/uri-terminology-strictness
...
uri_parser: terminology strictness
2020-04-03 15:21:42 +02:00
Cenk Gündoğan
fca7548762
Merge pull request #13374 from leandrolanzieri/pr/kconfig_migrate/sys/usbus
...
sys/usbus: Expose configurations to Kconfig
2020-04-03 15:19:22 +02:00
Leandro Lanzieri
06920a1f7a
sys/usbus: Expose configurations to Kconfig
2020-04-03 14:45:27 +02:00
Leandro Lanzieri
4d47921947
sys/usbus: Move USBUS_EP0_SIZE to 'CONFIG_' namespace
2020-04-03 14:45:26 +02:00
Leandro Lanzieri
7bd5f86bdd
sys/usbus: Move USBUS_AUTO_ATTACH to 'CONFIG_' namespace
...
In code now 'IS_ACTIVE' is used to check for this configuration.
2020-04-03 14:45:25 +02:00
chrysn
7f67077338
uri_parser: Document that fragment identifiers are not handled
2020-04-03 14:32:55 +02:00
chrysn
6991f62338
uri_parser: Differentiate between URI and URI reference in documentation
2020-04-03 14:30:38 +02:00
Cenk Gündoğan
e3d9097974
sys/uri_parser: check for uri_end instead of 0
2020-04-02 10:04:12 +02:00
Martine Lenders
76acde0984
Merge pull request #13779 from miri64/sock/enh/sock_buf_recv-iterate-chunks
...
sock: amend API to iterate over stack-internal buffer chunks
2020-04-01 16:59:03 +02:00
Martine S. Lenders
d934579817
gnrc_sock: adapt for *_recv_buf() API change
2020-04-01 15:50:51 +02:00
Martine S. Lenders
58685af8a6
sock: sock_*_recv_buf: mark as experimental
2020-04-01 15:50:51 +02:00
Martine S. Lenders
f9e17ac025
sock: amend API to iterate over stack-internal chunks
...
With lwIP we have a chunked UDP payload, so just providing the
stack-internal buffer is not possible. To be able to iterate over such
a chunked payload, this change allows the `sock_*_recv_buf()` functions
to use the internal buffer context as an iteration state.
As the internal buffer space can be released when the function would
return 0, `sock_recv_buf_free()` becomes unnecessary.
2020-04-01 15:50:46 +02:00
Leandro Lanzieri
461f40949d
gnrc/ipv6: Group IPv6 related Kconfig files
2020-04-01 14:34:13 +02:00
Cenk Gündoğan
abc1cb17ca
sys/uri_parser: initialize has_authority in _consume_scheme()
2020-04-01 12:32:40 +02:00
Martine Lenders
d9b9426a86
Merge pull request #13758 from cgundogan/uri_parser
...
sys/uri_parser: minimal and non-destructive URI parsing
2020-04-01 00:40:27 +02:00
Cenk Gündoğan
b9012fb5d9
uri_parser: add minimal and non-destructive URI parser
2020-03-31 23:54:40 +02:00
Peter Kietzmann
767cfc21a9
Merge pull request #13341 from Einhornhool/cryptoauth-shellhandler
...
sys/shell: add shell handler for CryptoAuth devices
2020-03-31 22:19:21 +02:00
Lena Boeckmann
5bc0b15114
sys/shell: add cryptoauthlib shell handler
2020-03-31 21:31:24 +02:00
Martine Lenders
32d4b7eea5
Merge pull request #13755 from benpicco/base64-urlsafe
...
sys/base64: Implement Base 64 Encoding with URL and Filename Safe Alphabet
2020-03-31 20:15:23 +02:00
Leandro Lanzieri
aa2ec68c9c
gnrc/nib/conf.h: Align configuration values
2020-03-31 19:02:55 +02:00
Leandro Lanzieri
4476e06814
gnrc/uhcpc: Fix lines lengths
2020-03-31 19:02:55 +02:00
Leandro Lanzieri
184bbd32e5
gnrc/netif: Fix lines lengths
2020-03-31 19:02:54 +02:00
Leandro Lanzieri
87ac1a652d
gnrc/nib: Expose configurations to Kconfig
2020-03-31 19:02:51 +02:00
Benjamin Valentin
fc89531c61
sys/base64: Implement Base 64 Encoding with URL Safe Alphabet
...
RFC4648 specifies an alternate alphabet for base64 encoding / decoding
where '+' and '/' are exchanged for '-' and '-' to make the resulting
string safe to use in filenames and URLs.
This adds a base64url_encode() function that uses the alternate alphabet.
The base64_decode() function is extended to accept both alphabets.
2020-03-31 19:01:05 +02:00
Leandro Lanzieri
64dde8f317
gnrc/nib: Move GNRC_IPV6_NIB_ABR_NUMOF to 'CONFIG_' namespace
2020-03-31 18:07:13 +02:00
Leandro Lanzieri
a77d0dd9c5
gnrc/nib: Move GNRC_IPV6_NIB_OFFL_NUMOF to 'CONFIG_' namespace
2020-03-31 18:07:13 +02:00
Leandro Lanzieri
f6ee712e98
gnrc/nib: Move GNRC_IPV6_NIB_DEFAULT_ROUTER_NUMOF to 'CONFIG_' namespace
2020-03-31 18:07:12 +02:00
Leandro Lanzieri
f2ed8b06c0
gnrc/nib: Move GNRC_IPV6_NIB_L2ADDR_MAX_LEN to 'CONFIG_' namespace
2020-03-31 18:07:12 +02:00
Leandro Lanzieri
acd789bd87
gnrc/nib: Move GNRC_IPV6_NIB_CONF_REACH_TIME_RESET to 'CONFIG_'
2020-03-31 18:07:11 +02:00
Leandro Lanzieri
07771de08f
gnrc/nib: Move GNRC_IPV6_NIB_NUMOF to 'CONFIG_' namespace
2020-03-31 18:07:11 +02:00
Leandro Lanzieri
1f20ffc150
gnrc/nib: Move GNRC_IPV6_NIB_CONF_NO_RTR_SOL to 'CONFIG_' namespace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:10 +02:00
Leandro Lanzieri
53a522d642
gnrc/nib: Move GNRC_IPV6_NIB_CONF_MULTIHOP_P6C to 'CONFIG_' namespace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:10 +02:00
Leandro Lanzieri
22b4df9537
gnrc/nib: Move GNRC_IPV6_NIB_CONF_MULTIHOP_DAD to 'CONFIG_' namespace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:09 +02:00
Leandro Lanzieri
3ec296400d
gnrc/nib: Move GNRC_IPV6_NIB_CONF_DC to 'CONFIG_' namespace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:09 +02:00
Leandro Lanzieri
219d5a1de2
gnrc/nib: Move GNRC_IPV6_NIB_CONF_REDIRECT to 'CONFIG_' namspace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:08 +02:00
Leandro Lanzieri
42fb2fe09f
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ADV_ROUTER to 'CONFIG_' namespace
2020-03-31 18:07:08 +02:00
Leandro Lanzieri
bad9abd349
gnrc/nib: Move GNRC_IPV6_NIB_CONF_DNS to 'CONFIG_' namespace
...
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:07 +02:00
Leandro Lanzieri
e52b93cef0
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ARSM to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:07 +02:00
Leandro Lanzieri
f23267b67b
gnrc/nib: Move GNRC_IPV6_NIB_CONF_QUEUE_PKT to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:06 +02:00
Leandro Lanzieri
ce931f179c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_SLAAC to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Leandro Lanzieri
49ec28867c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ROUTER to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Leandro Lanzieri
1acfe7ae19
gnrc/nib: Move GNRC_IPV6_NIB_CONF_6LN to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:04 +02:00
Leandro Lanzieri
398bb6d025
gnrc/nib: Move GNRC_IPV6_NIB_CONF_6LR to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE
2020-03-31 18:07:03 +02:00
Leandro Lanzieri
40c78f1c75
gnrc/nib: Move GNRC_IPV6_NIB_CONF_6LBR to 'CONFIG_' namespace
...
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:03 +02:00
Benjamin Valentin
2867ab8b9b
sys/riotboot: add a warning about the size of riotboot_flashwrite_t
...
On e.g. samd5x FLASHPAGE_SIZE is 8k (4k on kinetis, stm32w, nrf52)
so placing this struct on the stack will almost always cause a stack
overflow.
2020-03-31 13:27:05 +02:00
Hendrik van Essen
3860355380
sys/shell: rephrase/reformat some comments
2020-03-30 12:26:20 +02:00
Juan Carrano
2810637306
sys/shell: correctly detect and handle long lines
...
The numeric value for EOF is -1. This caused the shell to return
the same code when EOF was encountered and when the line lenght was
exceeded. Additionally, if the line length is exceeded, the correct
behaviour is to consume the remaining characters until the end of
the line, to prevent the following line from containing (potentially
dangerous) garbage.
Co-authored-by: Hendrik van Essen <hendrik.ve@fu-berlin.de>
2020-03-30 12:26:20 +02:00
Martine Lenders
889e8b7cf8
Merge pull request #13752 from gschorcht/sys/shell/fix_gnrc_netif
...
sys/shell: fix ifconfig command for NETOPT_LINK
2020-03-30 09:44:13 +02:00
Gunar Schorcht
8a1cfd99da
sys/shell: fix ifconfig command for NETOPT_LINK
2020-03-30 09:01:21 +02:00
Ken Bannister
7d624def4e
Merge pull request #13637 from cgundogan/coap_proxy
...
gcoap: allow proxied client requests
2020-03-28 10:30:27 -04:00
Cenk Gündoğan
b1f728189c
net/gcoap: add note on proxy operation
2020-03-28 14:50:51 +01:00
Cenk Gündoğan
50900a1fbe
nanocoap: add convenience function for PROXY_URI
2020-03-28 14:50:51 +01:00
Benjamin Valentin
a3adaa7ec0
gnrc_ipv6_nib: fix index calculation
...
We must divide the pointer difference (in bytes) by the size of
the individual elements to get the index of the element.
2020-03-28 00:00:16 +01:00
Benjamin Valentin
a835ad3e13
gnrc_ipv6_nib: append ext_opts when adding sixco
2020-03-27 22:52:31 +01:00
Cenk Gündoğan
97c5d2d82d
coap: add Proxy-* options
2020-03-27 22:06:42 +01:00
benpicco
8024380f7b
Merge pull request #13700 from miri64/gnrc_sock/enh/recv_buf
...
gnrc_sock: provide implementation for `sock_*_recv_buf()`
2020-03-27 16:34:57 +01:00
Benjamin Valentin
e1ce24abec
shell/gnrc_icmpv6_echo: replace incorrect use of gnrc_netif_highlander()
...
We want to check if there *is* only one interface, not if there *can*
be no more than one interface here.
2020-03-27 15:07:38 +01:00
benpicco
15dc9fe0de
Merge pull request #13731 from benpicco/upstream_no_rtr_adv
...
gnrc_uhcp, gnrc_dhcpv6_client_6lbr: disable Router Advertisements on upstream interface
2020-03-27 10:32:59 +01:00
Benjamin Valentin
3f24eaefb9
gnrc_uhcp: disable router advertisements on upstream interface
2020-03-27 00:37:54 +01:00
Benjamin Valentin
fec156899c
gnrc_dhcpv6_client_6lbr: disable router advertisements on upstream interface
...
We don't want to advertise ourselves as a router to the upstream router.
This also leads to the border router ignoring advertisements from the upstream
router.
2020-03-27 00:37:54 +01:00
JulianHolzwarth
dd6e51b1eb
core/mutex.c _mutex_lock uses an int pointer
...
_mutex_lock uses a volatile int pointer for the parameter blocking instead of an int.
2020-03-26 17:26:07 +01:00
José Alamos
18c4cfe2ec
Merge pull request #13725 from miri64/gnrc_netif/doc/out-params
...
gnrc_netif: document new *_create() out parameter as such
2020-03-26 15:21:06 +01:00
Martine Lenders
f39cfc7556
Merge pull request #13253 from nmeum/pr/random_ephemeral_port
...
gnrc_sock_udp: choose random ephemeral port
2020-03-26 15:00:14 +01:00
Martine S. Lenders
62d48d5bf3
gnrc_netif: document new *_create() out parameter as such
2020-03-26 14:37:44 +01:00
Martine Lenders
061eb88c05
Merge pull request #12994 from jia200x/pr/gnrc_netif_desc_alloc
...
gnrc_netif: implementation of dynamic GNRC_NETIF_NUMOF approach
2020-03-26 14:30:44 +01:00
Jose Alamos
44f7cb712c
gnrc_netif: add GNRC_NETIF_SINGLE macro
2020-03-26 14:19:02 +01:00
Martine Lenders
cba1a2da0c
Merge pull request #13666 from jue89/feature/evtimer_now_msec
...
net/gnrc/ipv6/nib: remove direct dependency to xtimer
2020-03-26 13:50:13 +01:00
Jose Alamos
e451570219
gnrc_netif: remove GNRC_NETIF_NUMOF macro
2020-03-26 11:12:23 +01:00
Jose Alamos
67ed9defbe
gnrc_netif_xxx_create: use external netif allocation
2020-03-26 11:12:23 +01:00
Juergen Fitschen
c42677609b
sys/ztimer: remove duplicate definition of _ztimer_now_extend()
2020-03-26 10:48:56 +01:00
Marian Buschsieweke
937361856d
Merge pull request #13702 from ccoors/feature/esp32-ws281x
...
drivers/ws281x: Add support for esp32
2020-03-25 21:39:40 +01:00
Martine Lenders
ab5deca3b0
Merge pull request #13712 from miri64/gnrc_uhcp/fix/prefix_len
...
gnrc_uhcp: use actually advertised prefix length
2020-03-25 18:46:00 +01:00
Christian Friedrich Coors
c0615ad726
sys/timex: Add NS_PER_SEC definition
2020-03-25 17:20:01 +01:00
Martine S. Lenders
01d94f268a
gnrc_uhcp: use actually advertised prefix length
...
This makes the UHCP client to use the actually advertised prefix length
instead of assuming /64.
2020-03-25 16:55:01 +01:00
benpicco
6ae0fd7c82
Merge pull request #13485 from miri64/gnrc_dhcpv6/enh/configure-context
...
gnrc_dhcpv6_client: configure prefix as compression context on 6LBRs
2020-03-25 16:48:11 +01:00
benpicco
53790d1269
Merge pull request #13713 from miri64/gnrc_sixlowpan_iphc/bug/encode-zero-header
...
gnrc_sixlowpan_iphc: zero IPv6 header before decompressing into it
2020-03-25 16:43:17 +01:00
4c59e93a35
Merge pull request #13711 from cgundogan/pr/nanocoap/coap_opt_get_opaque/const
...
nanocoap: add const qualifier to pkt of coap_opt_get_opaque()
2020-03-25 15:21:23 +01:00
Martine S. Lenders
ac222521ab
gnrc_sixlowpan_iphc: zero IPv6 header before decompressing into it
2020-03-25 14:54:18 +01:00
Cenk Gündoğan
5e42e26a6e
nanocoap: add const qualifier to pkt of coap_opt_get_opaque()
2020-03-25 13:38:21 +01:00
Martine S. Lenders
4fc0251b4b
gnrc_ipv6_nib: only route to prefix list entry if on-link
...
In 06aa65e1ba
(#10627 ) a new behavior was
introduced in IPv6 route resolution to try address resolution only at
interfaces that have the prefix of the address to be resolved configured
in the prefix list. This however only makes sense, if the prefix
configured is [on-link], otherwise there is small likelihood of the
address to be resolved being on that link.
For the error case presented for 06aa65e
(circular routing at the border
router) this made sense, however within a 6LoWPAN, due to the prefix
being valid for the entire mesh, this leads to the nodes always trying
classic address resolution for in-network addresses instead of just
routing to the default route.
Classic address resolution however fails, as 6LoWPAN hosts typically
[don't join the solicited-node multicast address of their unicast
addresses][6LN-iface-init], resulting in in-network addresses not being
reachable.
As such, to prevent both error cases
- the fallback to address resolution by prefix list must only be used
when the prefix is on-link,
- the prefix configured by DHCPv6/UHCP at the 6LoWPAN border router
must be configured as on-link, but
- the prefix must not be advertised as on-link within the 6LoWPAN to
still be [in line with RFC 6775][RFC-6775-forbidden]
With this change these cases are covered.
[on-link]: https://tools.ietf.org/html/rfc4861#page-6
[RFC 6775]: https://tools.ietf.org/html/rfc6775
[6LN-iface-init]: https://tools.ietf.org/html/rfc6775#section-5.2
[RFC-6775-forbidden]: https://tools.ietf.org/html/rfc6775#section-6.1
2020-03-25 13:13:40 +01:00
Martine Lenders
e47c8fa91c
Merge pull request #10627 from miri64/gnrc_ipv6_nib/fix/forward-to-pl
...
gnrc_ipv6_nib: don't ignore PL for route
2020-03-24 21:49:56 +01:00
Martine Lenders
06aa65e1ba
gnrc_ipv6_nib: don't ignore PL for route
...
When pinging to a prefix for which there is a prefix list entry on the
node (so no next hop) but a default route, a packet to a non-existent
address under that prefix results in the packet being forwarded to the
default route instead. This fixes it, so the node tries address
resolution on the interface the prefix list entry is associated to.
2020-03-24 18:19:18 +01:00
Martine S. Lenders
39cd293a0e
gnrc_sock: provide implementation for sock_*_recv_buf()
2020-03-24 17:15:17 +01:00
Martine Lenders
ba711c50bf
Merge pull request #13616 from miri64/sock/enh/recv_buf
...
sock: amend with zero-copy receive functions
2020-03-24 17:10:12 +01:00
Martine S. Lenders
2ed7a7345f
sock_udp: fix doc of sock objects
2020-03-24 14:02:36 +01:00
Martine S. Lenders
a7d468988d
sock: amend with zero-copy receive functions
...
This change amends the `sock` API by a set of functions to `sock` that
allow provisioning of stack-internal buffers to the caller on receive.
This allows to cover two use-cases
1. Zero-copy systems: if the stacks supported the buffer space provided
by these functions can be the same that was filled in the link-layer
2. asynchronous receive within a wrapping sock layer (e.g. `sock_dtls`
wrapping `sock_udp`): to receive packets of the lower level protocol
asynchronously, the wrapping implementation layer would currently
need to allocate its own buffer space, introducing a third buffer
space in addition to the one of the application and the network
stack. For a wrapping layer this is undesirable.
While there are security considerations exposing stack internal memory
space to the caller, I believe they are minor, as in the end the
application developer is the person in control of the node.
2020-03-24 14:02:36 +01:00
Leandro Lanzieri
877db8c00e
Merge pull request #13557 from gschorcht/doc/fix_url
...
doc: fix broken links
2020-03-24 13:08:18 +01:00
Juergen Fitschen
877e0a9b32
net/gnrc/ipv6/nib: fix typos
2020-03-24 13:07:20 +01:00
Juergen Fitschen
47f5cd8618
net/gnrc/ipv6/nib: make use of the evtimer system time getter
...
This commit removes the implication that evtimer uses xtimer as timer backend.
2020-03-24 13:07:20 +01:00
Juergen Fitschen
47b8439cd8
sys/evtimer: add helper for retrieving the current system time
2020-03-24 13:07:19 +01:00
Gunar Schorcht
62e55bb8c0
sys/net/lorawan: fix broken links
2020-03-24 10:39:49 +01:00
Gunar Schorcht
b1ad00eb11
sys/net/eui64: fix broken links
2020-03-24 10:39:49 +01:00
Gunar Schorcht
a4b21a46cb
sys/embUnit: fix broken links
2020-03-24 10:39:49 +01:00
Gunar Schorcht
10cdaa1bd6
sys/can: fix broken links
2020-03-24 10:39:49 +01:00
e12defd5a0
suit/transport/coap: Use nanocoap coap_tree_handler
2020-03-24 09:38:24 +01:00
1d5010e126
nanocoap: make separate tree handling function
...
This refactors nanocoap to seperate out the resource tree parsing. It
allows for calling the tree handler with custom resource trees. The
advantage is that a resource with COAP_MATCH_SUBTREE can parse a new
separate resource tree.
2020-03-23 15:08:53 +01:00
7d0c475113
Merge pull request #13486 from bergzand/pr/suit/ietf_v3
...
SUIT: Update to draft-ietf-v3
2020-03-20 14:44:29 +01:00
Francisco
cdbf0b2d69
Merge pull request #13583 from benpicco/at86rf215-minimal
...
drivers/at86rf215: add basic support for AT86RF215 dual-band radio
2020-03-20 09:33:50 +01:00
benpicco
5435792034
Merge pull request #12277 from benemorius/pr/kw41zrf
...
drivers: add kw41zrf
2020-03-20 00:49:56 +01:00
Joakim Nohlgård
5bd67d88a8
drivers/kw41zrf: Transceiver driver for the KW41Z radio
...
This is the radio found in NXP Kinetis KW41Z, KW21Z. Only 802.15.4 mode
is implemented (KW41Z also supports BLE on the same transceiver).
The driver uses vendor supplied initialization code for the low level
XCVR hardware, these files were imported from KSDK 2.2.0 (framework_5.3.5)
2020-03-19 17:00:04 -05:00
1d1d5b6f0d
examples/suit: Refactor to draft ietf-v3
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
413b91326f
tests/suit_v3_manifest: Add draft-ietf-v3 manifest parser test
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
benpicco
b0fab9c53a
Merge pull request #13638 from gschorcht/sys/shell/rtt_command
...
sys/shell: add rtt command
2020-03-19 21:21:12 +01:00
Gunar Schorcht
3d20b0b6c5
sys/shell: add rtt command
2020-03-19 17:17:26 +01:00
Benjamin Valentin
d35511bee7
drivers/at86rf215: Add basic driver for the AT86RF215 radio
...
This adds a driver for the SPI based AT86RF215 transceiver.
The chip supports the IEEE Std 802.15.4-2015 and IEEE Std 802.15.4g-2012 standard.
This driver supports two versions of the chip:
- AT86RF215: dual sub-GHz & 2.4 GHz radio & baseband
- AT86RF215M: sub-GHz radio & baseband only
Both radios support the following PHY modes:
- MR-FSK
- MR-OFDM
- MR-O-QPKS
- O-QPSK (legacy)
The driver currently only implements support for legacy O-QPSK.
To use both interfaces, add
GNRC_NETIF_NUMOF := 2
to your Makefile.
The transceiver is able to send frames of up to 2047 bytes according to
IEEE 802.15.4g-2012 when operating in non-legacy mode.
Known issues:
- [ ] dBm setting values are bogus
- [ ] Channel spacing for sub-GHz MR-O-QPSK might be wrong
- [ ] TX/RX stress test will lock up the driver on openmote-b
2020-03-19 14:39:18 +01:00
14bdf8f46b
sys/suit: Add SUIT draft ietf-v3 firmware upgrade module
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-18 14:13:12 +01:00
182cb8735b
sys: periph_uart is required for arduino
2020-03-18 10:53:17 +01:00
95bf34ee9c
makefiles: sys/cdc-acm-stdio: provide a reset in bootloader hook
2020-03-18 10:43:05 +01:00
643187c1e4
sys: add usb_board_reset module
2020-03-18 10:43:05 +01:00
6538687a4c
Merge pull request #13613 from fjmolinas/pr_light_shell_interactive_sync
...
tests: add interactive_sync adapted to shell
2020-03-17 18:16:51 +01:00
Francisco Molina
a31003a23c
tests: add interactive_sync adapted to shell
2020-03-17 17:23:27 +01:00
Francisco Molina
d57c39f09f
sys/shell: remove sc_interactive_sync
2020-03-17 17:20:58 +01:00
Jose Alamos
c2e491d2b7
gnrc_netif: change macros to inline functions
2020-03-17 10:54:30 +01:00
Jose Alamos
4393822b0f
gnrc_netif: add function to check if device requires 6Lo
2020-03-17 10:54:30 +01:00
Jose Alamos
6ace7b5472
gnrc_netif: use gnrc_netif_single where possible
2020-03-17 10:54:30 +01:00
Jose Alamos
121626b362
gnrc_netif: add function to check if single GNRC netif
2020-03-17 10:50:49 +01:00
Leandro Lanzieri
d281d4843f
Merge pull request #13628 from jia200x/pr/gnrc_rpl_macro
...
gnrc_rpl: add default value to GNRC_RPL_DEFAULT_NETIF
2020-03-13 15:47:13 +01:00
Jose Alamos
b553535cea
gnrc_rpl_auto_init: replace preprocessor logic with if chain
2020-03-13 13:30:29 +01:00
Ken Bannister
ec2aff4546
Merge pull request #13240 from kb2ma/gcoap/deprecate_add_qstring
...
net/coap: deprecate gcoap_add_qstring() and update uses
2020-03-13 08:04:50 -04:00
Martine Lenders
20e30ec58b
Merge pull request #13622 from gschorcht/net/dhcpv6_fix_opt_len
...
sys/net/dhcpv6: fixes option length handling in client implementation
2020-03-12 18:56:43 +01:00
Jose Alamos
062643091c
gnrc_rpl: add default value to GNRC_RPL_DEFAULT_NETIF
2020-03-12 18:50:18 +01:00
Gunar Schorcht
a25c61bc8b
sys/net/dhcpv6: fix client option length handling
2020-03-12 18:33:17 +01:00
benpicco
1212165222
Merge pull request #13584 from kb2ma/nanocoap/add_uquery_improvements
...
net/nanocoap: add uquery improvements
2020-03-12 15:18:07 +01:00
benpicco
d5c7d28b38
Merge pull request #10745 from kaspar030/make_idle_stacksize_configurable
...
cpu: make default idle/main stacksizes configurable on all archs
2020-03-12 14:38:32 +01:00
Robert Hartung
dc6665d5cf
Merge pull request #12717 from dylad/pr/bme680_pkg_driver
...
driver/bme680: add I2C/SPI driver for BME680 device
2020-03-12 14:00:40 +01:00
Ken Bannister
e6b20b4ce7
net/nanocoap: Fix return value doc for coap_opt_add_uqueryX()
2020-03-12 08:44:26 -04:00
Ken Bannister
c55837d809
net/nanocoap: add query option directly
2020-03-12 08:44:26 -04:00
b2278b64a8
sys/ps: ignore IST_STACKSIZE if it is == 0 (undefined)
2020-03-12 13:08:05 +01:00
Leandro Lanzieri
b3aa417d9f
Merge pull request #13605 from jia200x/pr/nib_fix_parenthesis
...
gnrc_ipv6_nib: remove parenthesis from boolean configs
2020-03-12 10:10:10 +01:00
Gunar Schorcht
558322bc6f
sys/phydat: add ohm as unit
2020-03-12 08:42:59 +01:00
Martine Lenders
72d28d54e5
Merge pull request #13615 from miri64/sock_async/api/callback-arg
...
sock_async: add optional callback argument
2020-03-11 20:07:18 +01:00
Martine Lenders
086d0ac83e
Merge pull request #13152 from miri64/shell_commands/enh/version
...
shell_commands: provide command to print version
2020-03-11 18:36:43 +01:00
Martine S. Lenders
411e320b0c
sock_async_event: update for async callback argument support
2020-03-11 16:54:12 +01:00
Martine S. Lenders
4bdd138021
gnrc_sock: update implementation for async callback argument
2020-03-11 16:54:11 +01:00
Martine S. Lenders
612e782b3c
sock_async: supply optional callback argument with callback setter
2020-03-11 16:54:11 +01:00
Martine S. Lenders
6e6e435c65
sock_async: add optional callback argument
2020-03-11 16:54:11 +01:00
Jose Alamos
c5cba0733f
gnrc_ipv6_nib: remove parenthesis from boolean configs
2020-03-10 12:30:12 +01:00
b45f4236de
sys/ztimer: make ztimer_overhead() return signed value (int32_t)
2020-03-10 12:23:33 +01:00
c2f9700f5e
Merge pull request #13570 from kaspar030/ztimer_allow_adjust_config
...
sys/ztimer: allow "adjust" config for ztimer_usec, ztimer_msec
2020-03-10 11:58:21 +01:00
benpicco
6f7293d7c3
Merge pull request #13559 from aabadie/pr/sys/crypto_modules_rework
...
sys/crypto: define cipher using a module instead of CFLAGS
2020-03-09 19:41:27 +01:00
803698037a
Merge pull request #13554 from OTAkeys/fix/memarray_init
...
memarray: fix memarray init
2020-03-09 19:21:33 +01:00
benpicco
d405cb7dd1
Merge pull request #13577 from kaspar030/fix_ztimer_rtt_logic
...
sys/ztimer: fix typo in rtt conversion selection
2020-03-09 19:11:07 +01:00
Vincent Dupont
97cfd1e512
memarray: fix memarray init
...
If memarray data is not initialized to 0 (for instance during a
re-init). The last element of the array is not properly cleared thus
leading to returning an invalid pointer when everything is allocated.
2020-03-09 17:56:34 +01:00
MichelRottleuthner
26f3caf9d7
Merge pull request #13495 from pokgak/pr/sock_dtls/fix_timeout_when_waiting
...
examples/dtls-sock: fix timeout msg stays in mbox
2020-03-09 16:33:05 +01:00
Aiman Ismail
aa3cbacceb
net/sock_dtls: do not put msg in mbox on timeout
2020-03-09 15:08:52 +01:00
José Alamos
de4a1bf552
Merge pull request #13595 from gschorcht/gnrc/lorawan/fix_downlink_handling
...
gnrc/lorawan: fixes the handling of downlink frames without payload
2020-03-09 15:08:25 +01:00
Martine S. Lenders
c110337f6a
gnrc_dhcpv6_client: only configure 6Lo-ND features if interface is 6LN
2020-03-09 14:21:53 +01:00
Martine S. Lenders
06d1d79ffa
gnrc_dhcpv6_client: configure prefix as compression context on 6LBRs
2020-03-09 14:21:53 +01:00
Martine S. Lenders
079b9f717f
gnrc_dhcpv6_client: replace #if
guards with if expressions
2020-03-09 14:21:52 +01:00
Gunar Schorcht
de38fc5e2e
gnrc/lorawan: fix handling of downlink message without payload
2020-03-09 12:33:03 +01:00
Gunar Schorcht
32c78e3317
gnrc/lorawan: fix netopt_state_t size in link_layer
...
`netopt_state_t` is an enumeration type which is not necessarily 1 byte. If `uint8_t` is used, the cast `*((const netopt_state_t*) val` in `sx127x_netdev::_set`tries to read the real size, which can be more than the given length of 1 byte. Therefore, `netstat_opt_t` has to be used instead of `uint8_t`
2020-03-08 17:10:24 +01:00
Martine Lenders
c30f83ac3b
Merge pull request #13579 from jia200x/pr/gnrc_netif_send
...
gnrc_netif_send: add send function
2020-03-06 20:07:45 +01:00
0b082d8cff
sys: extend crypto_* dependency resolution
...
Add dependency resolution for crypto_aes_unroll and
crypto_aes_precalculated pseudomodules
Co-authored-by Gunar Schorcht <gunar@schorcht.net>
2020-03-06 19:54:23 +01:00
08162f72b6
sys/crypto: update documentation
2020-03-06 19:49:58 +01:00
f6c4e269b1
sys/crypto: define ciphers via pseudomodules
2020-03-06 19:49:58 +01:00
benpicco
dc89c279b2
Merge pull request #13574 from jue89/fix/ztimer_rtt
...
sys/ztimer: fix RTT backend
2020-03-06 18:29:16 +01:00
57985806c1
Merge pull request #13562 from jia200x/pr/netdev_irq_end
...
netdev: add netdev_trigger_event_isr() function
2020-03-06 15:37:24 +01:00
Jose Alamos
6143cd800b
gnrc_netif: use gnrc_netif_send where possible
2020-03-06 15:22:58 +01:00
Jose Alamos
ca54366712
gnrc_netif: add send function
2020-03-06 15:22:43 +01:00
962679282e
sys/ztimer: fix typo in rtt conversion selection
2020-03-06 14:49:56 +01:00
Gunar Schorcht
fc37d7bf81
Merge pull request #13427 from miri64/lwip/enh/sock_async
...
lwip: provide sock_async support
2020-03-06 14:37:54 +01:00
Juergen Fitschen
61334c3034
ztimer: fix RTT backend
2020-03-06 14:22:06 +01:00
2ad4ea67e9
sys/ztimer: allow configuring ZTIMER_[UM]SEC adjust value
2020-03-06 14:17:29 +01:00
Jose Alamos
3ad574a822
drivers/netdev: use netdev_trigger_event_isr function
2020-03-06 14:03:43 +01:00
7acb889a32
Merge pull request #13569 from kaspar030/ztimer_auto_init_log_debug
...
sys/ztimer: make auto_init use LOG_DEBUG
2020-03-06 13:28:07 +01:00
Ken Bannister
2fb2a3b260
Merge pull request #13022 from pokgak/pr/gcoap/gcoap_add_qstring_with_len
...
nanocoap: add coap_opt_add_uquery2() with parameter key value length
2020-03-06 06:09:35 -05:00
c05d0bed66
sys/ztimer: make auto_init use LOG_DEBUG
2020-03-06 11:25:35 +01:00
ed316309c8
Merge pull request #11874 from kaspar030/ztimer
...
sys/ztimer: initial import
2020-03-06 09:46:27 +01:00
MichelRottleuthner
d8cb8a2839
Merge pull request #13199 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/short_time_fix
...
xtimer/xtimer.c: xtimer_mutex_lock_timeout fix with short timeout
2020-03-06 09:31:40 +01:00
Martine S. Lenders
f159b86b8a
gnrc_uhcpc: only configure 6Lo-ND features if wireless-interface is 6LN
...
Otherwise the border router has no way to disseminate the context
throughout the network.
2020-03-05 19:59:27 +01:00
Aiman Ismail
64f9658472
nanocoap: add coap_opt_add_uquery2()
2020-03-05 19:06:14 +01:00
JulianHolzwarth
4d85fa16e0
xtimer/xtimer.c: _mutex_remove_thread_from_waiting_queue
...
This function tries to remove the thread from a mutex waiting queue.
The value pointed to by unlocked will be set to 1 if the thread was removed from the waiting queue otherwise 0.
2020-03-05 19:05:34 +01:00
JulianHolzwarth
bce45fd9d8
xtimer/xtimer.c: xtimer_mutex_lock_timeout fix test
...
Handling timeout smaller than XTIMER_BACKOFF (the timer spins) when the mutex is already locked.
This fixes the test tests/xtimer_mutex_lock_timeout/main.c:mutex_timeout_spin_locked.
2020-03-05 18:56:35 +01:00
JulianHolzwarth
dfeaea3c36
sys/xtimer/xtimer.c: comment change
2020-03-05 18:45:27 +01:00
Martine Lenders
c1a34ce860
Merge pull request #13560 from miri64/gnrc_uhcpc/fix/rm-before-adding
...
gnrc_uhcpc: ensure compression context is managed by the ABR
2020-03-05 17:12:45 +01:00
benpicco
7af046d740
Merge pull request #13548 from benpicco/sys/auto_init/netif-manual
...
sys/auto_init: allow delayed initialisation of SAUL & gnrc_netif
2020-03-05 17:05:02 +01:00
Martine S. Lenders
eacd0814d2
gnrc_uhcpc: remove wild comment
2020-03-05 15:51:52 +01:00
Martine S. Lenders
081499e280
gnrc_uhcpc: add compression context before ABR
...
This way the context is added to the ABR's context list automatically.
2020-03-05 15:51:52 +01:00
Martine S. Lenders
f626e5e7ef
gnrc_uhcpc: remove old prefix before adding new
2020-03-05 15:51:52 +01:00
Benjamin Valentin
4f7d5b105b
sys/net/gnrc: Flag esp_now as 6LN
...
In gnrc_netif_init_6ln() the flag GNRC_NETIF_FLAGS_6LN is accidentally not set
for esp_now devices. This commit fixes this.
2020-03-05 15:18:43 +01:00
Benjamin Valentin
521b1ce440
sys/auto_init: allow delayed initialisation of SAUL
...
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
Benjamin Valentin
d765098d72
sys/auto_init: allow delayed initialisation of gnrc_netif
...
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
dd218333c2
sys/ztimer: add xtimer_on_ztimer
...
This commit adds logic to make xtimer use ztimer_usec as backend
(instead of periph_timer). This allows ztimer_usec and xtimer to
coexist. It also allows xtimer to profit from eventually implemented
power mode blocking in ztimer's periph_timer backend.
2020-03-04 12:44:03 +01:00
21613b0aa6
sys/ztimer: adapt to DEFAULT_MODULE based auto_init scheme
2020-03-04 12:44:03 +01:00
8c1e577a06
sys/ztimer: move dependencies to sys/ztimer/Makefile.dep
2020-03-04 12:44:03 +01:00
616daff945
sys/ztimer: introduce xtimer wrapper
2020-03-04 12:44:02 +01:00
eccb6e89ed
sys/ztimer: add coccinelle script for xtimer -> ztimer conversion
2020-03-04 12:44:02 +01:00
6dd79366bb
sys: add ztimer subsystem
...
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2020-03-04 12:44:02 +01:00
benpicco
0c8ddd6620
Merge pull request #13542 from miri64/auto_init/enh/IS_USED
...
auto_init: some more cleanup and unification
2020-03-04 00:25:38 +01:00
Martine S. Lenders
6765ff8a77
auto_init: use IS_USED()
to check if module is used
2020-03-03 17:42:12 +01:00
Martine S. Lenders
43c153ce1a
auto_init: move grouped initializations to own function
2020-03-03 17:42:05 +01:00
Martine Lenders
e7047cb85e
Merge pull request #13539 from miri64/gnrc_uhcpc/fix/null-ptr
...
gnrc_uhcpc: fix NULL pointer dereference
2020-03-03 16:56:59 +01:00
Martine S. Lenders
b04e01a19f
auto_init: replace remaining DEBUG
with LOG_DEBUG
...
Follow-up on dfeb4116c8
2020-03-03 16:39:20 +01:00
Martine S. Lenders
4160439eab
auto_init: unify init function declarations
2020-03-03 16:39:19 +01:00
4f7d7c03b4
Merge pull request #13364 from kaspar030/auto_init_more_Debug
...
sys/auto_init: cleanup / unify / DEBUG -> LOG_DEBUG
2020-03-03 16:06:35 +01:00
Martine S. Lenders
6c5d9e4f39
gnrc_uhcpc: fix NULL pointer dereference
2020-03-03 13:56:56 +01:00
Sebastian Meiling
448aa46e66
Merge pull request #13509 from gschorcht/sys/phydat/improve_dump_test
...
sys/phydat: improvement of phydat_dump including test application
2020-03-03 09:09:40 +01:00
Dylan Laduranty
ee8b837b51
Merge pull request #13512 from fjmolinas/pr_interactive_sync_disable
...
tests: handle cml interactive_sync disabling
2020-03-02 09:39:53 +01:00
Francisco Molina
091ab15912
sys/test_utils/interactive_sync: allow module disabling
...
If the header file is included test_utils_interactive_sync() will
be defined as an empty function when the module is not used, e.g.
added to DISABLE_MODULES in tests/*
2020-03-02 08:50:18 +01:00
Benjamin Valentin
2f6bf38d17
net/eui64: provide 32 bit access
...
Allow to read the eui64 as two 32 bit values.
2020-03-01 18:37:51 +01:00
benpicco
6dd69e7134
Merge pull request #13515 from gschorcht/sys/newlib_multiheap_stats
...
sys/newlib_syscalls_default: update heap_stats for multiple heaps
2020-02-29 13:59:03 +01:00
Gunar Schorcht
1eabcb9566
sys/phydat: improvements of formatting in dump
2020-02-29 12:36:55 +01:00
Gunar Schorcht
fd1052bc9a
sys/newlib: update heap_stats for multiple heaps
2020-02-29 12:24:39 +01:00
Gunar Schorcht
b1228beb68
sys/phydat: add data and time in dump
2020-02-28 16:27:34 +01:00
Gunar Schorcht
4e77c7eb7b
sys/phydat: add unit permille in dump
2020-02-28 15:29:06 +01:00
ddee330bbd
sys/net/sock/sock_util: use MODULE_FMT instead of RIOT_VERSION
...
sock_util used ot check RIOT_VERSION for selecting fmt functions.
RIOT's Makefile.dep sets fmt as a dependency for sock_util,
so the usual MODULE_FMT can be used.
One special case less.
2020-02-28 12:13:44 +01:00
benpicco
244c7da050
Merge pull request #13026 from brummer-simon/gnrc_tcp-prepare_for_sock_integration
...
gnrc_tcp: Prepare for sock integration.
2020-02-26 23:22:58 +01:00
Simon Brummer
10872d9a85
gnrc_tcp: Add Endpoints for connection specification
2020-02-26 21:24:06 +01:00
ef8daaf7be
suit: remove moran-v4 version of the parser
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-02-26 14:54:16 +01:00
ad7c19d584
Merge pull request #8576 from miri64/gnrc_uhcpc/enh/update-context
...
gnrc_uhcpc: update compression context with new prefix
2020-02-26 14:20:44 +01:00
benpicco
6a0b399b7f
Merge pull request #13474 from gschorcht/sys/expect_reduce_avr_ram
...
sys/test_utils: reduce the RAM usage by `expect` on AVR
2020-02-26 14:20:08 +01:00
Martine S. Lenders
d99d0a0df0
gnrc_uhcpc: use LOG_INFO() for configuration information
2020-02-26 13:22:56 +01:00
Martine Lenders
8cc9c5ebe7
gnrc_uhcpc: update compression context with new prefix
...
This updates (or adds) a compression context whenever a new prefix
arrives at the border router. This allows 6LoWPAN to compress said
prefix in the network.
Sadly, there is now way to just remove the context when the prefix is
overwritten, so I do not do it. If an administrator chooses to reset the
prefix they can use `6ctx del` which timeouts the prefix appropriately,
but IMHO it doesn't hurt to keep the old contexts.
2020-02-26 13:22:56 +01:00
Martine Lenders
ec6c07d35d
Merge pull request #13424 from miri64/examples/enh/dhcpv6-br
...
examples/gnrc_border_router: add optional DHCPv6 support
2020-02-25 20:08:31 +01:00
Gunar Schorcht
f688f84a15
Merge pull request #12928 from benpicco/newlib-multiheap
...
sys/newlib: enable multiple heaps in _sbrk_r()
2020-02-25 19:16:42 +01:00
Gunar Schorcht
9c726e7eb5
sys: reduce RAM usage by expect
on AVR
2020-02-25 16:43:04 +01:00
0e7e1b76cd
sys: remove exports of UNDEF vars
2020-02-25 09:40:34 +01:00
benpicco
d044800300
Merge pull request #13450 from benpicco/dns-fixes
...
fix DNS resolution in ping6
2020-02-24 21:58:34 +01:00
benpicco
ad56ba8453
Merge pull request #13455 from miri64/sock_async/fix/include-sock_async_ctx.h
...
sock_async: include `sock_async_ctx.h` before sock-types
2020-02-24 19:09:33 +01:00
Ken Bannister
a2c5ec789b
Merge pull request #13454 from kb2ma/gcoap/fix_vera_warnings
...
net/gcoap: fix vera++ warnings
2020-02-24 12:53:11 -05:00
Benjamin Valentin
fa4447241f
sock_dns: make sock_dns_query() return the length of the address
...
The implementation already did that, now also reflect this in the
documentation.
2020-02-24 14:29:17 +01:00
Benjamin Valentin
1de14931b8
sock_dns: use the same buffer for request & reply
...
Saving RAM is more important than saving a few cycles
used by re-creating the request buffer in the error case.
Also reduce the size of the buffer to 128 bytes.
If we are just requesting the AAAA record it is unlikely
for the reply to take up the maximum size of 512 bytes.
We were already placing restrictions on the domain name length,
those are now actually a bit more relaxed (112 bytes instead of 64)
2020-02-24 14:29:17 +01:00
Benjamin Valentin
367f19d390
shell/gnrc_icmpv6_echo: don't do DNS lookup for plain IP
...
When using ping6 with an IP address, don't do a DNS lookup.
Hostnames can't contain ':', so use that to tell them apart
from plain IP addressees.
2020-02-24 14:21:54 +01:00
Benjamin Valentin
a65daf7a31
shell/gnrc_icmpv6_echo: set success state if DNS query succeeded
...
We need to set `res` to 0 to signal success, otherwise we end up
in the print usage case.
2020-02-24 14:21:54 +01:00
Benjamin Valentin
e9a40933f7
sock_dns: fix off-by-one error in _parse_dns_reply()
2020-02-24 14:19:50 +01:00
63f805c5b7
Merge pull request #13268 from kaspar030/add_expect_header
...
sys/test_utils: add expect() header
2020-02-24 13:34:16 +01:00
Martine S. Lenders
9b4dac7f3e
sock_async: include sock_async_ctx.h
before sock-types
...
This way, the sock-types can use the sock_async_ctx_t type in their
definition without including `sock_async_ctx.h` (potentially creating
further cyclic includes).
2020-02-24 12:33:38 +01:00
Ken Bannister
e98a6e5932
net/gcoap: update copyright date
2020-02-24 06:22:04 -05:00
Ken Bannister
c8cd3f0229
net/gcoap: fix vera++ code style warnings
2020-02-24 06:20:43 -05:00
36bb7741ac
sys/test_utils: add "expect()"
2020-02-24 11:45:33 +01:00
1e74280308
Merge pull request #13270 from wosym/conn_cann_native
...
tests/conn_can: fix build error on native
2020-02-24 10:39:29 +01:00
Martine Lenders
cba056d560
Merge pull request #13386 from kb2ma/gcoap/sock_async
...
net/gcoap: use sock_async and events
2020-02-23 16:17:53 +01:00
Ken Bannister
9b63abb718
net/gcoap: cast required for pic32 platform
...
Fixes bug found during rework for sock_async implementation.
2020-02-22 05:46:07 -05:00
Ken Bannister
0dc1e4c4e7
net/gcoap: fix when no timeout event
...
Fixes bug found during rework for sock_async implementation.
2020-02-22 05:46:07 -05:00
Benjamin Valentin
f5a5c5dd2c
shell/gnrc_icmpv6_echo: fix build with USEMODULE += sock_dns
...
To be able to call sock_dns_query() in _configure(), we also
need to include the header file.
2020-02-21 23:56:33 +01:00
f257765ce9
Merge pull request #13433 from haukepetersen/fix_trickle_misc
...
sys/trickle: remove redundant pid assignment
2020-02-21 20:06:08 +01:00
Martine S. Lenders
0f391a554e
sock_async_event: fix typo in tcp_queue function
...
This was never checked at compile time before so a naming error sneaked
in.
2020-02-21 19:07:47 +01:00
Gunar Schorcht
8dc53cfd7a
Merge pull request #13438 from miri64/sock_async_event/fix/race-condition
...
sock_async_event: fix race-condition
2020-02-21 19:04:30 +01:00
benpicco
aa00191384
Merge pull request #13256 from MichelRottleuthner/pr_sps30
...
Add driver for SPS30 particulate matter sensor
2020-02-21 18:58:56 +01:00
Martine Lenders
d26355fbb4
sock_async_event: fix race-condition
...
If a new event is fired during the execution of the event callback,
`event->type` might change. However as `event->type` is set to 0 after
the execution of the callback, that leads to it being 0 on the next
round of the event handler's execution, leading in the event getting
lost.
2020-02-21 15:52:12 +01:00
benpicco
32e7e840fc
Merge pull request #13428 from benpicco/ping6_ifname
...
shell/gnrc_icmpv6_echo: print interface id in reply
2020-02-21 15:39:55 +01:00
Benjamin Valentin
d572db83e1
shell/gnrc_icmpv6_echo: print interface id in reply
...
If there is more than one interface, print the id of the receiving
interface for convenience.
```
ping6 ff02::1
2020-02-20 18:19:38,644 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=0 ttl=64 rssi=-45 dBm time=4.801 ms
2020-02-20 18:19:38,652 # 12 bytes from fe80::d0ae:c1b:2054:58c%8: icmp_seq=0 ttl=64 rssi=-63 dBm time=13.422 ms (DUP!)
2020-02-20 18:19:38,661 # 12 bytes from fe80::c78:16d9:8aca:ba9a%8: icmp_seq=0 ttl=64 rssi=-44 dBm time=21.819 ms (DUP!)
2020-02-20 18:19:39,648 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=1 ttl=64 rssi=-44 dBm time=4.797 ms
2020-02-20 18:19:39,657 # 12 bytes from fe80::d0ae:c1b:2054:58c%8: icmp_seq=1 ttl=64 rssi=-61 dBm time=12.917 ms (DUP!)
2020-02-20 18:19:39,666 # 12 bytes from fe80::c78:16d9:8aca:ba9a%8: icmp_seq=1 ttl=64 rssi=-43 dBm time=21.679 ms (DUP!)
2020-02-20 18:19:40,657 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=2 ttl=64 rssi=-41 dBm time=4.795 ms
```
2020-02-21 13:59:52 +01:00
Hauke Petersen
8cb56fba2d
sys/trickle: remove redundant pid assignment
2020-02-21 13:26:24 +01:00
Benjamin Valentin
2ed0dd7405
sys/newlib: enable multiple heaps in _sbrk_r
...
Some MCUs have non-continuous memory regions.
To support those, iterate over all available memory regions
and allocate the first region that fits.
2020-02-20 17:11:25 +01:00
Martine S. Lenders
b929d013d8
dhcpv6_client: re-send SOLICITs after failed ADVERTISE
2020-02-20 16:41:48 +01:00
benpicco
336bfe54a9
Merge pull request #13366 from bergzand/pr/littlefs2/add_pkg
...
pkg/littlefs2: Add package for LittleFS v2.x.y
2020-02-20 16:23:59 +01:00
Leandro Lanzieri
ec0e18b821
Merge pull request #12906 from nmeum/pr/remove_gnrc_tftp
...
gnrc_tftp: remove module
2020-02-20 15:19:23 +01:00
9b02c7b4ee
pkg/littlefs2: Add package for LittleFS v2.x.y
2020-02-20 14:51:45 +01:00
Michel Rottleuthner
7e089bce7b
drivers/sps30: add saul integration
2020-02-20 14:26:55 +01:00
Michel Rottleuthner
36fca364f8
sys/phydat: add unit for count per cubic meter
2020-02-20 14:26:55 +01:00
benpicco
410542df90
Merge pull request #13420 from Einhornhool/fix-issue13353
...
sys/ecc: fix assertion in golay2412
2020-02-20 14:18:55 +01:00
Lena Boeckmann
463178a892
sys/ecc: fix assertion in golay2412
2020-02-20 13:24:14 +01:00
640cbfe77e
Merge pull request #13405 from kaspar030/introduce_riotboot_slot_offset
...
sys/riotboot: provide riotboot_slot_offset()
2020-02-20 13:03:29 +01:00
Sören Tempel
0e2a620788
gnrc_tftp: remove module
...
Has been deprecated for awhile (01fc3d8f0b
).
2020-02-20 12:04:01 +01:00
benpicco
030e7ebc06
Merge pull request #13307 from miri64/dhcpv6-client-6lbr/feat/init
...
gnrc_dhcpv6_client_6lbr: initial import of a 6LBR DHCPv6 client
2020-02-20 11:00:35 +01:00
Martine Lenders
c6331bfc77
Merge pull request #13379 from cgundogan/pr/gnrc_rpl_p2p
...
gnrc_rpl_p2p: several compilation fixes
2020-02-20 10:25:55 +01:00
Martine S. Lenders
db463a3373
gnrc_dhcpv6_client_6lbr: initial import of a 6LBR DHCPv6 client
2020-02-19 17:37:47 +01:00
Martine Lenders
056127bc00
Merge pull request #13396 from leandrolanzieri/pr/net/remove_nhdp
...
net: Remove NHDP module
2020-02-19 14:34:58 +01:00
9ede06fbbb
sys/suit: make use of riotboot_slot_offset()
2020-02-19 10:08:47 +01:00
87fcd061a8
sys/riotboot: provide riotboot_slot_offset()
2020-02-19 10:04:52 +01:00
Leandro Lanzieri
9026823bb9
net: Remove NHDP module
...
NHDP has been flagged as deprecated in
056bd35e6c
, due to lack of maintenance.
2020-02-18 13:20:05 +01:00
8c7ebbdc4f
suit: cleanup of TinyCBOR to NanoCBOR refactor
2020-02-18 11:26:40 +01:00
9866cdd411
Merge pull request #13380 from kaspar030/pm_blocker_one_value
...
sys/pm_layered: change PM_BLOCKER_INITIAL to single value
2020-02-17 13:07:02 +01:00
Sören Tempel
5cf433806e
gnrc_sock_udp: fix null check in port generation function
...
Still check if the port is unused if no socket has been given.
2020-02-17 10:20:22 +01:00
Ken Bannister
d6fa3c7c2f
net/gcoap: add timeout event/handler for server response
2020-02-16 09:17:48 -05:00
Ken Bannister
ea62734baf
net/gcoap: add sock_async event handling
...
Rework from earlier custom event/msg handling.
2020-02-16 09:17:48 -05:00
e1e43118da
suit: Remove non-standard hello handler
2020-02-14 21:38:52 +01:00
f66fd7b1ca
sys/pm_layered: change PM_BLOCKER_INITIAL to single value
2020-02-14 12:05:59 +01:00
Cenk Gündoğan
08c3dedf38
gnrc_rpl_p2p: use correct netif functions
2020-02-14 11:42:33 +01:00
Cenk Gündoğan
50423d60cf
gnrc_rpl_p2p: use correct parameters for trickle_start()
2020-02-14 11:41:56 +01:00
Cenk Gündoğan
4b58e5d41b
gnrc_rpl_p2p: fix cleanup timer usage
2020-02-14 11:41:30 +01:00
benpicco
da78d03e95
Merge pull request #13338 from chrysn-pull-requests/coap-no-deduplication
...
nanocoap: State handler idempotentcy requirement
2020-02-13 17:36:28 +01:00
Hauke Petersen
e06cbce940
sys/event: add event_wait_timeout64()
2020-02-13 16:18:32 +01:00
fc40b54cae
Merge pull request #13371 from haukepetersen/add_xtimer_settimeoutflag64
...
xtimer: add xtimer_set_timeout_flag64()
2020-02-13 16:16:45 +01:00
Hauke Petersen
58e381979f
xtimer: add xtimer_set_timeout_flag64()
2020-02-13 15:37:14 +01:00
Hauke Petersen
b92f5ccd15
xtimer: properly expose xtimer_usleep64()
2020-02-13 15:13:47 +01:00
8c16e3fef0
sys/auto_init: cleanup / unify debug messages
2020-02-13 11:50:16 +01:00
dfeb4116c8
sys/auto_init: DEBUG -> LOG_DEBUG
2020-02-13 11:50:16 +01:00
87a50c2d6f
sys/auto_init: add more DEBUG messages
2020-02-13 11:49:10 +01:00
aa9388b238
Merge pull request #13089 from fjmolinas/pr_auto_init_default_modules
...
Makefile.dep: auto_init_% as DEFAULT_MODULES
2020-02-12 17:22:34 +01:00
Francisco Molina
e446920cd2
Makefile.dep: add auto_init_gnrc_% MODULEs
2020-02-12 16:51:29 +01:00
Francisco Molina
afc43bf314
Makefile.dep: add auto_init_lwip MODULE
2020-02-12 16:51:29 +01:00
Francisco Molina
802216ce53
Makefile.dep: add auto_init_at86rf2xx MODULE
2020-02-12 16:51:27 +01:00
Francisco Molina
73bf2293bc
Makefile.dep: add auto_init_random MODULE
2020-02-12 16:51:25 +01:00
Francisco Molina
a5a036be43
Makefile.dep: add auto_init_xtimer pseudomodule
2020-02-12 16:51:22 +01:00
ca5ed3e34e
Merge pull request #13352 from fjmolinas/pr_suit_progress_unused_vars
...
sys/suit/coap: fix unused vars
2020-02-12 16:12:42 +01:00
Francisco Molina
1a9deef303
sys/suit/coap: fix unused vars
2020-02-12 14:58:56 +01:00
benpicco
5b608ef712
Merge pull request #12766 from miri64/gnrc_netapi/enh/report-error
...
gnrc_netapi: report errors on dispatch
2020-02-11 23:41:39 +01:00
Martine S. Lenders
a0740ee535
gnrc_netapi: report errors on dispatch
2020-02-11 18:16:02 +01:00
c30df3cac9
Merge pull request #7572 from kaspar030/zptr
...
core: add pointer compression header
2020-02-11 15:25:24 +01:00
5dc32b14cc
sys: zptr: initial commit
...
Provides functionality to compress pointers from 32bit to 16bit if
possible.
2020-02-11 13:59:59 +01:00
chrysn
83c889320d
nanocoap: State handler idempotentcy requirement
...
Closes: https://github.com/RIOT-OS/RIOT/issues/12938
2020-02-11 11:12:08 +01:00
Martine S. Lenders
e94aa40bf5
gnrc_pktbuf: deprecate gnrc_pktbuf_replace_snip()
...
The function is unused and unneeded since 69d9ecc0d9
and
https://github.com/RIOT-OS/RIOT/issues/5089 calls to provide unittests.
2020-02-11 09:49:57 +01:00
Martine Lenders
ebb20f2d44
Merge pull request #13305 from miri64/gnrc_ipv6_ext_frag_stats/feat/initial
...
gnrc_ipv6_ext_frag: initial import of statistics module
2020-02-10 20:23:13 +01:00
benpicco
f997f42ade
Merge pull request #13304 from miri64/gnrc_sixlowpan_frag_stats/enh/count-avg-fragments
...
gnrc_sixlowpan_frag_stats: add average fragments per datagram statistic
2020-02-10 15:23:52 +01:00
Wouter Symons
ae947d5c81
sys/can/conn: Fixup unused code
2020-02-07 13:35:25 +01:00
Gunar Schorcht
3514eecf9d
Merge pull request #12474 from kaspar030/add_event_threads
...
sys: add shared event threads
2020-02-07 13:29:29 +01:00
e01ad86eb3
sys/event: add shared event threads
2020-02-07 12:17:56 +01:00
Martine S. Lenders
cf69e61289
gnrc_ipv6_ext_frag: initial import of statistics module
2020-02-06 13:48:42 +01:00
Martine S. Lenders
ed9f43ab3a
gnrc_sixlowpan_frag_stats: add average fragments per datagram statistic
2020-02-06 13:40:23 +01:00
benpicco
9607977e15
Merge pull request #13294 from miri64/shell_commands/cleanup/throw-out-non-existant
...
shell_commands: remove old and redundant lines
2020-02-05 14:46:14 +01:00
Martine S. Lenders
27b86f91c0
shell_commands: remove old and redundant lines
2020-02-05 13:35:48 +01:00
Karl Fessel
4445faaa3a
core/shed: remove not needed bitarithm include add missing
...
bitarithm.h is not needed for the interface of shed but may cause conflicts
due to different definitions of SETBIT and CLRBIT
common implementations are: (value, offset) xor (value, mask) bitarithm
implements the later
frac.c and nrf52/usbdev.c use bitarithm.h but where missing the include
sam0/rtt.c defined a bit using mask from bitarithm,
changed that to the soulution used in sam0/rtc.c
2020-02-05 12:45:29 +01:00
Sören Tempel
b37bed8a1d
gnrc_sock_udp: choose random ephemeral port
...
Implements a random ephemeral port selection as per the second algorithm
from RFC 6056, see https://tools.ietf.org/html/rfc6056#section-3.3.2 .
2020-02-03 16:55:00 +01:00
Leandro Lanzieri
5e1ef498a7
Merge pull request #13245 from miri64/gnrc_sixlowpan_frag_rb/enh/doc-fix-kconfig
...
gnrc_sixlowpan_frag_rb: fix doc on DO_NOT_OVERRIDE
2020-02-03 13:54:37 +01:00
Martine Lenders
02c16479cf
Merge pull request #13244 from miri64/gnrc_ipv6_ext/enh/rbuf-do-not-override
...
gnrc_ipv6_ext_frag: add configuration option to keep oldest entry
2020-02-03 13:23:20 +01:00
Martine S. Lenders
90ed5bf4af
gnrc_sixlowpan_frag_rb: fix doc on DO_NOT_OVERRIDE
2020-02-03 12:48:19 +01:00
Martine S. Lenders
d99012561a
gnrc_ipv6_ext_frag: add configuration option to keep oldest entry
2020-02-03 12:44:15 +01:00
Gunar Schorcht
34555748dd
sys/arduino: fix of compilation error with NDEBUG
...
When NDEBUG macro is defined during compilation, the assert macro produces empty code. Parameters or variables checked with assert are then unused.
2020-02-03 00:22:37 +01:00
Martine S. Lenders
7e4078a6d1
net/ipv6/ext/rh.h: remove unneeded header includes
...
Only `<stdint.h>` is used by that header so all the other ones can go.
2020-01-31 18:01:34 +01:00
benpicco
c7b0483549
Merge pull request #12879 from miri64/gnrc_sixlowpan_iphc/feat/nhc-ext
...
gnrc_sixlowpan_iphc: add support for IPv6 extension header compression
2020-01-31 12:02:47 +01:00
Peter Kietzmann
92c7a7a452
Merge pull request #13014 from Einhornhool/cryptoauthlib_implementation
...
pkg: add library for Microchip CryptoAuth devices as package
2020-01-31 00:28:30 +01:00
Einhornhool
3dae0ddde5
sys/auto_init: add security module and cryptoauth init
2020-01-30 23:51:48 +01:00
Cenk Gündoğan
0cf8bf1665
Merge pull request #12958 from leandrolanzieri/pr/kconfig_migrate/gnrc/ipv6_ext_hdr
...
Kconfig: Expose gnrc/ipv6/ext/frag configurations
2020-01-30 19:15:08 +01:00
Martine S. Lenders
0b3f785dfe
gnrc_sixlowpan_iphc: add extension header decoding
2020-01-30 17:59:59 +01:00
Leandro Lanzieri
fe820d8d9d
Kconfig: Expose gnrc/ipv6/ext/frag configurations
2020-01-30 17:42:42 +01:00
Leandro Lanzieri
5602bd55ed
gnrc/ipv6/ext/frag: Move configurations to 'CONFIG_' namespace
...
Macros that changed:
GNRC_IPV6_EXT_FRAG_SEND_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_SEND_SIZE
GNRC_IPV6_EXT_FRAG_RBUF_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_RBUF_SIZE
GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE
GNRC_IPV6_EXT_FRAG_RBUF_TIMEOUT_US -> CONFIG_GNRC_IPV6_EXT_FRAG_RBUF_TIMEOUT_US
2020-01-30 17:42:41 +01:00
Martine Lenders
8d749dc024
Merge pull request #13148 from chrysn-pull-requests/usb-default-vidpid
...
USB: Use default VID/PID for RIOT-included peripherals
2020-01-30 17:37:52 +01:00
chrysn
cca756da27
USB VID/PID: Add text to outline what may use the 7D00 PID
2020-01-30 15:04:26 +01:00
chrysn
763ce7a9bf
USB VID/PID: Move check inside usb.h include guards
...
As the whitelist define can be set per compilation unit in all
legitimate cases, the checks do not need to be run on every single usb.h
inclusion. This is done for two reaons:
* It is sufficient -- if any user C file includes usb.h, there's already
a good chance that the user is doing something USB related manualy.
(And conversely, the existing examples with boards that happen to pull
in CDC-ACM or CDC-ECM do not include usb.h from an example C file).
* Defining the USB_H_USER_IS_RIOT around legitimate uses of the header
by other headers would allow accidental sidestepping: If a user
includes a legitimate usb.h using header (say, board.h) and just
forgets to include usb.h on their own, their application that'd mess
with USB would still work as usb.h is transitively included, and the
check for custom includes does not trigger.
2020-01-30 15:04:26 +01:00
chrysn
e65f3f372b
USB VID/PID: Set whitelist define for internals that use usb.h
...
This list is probably incomplete as it was created experimentally.
2020-01-30 15:04:10 +01:00
chrysn
f35ce9cd8e
USB VID/PID: Allow default VID/PID from inside RIOT code
...
A new define, USB_H_USER_IS_RIOT_INTERNAL, is defined that may only be
set from within RIOT's own compilation units that deem themselves
standard RIOT peripherals. If all usb.h users in a program match that
requirement, a default VID/PID pair is set.
Due to the new composite check, the individual checks for VID/PID being
set become moot and are removed.
2020-01-30 15:01:41 +01:00
Sebastian Meiling
a4c4c25b3b
Merge pull request #12866 from jia200x/pr/gnrc_lorawan_remove_netdev
...
net/gnrc_lorawan: remove netdev layer from MAC
2020-01-30 14:02:59 +01:00
Ken Bannister
7f3e953893
net/cord: update for deprecated gcoap function
2020-01-30 06:00:53 -05:00
Ken Bannister
6ab7fab40a
net/gcoap: deprecate gcoap_add_qstring()
...
Use Packet API function coap_opt_add_uquery() instead.
2020-01-30 05:41:39 -05:00
MichelRottleuthner
2f418bf684
Merge pull request #13212 from Hyungsin/forupstream_xtimer_bug
...
sys/xtimer: compare two offsets rather than absolute times
2020-01-30 10:15:41 +01:00
Hyungsin
eadd4c9f72
sys/xtimer: compare two offsets rather than absolute times
2020-01-29 10:52:43 -08:00
Ken Bannister
0ed4fe2da6
net/coap: move/rename function to add query option
2020-01-29 09:23:47 -05:00
Cenk Gündoğan
2fcd9e0456
Merge pull request #13225 from leandrolanzieri/pr/net/gcoap/fix_ref_to_variance
...
gcoap: Remove reference to COAP_ACK_VARIANCE in docs
2020-01-28 21:28:32 +01:00
Leandro Lanzieri
8250f4d198
net/gcoap: Remove reference to COAP_ACK_VARIANCE in docs
2020-01-28 20:14:46 +01:00
Cenk Gündoğan
c84d7d2623
Merge pull request #12887 from leandrolanzieri/pr/kconfig_migrate/gcoap
...
Kconfig: Expose Gcoap configurations
2020-01-28 18:58:29 +01:00
Leandro Lanzieri
926d32ff30
Kconfig: Expose Gcoap configurations
2020-01-28 11:59:52 +01:00
Leandro Lanzieri
bab6f4737c
net/gcoap: Move config macros to 'CONFIG_' namespace
...
Macros that changed:
GCOAP_MSG_QUEUE_SIZE -> CONFIG_GCOAP_MSG_QUEUE_SIZE
GCOAP_NO_AUTO_INIT -> CONFIG_GCOAP_NO_AUTO_INIT
GCOAP_NO_RETRANS_BACKOFF -> CONFIG_GCOAP_NO_RETRANS_BACKOFF
GCOAP_NON_TIMEOUT -> CONFIG_GCOAP_NON_TIMEOUT
GCOAP_OBS_CLIENTS_MAX -> CONFIG_GCOAP_OBS_CLIENTS_MAX
GCOAP_OBS_OPTIONS_BUF -> CONFIG_GCOAP_OBS_OPTIONS_BUF
GCOAP_OBS_REGISTRATIONS_MAX -> CONFIG_GCOAP_OBS_REGISTRATIONS_MAX
GCOAP_OBS_VALUE_WIDTH -> CONFIG_GCOAP_OBS_VALUE_WIDTH
GCOAP_PDU_BUF_SIZE -> CONFIG_GCOAP_PDU_BUF_SIZE
GCOAP_PORT -> CONFIG_GCOAP_PORT
GCOAP_RECV_TIMEOUT -> CONFIG_GCOAP_RECV_TIMEOUT
GCOAP_REQ_OPTIONS_BUF -> CONFIG_GCOAP_REQ_OPTIONS_BUF
GCOAP_REQ_WAITING_MAX -> CONFIG_GCOAP_REQ_WAITING_MAX
GCOAP_RESEND_BUFS_MAX -> CONFIG_GCOAP_RESEND_BUFS_MAX
GCOAP_RESP_OPTIONS_BUF -> CONFIG_GCOAP_RESP_OPTIONS_BUF
GCOAP_TOKENLEN -> CONFIG_GCOAP_TOKENLEN
2020-01-28 11:59:52 +01:00