Martine S. Lenders
3082710f65
gnrc_ipv6_nib: allow for configuration of static link-local addresses
...
This feature was removed without replacment in 71a7dbf918
, but it can
still be useful.
Co-Authored-By: smlng <s@mlng.net>
2020-01-14 15:46:18 +01:00
Martine Lenders
350b33b023
Merge pull request #12936 from leandrolanzieri/pr/kconfig_migrate/usb
...
Kconfig: Expose USB configurations
2020-01-14 12:39:30 +01:00
Francisco
1d206bca24
Merge pull request #12409 from miri64/gnrc_netif/fix/highest-source-scope-wins
...
gnrc_netif: highest source address scope wins selection
2020-01-14 10:43:24 +01:00
Leandro Lanzieri
a1836d36a4
Kconfig: Expose USB peripheral configurations
2020-01-14 10:34:53 +01:00
Leandro Lanzieri
15bd4897c1
usb: Move configuration macros to 'CONFIG_' namespace
...
Macros that changed:
USB_CONFIG_VID -> CONFIG_USB_VID
USB_CONFIG_PID -> CONFIG_USB_PID
USB_CONFIG_MANUF_STR -> CONFIG_USB_MANUF_STR
USB_CONFIG_PRODUCT_STR -> CONFIG_USB_PRODUCT_STR
USB_CONFIG_CONFIGURATION_STR -> CONFIG_USB_CONFIGURATION_STR
USB_CONFIG_PRODUCT_BCDVERSION -> CONFIG_USB_PRODUCT_BCDVERSION
USB_CONFIG_SPEC_BCDVERSION -> CONFIG_USB_SPEC_BCDVERSION
USB_CONFIG_SELF_POWERED -> CONFIG_USB_SELF_POWERED
USB_CONFIG_MAX_POWER -> CONFIG_USB_MAX_POWER
USB_CONFIG_DEFAULT_LANGID -> CONFIG_USB_DEFAULT_LANGID
2020-01-14 10:34:53 +01:00
Martine Lenders
48221bb018
Merge pull request #12838 from kb2ma/gcoap/deprecate_gcoap_finish
...
net/gcoap: deprecate gcoap_finish()
2020-01-14 10:20:44 +01:00
Martine S. Lenders
018e3dd437
gnrc_netif: use scope directly from address for multicast
2020-01-14 09:54:18 +01:00
Martine S. Lenders
85737a0436
gnrc_netif: remove misleading comment
...
The comment exists since the introduction of the [original
implementation], but its meaning is unclear and misleading, as the code
doesn't do anything with link-local.
[original implementation]: https://github.com/RIOT-OS/RIOT/pull/3561
2020-01-14 09:54:18 +01:00
Martine S. Lenders
46fd632e91
gnrc_netif: highest source address scope wins selection
...
Rule 2 of the source address algorithm outlined in [RFC6724] states the
possible source addresses must also be compared among each other:
> Rule 2: Prefer appropriate scope.
> If Scope(SA) < Scope(SB): If Scope(SA) < Scope(D), then prefer SB and
> otherwise prefer SA. Similarly, if Scope(SB) < Scope(SA): If
> Scope(SB) < Scope(D), then prefer SA and otherwise prefer SB.
Our current implementation doesn't do that. It just checks if the scope
of a possible source is lesser than the scope of the destination
(which involves the second "If" in the rule).
This fix grants points according to the scope of an address. If the
scope matches, they get the highest points, ensuring that the selected
source will always be reachable from the destination.
[RFC6724]: https://tools.ietf.org/html/rfc6724
2020-01-14 09:54:17 +01:00
Ken Bannister
57cd900970
net/gcoap: deprecate macros used only by gcoap_finish()
2020-01-13 10:14:02 -05:00
Ken Bannister
6c2495bedb
net/gcoap: deprecate gcoap_finish()
2020-01-13 10:14:02 -05:00
Martine Lenders
cd3f1b89da
Merge pull request #13107 from leandrolanzieri/pr/sock/async_fix_types
...
sock/async: Fix forward declaration of sock_tcp_queue_t
2020-01-13 14:46:50 +01:00
Leandro Lanzieri
b5c3e32af6
Merge pull request #13108 from MrKevinWeiss/pr/fix/gnrcctcdoc
...
doc/gnrc/ipv6: Update documentation group for gnrc
2020-01-13 14:02:16 +01:00
Leandro Lanzieri
8e6f6ee460
Merge pull request #13065 from PeterKietzmann/pr_kconf_netif
...
Kconfig: Expose gnrc/netif configurations
2020-01-13 13:25:17 +01:00
MrKevinWeiss
1e1bf6ed98
doc/gnrc/ipv6: Update documentation group for gnrc
...
Since the GNRC_IPV6 is part of GNRC it should be a part of the gnrc compile time configuration group.
This adds information on the group to specify it is gnrc and changes the group from config to net_gnrc_conf
2020-01-13 12:34:26 +01:00
PeterKietzmann
fb71ccc098
net/gnrc/netif:GNRC_NETIF_MIN_WAIT_AFTER_SEND_US to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
PeterKietzmann
9e83d12bc0
net/gnrc/netif: Move GNRC_NETIF_IPV6_ADDRS_NUMOF to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
PeterKietzmann
724d58b074
net/gnrc/netif: Move GNRC_NETIF_MSG_QUEUE_SIZE to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
PeterKietzmann
b28a586702
net/gnrc/netif: Move GNRC_NETIF_DEFAULT_HL to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
PeterKietzmann
c654d1fc8b
Kconfig: Expose gnrc/netif configurations
2020-01-13 12:28:31 +01:00
Leandro Lanzieri
e7ce6914c5
sock/async: Fix forward declaration of sock_tcp_queue_t
2020-01-13 12:19:00 +01:00
MichelRottleuthner
53cb3b087c
Merge pull request #9530 from Hyungsin/forupstream_xtimer
...
sys: xtimer concurrency/robustness improvement
2020-01-13 08:24:15 +01:00
76cfe2b84c
Merge pull request #13095 from fjmolinas/pr_ccm_doc
...
sys/include/crypto/modes/ccm: specify implem limits
2020-01-12 18:53:50 +01:00
Francisco Molina
0e4640276c
sys/include/crypto/modes/ccm: specify implem limits
2020-01-12 17:57:27 +01:00
benpicco
1c148ba2f2
Merge pull request #10092 from gschorcht/drivers_itg320x
...
drivers: add driver for InvenSense ITG-320X 3-axis gyroscope
2020-01-11 17:37:48 +01:00
Schorcht
79884687b2
sys/auto_init: add driver for ITG320X 3-axis gyroscope
2020-01-11 08:02:34 +01:00
Martine Lenders
3d1c7d8e19
Merge pull request #13087 from haukepetersen/opt_nimble_netifmoreevents
...
pkg/nimble_netif: add additional events
2020-01-11 00:22:53 +01:00
benpicco
5f1b09bd2f
Merge pull request #12727 from benpicco/color_util
...
sys/color: add color_rgb_set_brightness() and color_rgb_shift()
2020-01-10 23:27:45 +01:00
Hyungsin
6f5154b98e
sys/evtimer: reflecting xtimer's member change
2020-01-10 13:20:54 -08:00
Hyungsin
a18f9318c7
sys/shell/commands: reflecting xtimer's member change
2020-01-10 13:19:36 -08:00
Hyungsin
387344775b
sys: xtimer concurrency/robustness improvement
2020-01-10 10:06:16 -08:00
Hauke Petersen
4f9d15d3b1
sys/shell/sc_nimble_netif: adapt event handling
2020-01-10 16:36:12 +01:00
Leandro Lanzieri
7463543e34
Merge pull request #13066 from PeterKietzmann/pr_kconf_ipv6
...
Kconfig: Expose gnrc/ipv6 configurations
2020-01-10 14:51:23 +01:00
PeterKietzmann
b2f0642825
Kconfig: Expose gnrc/ipv6/configurations
2020-01-10 12:23:35 +01:00
Hauke Petersen
5746795735
shell/sc_nimble_netif: add timing info to ble info
2020-01-10 12:17:07 +01:00
b0d6f5743b
suit/v4: display a progress bar while fetching the image
2020-01-09 11:31:24 +01:00
c596aa5184
riotboot/flashwrite: use LOG_DEBUG when printing bytes processed
2020-01-09 11:31:12 +01:00
Gaëtan Harter
480a8bf076
crypto/ccm: fix plaintext_len write
...
plaintext_len should be written in MSB first order into bytes
[16-L..15] both included and not ]16-L..15].
[RFC3610: 2.2 Authentication]
2020-01-08 19:49:15 +01:00
Mathias Tausig
116240d721
crypto: Fix CCM mode when message size > 256
...
Fixes part of issue #8107
2020-01-07 23:31:35 +01:00
Francisco
4c4cb8a14f
Merge pull request #12362 from mtausig/ccm_aadlen
...
Fix CCM mode when length of AAD is > 24
2020-01-07 22:26:24 +01:00
Mathias Tausig
6fe6f8f6ca
sys/crypto: Allow CCM encryption with AAD of length > 24
...
Fixes parts of issue #8107
2020-01-07 21:25:48 +01:00
Mathias Tausig
f266275afb
sys/crypto: Make internal functions static
2020-01-07 21:23:13 +01:00
Mathias Tausig
3382a089a8
sys/crypto: Check block size for CCM operations
2020-01-07 21:22:09 +01:00
PeterKietzmann
3f0a19a9bc
net/gnrc/ipv6: Move config macros to 'CONFIG_' namespace
2020-01-07 15:36:04 +01:00
Martine S. Lenders
3896145c31
sock: ignore -Wtypedef-redefinition
for LLVM where needed
...
net/sock/async/types.h included by net/sock.h needs to re-typedef the
the sock types to prevent cyclic includes.
2020-01-07 10:13:02 +01:00
Martine S. Lenders
37d99c11b0
gnrc_sock: use …/async/types.h
instead of …/async.h
2020-01-07 10:13:01 +01:00
Martine S. Lenders
43b1c5c74c
sock_async: fix cyclic dependency with sock_types.h
...
Typically a stack needs to add the callback for a sock as a member of
its respective `sock` type so `sock_types.h` needs to include
`net/sock/async.h` at the moment. As those however include
`net/sock/<prot>.h`, which in turn include `sock_types.h`, we create a
cyclic dependency.
This fix resolves this cyclic dependency, by putting the callback
definitions in its own header that then in turn can be also included
by `sock_types.h`.
2020-01-07 10:13:01 +01:00
Francisco
dcc5299682
Merge pull request #10667 from miri64/gnrc_sixloenc/enh/6lo-config
...
gnrc_netif: make 6LoENC dynamically configurable
2020-01-06 13:19:24 +01:00
Leandro Lanzieri
ffbd764111
Merge pull request #12997 from miri64/shell_commands/enh/6lo-ctx-on-non-6LBR
...
shell_commands: make 6Lo compression contexts configurable on non-6LBR
2020-01-06 11:46:05 +01:00
Francisco
d4c3476669
Merge pull request #12944 from leandrolanzieri/pr/kconfig_migrate/net/sock_util
...
Kconfig: Expose net/sock/util configurations
2020-01-03 11:41:20 +01:00
Marian Buschsieweke
e8770da912
Merge pull request #13020 from PeterKietzmann/pr_ext_doc_sram_seed
...
sys/puf_sram: extend documentation
2020-01-02 16:39:11 +01:00
PeterKietzmann
091d55a0be
sys/puf_sram: extend documentation
2020-01-02 13:22:35 +01:00
Martine Lenders
d03d2b409e
net: add ARP hardware type defintions
...
These are required for DHCPv6 to identify the type of a link-layer
address (for DUID creation).
2020-01-02 11:56:25 +01:00
Martine Lenders
441ca528da
timex: add US_PER_CS converter
...
DHCPv6 operates on centiseconds (hundredth of a second) for some time
values, so for interaction with `xtimer` I require this converter.
2020-01-02 11:56:25 +01:00
521d9d23ee
sys/printf_float: remove use of export for LINKFLAGS
2020-01-02 09:52:04 +01:00
Martine S. Lenders
5cf26f1adf
shell_commands: make 6Lo compression contexts configurable on non-6LBR
2019-12-20 14:55:55 +01:00
Leandro Lanzieri
b58b5792e9
Kconfig: Expose gnrc/lorawan configurations
2019-12-20 14:14:32 +01:00
Leandro Lanzieri
449da7602d
gnrc/lorawan: Express timer drift in per mille instead of percentage
2019-12-20 14:12:43 +01:00
José Alamos
7d4082a6a3
Merge pull request #12922 from leandrolanzieri/pr/kconfig_migrate/gnrc/ipv6_blacklisting
...
Kconfig: Expose gnrc/ipv6/blacklist configurations
2019-12-20 11:32:46 +01:00
Hauke Petersen
210b1b2f75
sys/shell/sc_nimble_netif: adapt event callback
2019-12-18 17:06:57 +01:00
Martine S. Lenders
e1ae44b536
gnrc_sixlowpan_frag_stats: actualize pseudo-module
...
Having the definitions sit in the `net/gnrc/sixlowpan/frag.h` header
does not make much sense, when using Selective Fragment Forwarding
(and the fragmentation buffer already includes a
`net/gnrc/sixlowpan/frag/stats.h` header), so they are moved to their
own header. Since with this change it makes more sense to have the
statistics stored in their own sub-module, the pseudo-module is also
actualized.
2019-12-18 15:45:03 +01:00
benpicco
c55cae885a
Merge pull request #12968 from aabadie/pr/sys/sc_loramac_fix_include
...
sys/shell: add missing stdio include in sc_loramac.c
2019-12-16 20:01:42 +01:00
benpicco
87f86c4c08
Merge pull request #12924 from daexel/shtc1_bugfix
...
drivers/shtc1: Initial support for the SHTC1 temperature and humidity sensor
2019-12-16 18:21:48 +01:00
8d040e5b4d
sys/shell: add missing stdio include in sc_loramac.c
2019-12-16 16:26:18 +01:00
steffen
fa05cf0c5d
Driver/shtc1: add saul integration
...
- add saul integration
- uncrustified
- SAUL/DRIVER tests
2019-12-16 15:29:04 +01:00
benpicco
244a6de2f2
Merge pull request #10710 from jue89/feature/driver-net-ethocan
...
drivers: add Differentially Operated Serial Ethernet (DOSE) driver
2019-12-16 13:15:45 +01:00
Jue
bc46c7478f
drivers: add Differentially Operated Serial Ethernet driver
2019-12-16 10:43:13 +01:00
Francisco Molina
1241bee080
sys/shell/commands/sc_interactive_sync: AVR puts to pgmspace
2019-12-15 20:27:56 +01:00
7dbf5c6015
Merge pull request #12941 from fjmolinas/pr_interactive_sync_puts_pgmspace
...
sys/test_utils/interactive_sync: AVR puts to pgmspace
2019-12-13 18:34:35 +01:00
Benjamin Valentin
e4a33ca413
sys/checksum: add crc8 implementation
...
This moves the crc8 implementation of the sht3x driver to common code.
2019-12-13 14:50:32 +01:00
Leandro Lanzieri
047c87d67f
Kconfig: Expose net/sock/util configurations
2019-12-13 12:22:36 +01:00
Leandro Lanzieri
c74fa5367c
net/sock/util: Move configuration macros to 'CONFIG_' namespace
...
Macros that changed:
SOCK_SCHEME_MAXLEN -> CONFIG_SOCK_SCHEME_MAXLEN
SOCK_HOSTPORT_MAXLEN -> CONFIG_SOCK_HOSTPORT_MAXLEN
SOCK_URLPATH_MAXLEN -> CONFIG_SOCK_URLPATH_MAXLEN
2019-12-13 12:04:54 +01:00
Francisco Molina
089c9ae71a
sys/test_utils/interactive_sync: AVR puts to pgmspace
2019-12-13 10:12:01 +01:00
JulianHolzwarth
c581d2c055
sys/ps/ps.c: ps can now handle zombie state threads
2019-12-11 16:48:31 +01:00
Leandro Lanzieri
3383bae8fe
Kconfig: Expose gnrc/ipv6/blacklist configurations
2019-12-11 10:51:04 +01:00
Leandro Lanzieri
56e61dac47
net/gnrc/ipv6_blacklist: Move config macros to 'CONFIG_' namespace
...
Macros that changed:
GNRC_IPV6_BLACKLIST_SIZE -> CONFIG_GNRC_IPV6_BLACKLIST_SIZE
2019-12-11 10:39:16 +01:00
Martine Lenders
d926810e0b
Merge pull request #12893 from leandrolanzieri/pr/kconfig_migrate/gnrc/ipv6_whitelisting
...
Kconfig: Expose gnrc/ipv6/whitelist configurations
2019-12-10 18:32:34 +01:00
Benjamin Valentin
00ff291f2e
gnrc_lwmac: use uintptr_t to get value of pointer
...
A pointer is not 32 bit on all platforms.
Since gnrc_lwmac only stores 16 bit in the pointer variable it is
still save to cast like this even on AVR, but cast to uintptr_t
instead of uint32_t.
fixes #12869
2019-12-10 17:18:30 +01:00
Martine S. Lenders
3bf426e6fc
gnrc_sixlowpan_iphc: factor-out IPv6 header decoding into own function
2019-12-10 15:46:51 +01:00
Martine S. Lenders
8ce3c745c8
gnrc_sixlowpan_iphc: add extension header encoding
2019-12-10 15:31:56 +01:00
Martine S. Lenders
a0a334a491
gnrc_sixlowpan_iphc: factor-out IPv6 header encoding into own function
2019-12-10 15:29:06 +01:00
Martine Lenders
f38f974d86
Merge pull request #12629 from miri64/gnrc_sixlowpan_iphc/enh/vrb-creation
...
gnrc_sixlowpan_iphc: add fragment forwarding stubs
2019-12-10 14:58:01 +01:00
Martine S. Lenders
3273602f24
tests: provide test application for IPHC+VRB behavior
2019-12-10 13:59:41 +01:00
Martine Lenders
a689f51e9a
gnrc_sixlowpan_iphc: add rudimentary forwarding routine
2019-12-10 13:56:33 +01:00
Martine S. Lenders
e31394536b
gnrc_sixlowpan_iphc: factor encoding out of sending function
2019-12-10 13:56:05 +01:00
Martine S. Lenders
556d71a7da
gnrc_sixlowpan_iphc: create VRB entry from uncompressed header
...
... when VRB is available
2019-12-10 13:56:02 +01:00
José Alamos
2027efa9f4
Merge pull request #12894 from leandrolanzieri/pr/gnrc_doc_config_group
...
net/gnrc: Group compile configuration Doxygen groups and add GNRC LoRaWAN
2019-12-09 18:20:35 +01:00
Martine Lenders
7b13781cd2
Merge pull request #12625 from miri64/gnrc_sock/enh/async-support
...
gnrc_sock: provide asynchronous event implementation
2019-12-09 12:39:58 +01:00
Hauke Petersen
3ffe08d07a
shell/sc_nimble_netif: allow connect using name
2019-12-09 10:12:44 +01:00
418d00d0ea
Merge pull request #9283 from gebart/pr/frac
...
sys/frac: Integer fractions
2019-12-09 09:09:10 +01:00
benpicco
f71f45bd96
Merge pull request #12892 from bergzand/pr/usbus_fmt/missing_alt_len_increment
...
usbus_fmt: Add missing alt iface size increase
2019-12-06 16:36:53 +01:00
Leandro Lanzieri
15098a8fc2
gnrc/lorawan: Add configurations to GNRC's Doxygen configurations group
2019-12-06 15:19:18 +01:00
Leandro Lanzieri
9a0a514fdd
Kconfig: Expose gnrc/ipv6/whitelist configurations
2019-12-06 15:04:14 +01:00
Leandro Lanzieri
a626fec016
Kconfig: Add net/gnrc file and menu
2019-12-06 14:31:00 +01:00
1a6209a8fe
usbus_fmt: Add missing alt iface size increase
...
The configuration length verification was not taking additional alt
interface descriptors into account. This breaks situations where an alt
interface is used such as is the case with CDC ECM
2019-12-06 14:28:32 +01:00
Leandro Lanzieri
37624f4eed
Kconfig: Add 'Networking' file and menu
2019-12-06 14:23:39 +01:00
Leandro Lanzieri
6c22c7bfd4
Kconfig: Add 'System' file and menu
2019-12-06 14:23:18 +01:00
Leandro Lanzieri
de2fbeb112
net/gnrc/ipv6_whitelist: Move config macros to 'CONFIG_' namespace
...
Macros that changed:
GNRC_IPV6_WHITELIST_SIZE -> CONFIG_GNRC_IPV6_WHITELIST_SIZE
2019-12-06 13:57:52 +01:00
Leandro Lanzieri
4ebf34de23
net/gnrc: Move compile configurations to 'net_gnrc_conf' group
2019-12-06 12:23:34 +01:00
Leandro Lanzieri
47981b96c1
sys/net/gnrc: Add GNRC configuration Doxygen group
2019-12-06 12:18:03 +01:00
Joakim Nohlgård
e4e860a20a
frac: Integer fraction scaling library
2019-12-06 09:36:33 +01:00
Martine Lenders
159accff37
gnrc_ipv6: fix source check for loopback address
...
When the destination address is the loopback address (`::1`) in GNRC
the selected network interface typically is `NULL`, as with GNRC no
loopback interface de facto exists. So the assertion when checking if
the source address is valid if `netif != NULL` fails on that check.
This change fixes that issue by checking if the destination address is
the loopback address, before checking the validity of the source
address.
2019-12-05 23:38:53 +01:00
c7a534e42a
Merge pull request #12878 from haukepetersen/add_fmt_isnumber
...
sys/fmt: add fmt_is_number()
2019-12-05 20:32:47 +01:00
benpicco
b77ff84d9e
Merge pull request #12676 from ant9000/pr/usbus_cdc_ecm-mac_host-fix
...
USBUS CDC ECM: host and MCU mac addresses should differ
2019-12-05 18:53:10 +01:00
Hauke Petersen
cea260bb4f
shell/sc_gnrc_netif: use fmt_is_number()
2019-12-05 15:39:25 +01:00
Hauke Petersen
ab3669294b
sys/fmt: add fmt_is_number()
2019-12-05 15:39:24 +01:00
8ae7201962
Merge pull request #12550 from aabadie/pr/sys/progress_bar
...
sys/progress_bar: add module for managing a progress bar in stdout
2019-12-05 15:03:26 +01:00
Hauke Petersen
d9229af9d9
sys/fmt: move _is_digit and _is_upper to public API
2019-12-05 14:10:49 +01:00
Leandro Lanzieri
0673fce3c4
usbus/cdc/acm: Add configs to compile time configuration Doxygen group
2019-12-04 20:08:02 +01:00
Leandro Lanzieri
f48bd7f9f3
usbus: Add configs to compile time configuration Doxygen group
2019-12-04 20:08:02 +01:00
Leandro Lanzieri
731f27378b
usb: Add configs to compile time configuration Doxygen group
2019-12-04 20:08:02 +01:00
Leandro Lanzieri
d835c52a4b
usb: Fix VID/PID macros documentation
2019-12-04 20:08:02 +01:00
MichelRottleuthner
272079c89e
Merge pull request #11992 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/first_fix
...
sys/xtimer/xtimer.c: _mutex_timeout() bug fix for race condition
2019-12-04 10:43:20 +01:00
bd254dfc63
Merge pull request #10741 from basilfx/feature/stdio_null
...
sys: stdio_null: add null driver
2019-12-03 18:08:26 +01:00
cd25e1c011
usbus_fmt: assert descr len matches claimed len
...
This commit adds runtime assertions to validate that the total length of
the configuration descriptor as communicated to the host device matches the
generated length of the configuration descriptor.
2019-12-03 15:07:42 +01:00
Jose Alamos
8999528390
net/gnrc_lorawan: add MIB for setting RX2 datarate
2019-12-03 14:48:29 +01:00
Jose Alamos
1e9bb7c175
net/gnrc_lorawan: add MIB for setting L2 address
2019-12-03 14:27:56 +01:00
Jose Alamos
99dbcecc3a
net/gnrc_lorawan: remove netdev SAP interface
2019-12-03 14:08:35 +01:00
Martine Lenders
09c46e273d
Merge pull request #12845 from miri64/gnrc_sixlowpan_frag_rb/fix/rm-by-datagram-pkt-release
...
gnrc_sixlowpan_frag_rb: fix memory-leak in _rm_by_datagram()
2019-12-02 19:20:55 +01:00
7e165678fe
Merge pull request #12851 from leandrolanzieri/remove-ubjson
...
sys/ubjson: Remove module
2019-12-02 18:45:35 +01:00
9f1b84b51d
sys/progress_bar: add module for configurable progress bars
2019-12-02 16:48:16 +01:00
benpicco
900c6994af
Merge pull request #12855 from miri64/gnrc_gomach/fix/i12853
...
gnrc_gomac: don't use constant as argument for RTT callback
2019-12-02 15:10:40 +01:00
Martine Lenders
e1f81f02fd
gnrc_gomac: don't use constant as argument for RTT callback
...
The RTT callback for a super-frame cycle uses the `arg` pointer to set
the message value that then is handed to the GoMacH thread. However,
in both instances the timer is scheduled the constant
`GNRC_GOMACH_EVENT_RTT_NEW_CYCLE` is provided. This means the argument
is not really necessary.
2019-12-02 08:14:55 +01:00
Juan Carrano
bea30c3f89
sys/ubjson: remove module.
...
The ubjson module has a number of quality defects and is unsafe.
Considering CBOR is popular, standarized and supported in RIOT and that
the ubjson implementation is a home-grown one whose API will likely be
unfamiliar to new users, I propose to delete it.
This removal, of course, dows not have to be NOW. We can deprecate it for
one or two releases before.
What's wrong with this module?
- Unsafe: the parsing is done recursively. This is embedded in the API, so it
is not possible to fix it without changing the API. A document with too much
nesting can cause a stack overflow.
- Does not validate writing: it is possible to produce invalid output. From
the docs:
> The library won't complain if you write multiple values that are not
> inside an array or object. The result will just not be properly serialized.
- Poorly tested. As shown by #11702 , #11703 the tests were not even detecting
that a False was stored as True.
- In line with the previous remark, see
68dc5b0d6e/tests/unittests/tests-ubjson/tests-ubjson.c (L66-L77)
Why is the following code in the unit tests??
```c
irq_disable();
sched_set_status(data->main_thread, STATUS_PENDING);
```
- #2175 is still unfixed after 3.5 years.
- Code quality. The code has multiline macros that assign variables and
return. See c332514875/sys/ubjson/ubjson-write.c (L34-L41)
Can we mark it as deprecated this release and sweep it in the following one?
2019-12-01 23:44:39 +01:00
Martine S. Lenders
0251d6585e
gnrc_sixlowpan_frag_rb: error when interval buffer is full
2019-11-29 18:00:54 +01:00
Martine S. Lenders
54a8599170
gnrc_sixlowpan_frag_vrb: call base_rm() with gnrc_sixlowpan_frag_rb
...
`gnrc_sixlowpan_frag_rb_base_rm()` cleans up the intervals which is part
of `gnrc_sixlowpan_frag_rb`, not `gnrc_sixlowpan_frag`, so when the
`gnrc_sixlowpan_frag` is not compiled in, but `gnrc_sixlowpan_frag_rb`,
the intervals allocated in the reassembly buffer and inherited by the
virtual reassembly buffer are never released.
2019-11-29 17:58:02 +01:00
Martine S. Lenders
3fe1bf59a4
gnrc_sixlowpan_frag_rb: fix memory-leak in _rm_by_datagram()
...
This fits with the semantics of this function which doesn't provide or
uses any state of the reassembly buffer provided by the user, but finds
the entry itself and then removes it. This gives the user no chance to
remove the packet in the reassembly buffer entry, so
`gnrc_sixlowpan_frag_rb_rm_by_datagram()` has to release the packet
(other than `gnrc_sixlowpan_frag_rb_remove()` where not releasing the
packet is desired as it might be handed up to an upper layer).
2019-11-29 15:38:13 +01:00
Francisco
b88e2ecb6d
Merge pull request #12471 from aabadie/pr/sys/suit_shell
...
sys/suit: sys/shell: examples/suit_update: add shell command for triggering suit updates
2019-11-29 13:32:23 +01:00
Leandro Lanzieri
8aa66e94ea
net/gnrc/netif: Remove 'if' prefix from interface names
2019-11-29 10:22:00 +01:00
Leandro Lanzieri
5481124d86
shell/gnrc_netif: Use netif API
2019-11-29 10:22:00 +01:00
Leandro Lanzieri
7746ee0aa1
net/netopt: Fix NETOPT_CHANNEL_PAGE documentation.
2019-11-29 09:34:38 +01:00
2ff3d4cd8d
sys/shell: add suit shell command
...
This command allows for triggering an update from the device itself
2019-11-28 19:15:34 +01:00
560ee3bac9
suit: add helper function for triggering updates
2019-11-28 19:08:28 +01:00
Ken Bannister
a33c8b1130
net/gcoap: remove gcoap_req_send2()
2019-11-28 11:32:40 -05:00
Hauke Petersen
3a7b60e4d4
net/cord_epsim: adapt to gcoap API changes
2019-11-28 12:50:24 +01:00
Hauke Petersen
7b1217a529
net/cord_ep: adapt to gcoap API changes
2019-11-28 12:50:24 +01:00
Hauke Petersen
3fd8357071
net/gcoap: allow to pass user context to requests
2019-11-28 12:50:24 +01:00
Hauke Petersen
383f395af3
net/gcoap: pass memo to resp_handler directly
2019-11-28 12:48:37 +01:00
7d046b6b8d
Merge pull request #12831 from fjmolinas/pr_fix_interactive_sync_shell
...
autoinit: interactive sync if no shell% in USEMODULE
2019-11-28 08:47:20 +01:00
Leandro Lanzieri
2733ef45d7
Merge pull request #12798 from kb2ma/gcoap/init_delay
...
net/gcoap: add macro to delay initialization of gcoap
2019-11-28 05:10:43 +01:00
Ken Bannister
e873e5814a
net/gcoap: add macro to delay initialization of gcoap
2019-11-27 17:56:55 -05:00
Francisco Molina
817df972b5
autoinit: interactive sync if no shell%
2019-11-27 23:19:48 +01:00
Francisco Molina
838a88f122
sys/shell/commands: add interactive_sync commands
2019-11-27 15:07:42 +01:00
JulianHolzwarth
7cd3e8b73e
xtimer/xtimer.c:_mutex_timeout() improved
...
no longer into the "if" when the mutex is free
2019-11-27 14:49:16 +01:00
Pieter Willemsen
f3b13cf90c
xtimer: check in timeout callback if thread blocked on mutex
...
Prevent a possible race condition when _mutex_timeout fires just after the
mutex was locked but before the xtimer was removed
The flow
int xtimer_mutex_lock_timeout(mutex_t *mutex, uint64_t timeout) {
...
mutex_lock(mutex);
/* mutex locked */
/* _mutex_timeout fires and tries to remove thread from mutex queue */
/* DEBUG: simulate callback call between lock and remove */
xtimer_spin(xtimer_ticks_from_usec(timeout*2));
xtimer_remove(&t);
...
}
2019-11-27 14:48:51 +01:00
MichelRottleuthner
bf676d4728
Merge pull request #11022 from jia200x/pr/gnrc_lorawan
...
gnrc_lorawan: add support for GNRC based LoRaWAN stack
2019-11-27 09:25:20 +01:00
Jose Alamos
43b7164796
gnrc_pktdump: add NETTYPE_LORAWAN
2019-11-26 21:52:06 +01:00
Jose Alamos
b3593e58cb
sc_netif: add lorawan config commands to shell
2019-11-26 21:52:06 +01:00
Jose Alamos
d3777d8ed8
auto_init/netif: add gnrc_lorawan startup routine
2019-11-26 21:52:06 +01:00
Jose Alamos
2edaead13e
gnrc_netif: add gnrc_lorawan adaption layer
2019-11-26 21:52:06 +01:00
Jose Alamos
39951b8f70
gnrc_lorawan: add initial support for LoRaWAN stack
2019-11-26 21:52:06 +01:00
Jose Alamos
e03f7278bc
gnrc_netif.h: add lorawan component
2019-11-26 21:52:05 +01:00
Jose Alamos
a70b1858c4
netopt: add NETOPTs required for gnrc_lorawan
2019-11-26 21:52:05 +01:00
Jose Alamos
e8bf26f7f3
gnrc_nettype: add GNRC_NETTYPE_LORAWAN type
2019-11-26 21:52:05 +01:00
Jose Alamos
845944e092
gnrc_netif_lorawan: add headers
2019-11-26 21:52:05 +01:00
Jose Alamos
4192cd5578
gnrc_lorawan: add public headers
2019-11-26 21:52:05 +01:00
Bas Stottelaar
810a06903a
sys: stdio_null: add null driver
2019-11-26 21:12:41 +01:00
Hauke Petersen
17b1b19fda
net/gcoap: do not allocate RX buf on stack
2019-11-26 15:00:03 +01:00
Benjamin Valentin
6d5704307f
sys/color: add color_rgb_set_brightness()
...
Add a function to set the brightness level of a RGB value from 0-255.
2019-11-24 23:27:05 +01:00
Benjamin Valentin
19e8d02715
sys/color: add color_rgb_shift()
...
Add a function to quickly shift a RGB color up or down.
2019-11-24 23:27:05 +01:00
46c3964ee8
sys/clif: use ARRAY_SIZE
2019-11-23 22:39:40 +01:00
2ea1b24eae
sys/xtimer: fix typos
2019-11-23 22:39:38 +01:00
149a98a9aa
sys/universal_address: fix typos
2019-11-23 22:39:38 +01:00
82a937a994
sys/ubjson: fix typos
2019-11-23 22:39:38 +01:00
42aad0d1ad
sys/shell: fix typos
2019-11-23 22:39:38 +01:00
84f73274c0
sys/schedstatistics: fix typos
2019-11-23 22:39:38 +01:00
4763235ddb
sys/puf_sram: fix typos
2019-11-23 22:39:38 +01:00
09748efc11
sys/posix: fix typos
2019-11-23 22:39:38 +01:00
a49acc9b3e
sys/oneway-malloc: fix typos
2019-11-23 22:39:38 +01:00
d4f3747705
sys/net: fix typos
2019-11-23 22:39:38 +01:00
769f2b8363
sys/irq_handler: fix typos
2019-11-23 22:39:38 +01:00
61db4d9724
sys/include: fix typos
2019-11-23 22:39:37 +01:00
ec8a4ba3c2
sys/hashes: fix typos
2019-11-23 22:39:37 +01:00
caa3f9cf0d
sys/evtimer: fix typos
2019-11-23 22:39:37 +01:00
b53a5d86da
sys/embunit: fix typos
2019-11-23 22:39:37 +01:00
5afc15a701
sys/ecc: fix typos
2019-11-23 22:39:37 +01:00
3475542650
sys/crypto: fix typos
2019-11-23 22:39:37 +01:00
2127b94a7b
sys/cpp11-compat: fix typos
2019-11-23 22:39:37 +01:00
2a27ef5d8f
sys/clif: fix typos
2019-11-23 22:39:37 +01:00
c8b43b8ca4
sys/arduino: fix typos
2019-11-23 22:39:37 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
1f55cffcee
Merge pull request #12645 from aabadie/pr/tests/sys_crypto_remove_board_blacklist
...
tests/sys_crypto: remove use of BOARD_BLACKLIST variable
2019-11-23 06:48:29 +01:00
Marian Buschsieweke
16ee7aed32
Merge pull request #11350 from maribu/ina2xx
...
drivers/ina220: Changed to comply with RIOT's driver design goals & SAUL adaption
2019-11-22 23:36:50 +01:00
benpicco
d86ca37ed9
Merge pull request #12759 from miri64/bitfield/fix/bitorder
...
bitfield: unify order
2019-11-22 22:37:39 +01:00
Marian Buschsieweke
0a0c1697d7
drivers/ina2xx: Added SAUL integration
2019-11-22 20:29:53 +01:00
607aa6fbcd
sys/crypto/ocb: fix max data condition
2019-11-22 19:21:06 +01:00
Marian Buschsieweke
16ef0a7f30
Merge pull request #8383 from haukepetersen/opt_driver_bmx280spi
...
drivers/bmx280: reworked driver and added SPI mode
2019-11-22 17:06:12 +01:00
Hauke Petersen
b7f33bd84f
drivers/bmx280: significant driver rework
...
bugs fixed:
- move global variables into device descriptor
- guard bus access (use acquire and release)
added functionality:
- enable SPI mode
structural improvements:
- reduce stack usage
- simplify the driver's structure
- centralize bus access code
- use assertions
- cleanup includes
- use shortcuts for bus access
style changes:
- fix line length
- cleanup and improve doxygen
- unify pointer notation (char *var over char* var)
- unify (error) return messages
- use `#ifdef MODULE_BME280` instead of `#if defined(BME..)`
- unify debug messages -> using `[bmx28] x: msg` scheme
2019-11-22 14:04:37 +01:00
Gunar Schorcht
4b92ce289b
sys/arduino: compilation of Arduino libraries
...
To make it possible to use an Arduino library, a new pseudomodule arduino_lib is introduced. This pseudomodule enables implicitly module arduino but avoids that a sketch is required or generated and compiled. Thus, it is possible to compile and use a package or directory with some source files from an Arduino library in RIOT applications.
2019-11-21 19:13:14 +01:00
Gunar Schorcht
e942338f78
sys/arduino: add type definitions often used
...
boolean and byte are data types defined in Arduino.h and very often used in Arduino code.
2019-11-21 17:22:38 +01:00
4d84c4c495
Merge pull request #12764 from fjmolinas/pr_cpp_check_fix
...
dist/tools/cppcheck: fix all Cppcheck 1.82 errors
2019-11-21 16:25:10 +01:00
Gunar Schorcht
a05027cdba
Merge pull request #12523 from aabadie/pr/sys/arduino_pwm
...
sys/arduino: add implementation for analogWrite
2019-11-21 15:08:10 +01:00
Francisco Molina
fe180daa3b
sys/include/net/gnrc/gomach.h: fix cpp preprocessorErrorDirective
...
Preprocesor fails to evaluate the if condicion on L91-92 because
RTT_FREQUENCY is not defined, and therefore a division by 0 occurs.
TO avoid this replicate the RTT_FREQUENCY undefined warning.
2019-11-21 11:58:07 +01:00
Francisco Molina
cc2c3a0163
pkg/ucglib/src/csrc/ucg_riotos.c: fix cpp.check shiftTooManyBitsSigned
2019-11-21 11:58:07 +01:00
Francisco Molina
cf3d584678
sys/cb_mux/cb_mux.c: fix cpp.check shiftTooManyBitsSigned
2019-11-21 11:58:07 +01:00
Francisco Molina
254b54847f
shell/commands/sc_gnrc_rpl.c: fix cpp.check unitialized variable
2019-11-21 11:58:07 +01:00
Francisco Molina
ab16222c8b
sys/net/routing/nhdp: fix cpp.check unitialized variable
2019-11-21 11:58:07 +01:00
Francisco Molina
bf3c722abc
sys/net/network_layer: fix cpp.check unitialized variable
2019-11-21 11:58:07 +01:00
Francisco Molina
2c9abf0832
sys/cb_mux/cb_mux.c: fix cpp.check unitialized variable
2019-11-21 11:58:07 +01:00
Martine S. Lenders
f2d1e661d1
gnrc_netapi: report errors on dispatch
2019-11-21 10:51:13 +01:00
Martine Lenders
a6623f834f
bitfield: unify order
...
Currently the bitfield type mixes up the order of bits: While the byte
order is big-endian (most significant byte first), the bit order of each
single byte within the bitfield is little-endian (most significant bit
last). While this isn't a problem for most applications of the bitfield
type it becomes one when sending the bitfield over the network (as done
e.g. in the [ACKs of Selective Fragment Recovery][SFR-ACKs]).
This change unifies byte order and bit order to both be most
significant bX first.
[SFR-ACKs]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07
2019-11-20 18:53:11 +01:00
61c6b071b2
Merge pull request #12699 from basilfx/feature/netdev_tap_stack
...
netdev_tap: don't allocate DEBUG_EXTRA_STACKSIZE twice
2019-11-16 23:16:00 +01:00
0845cac3b8
sys/arduino: provide implementation for analogWrite
2019-11-15 17:51:45 +01:00
Leandro Lanzieri
39984b1f51
shell/gnrc_netif: Use ipv6_addr_split_int for prefix
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
1d0f92203b
shell/sntp: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:09:32 +01:00
Leandro Lanzieri
edae993f63
shell/gnrc_icmpv6_echo: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:02:50 +01:00
Leandro Lanzieri
3c89597c83
net/gnrc/tcp: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:02:50 +01:00
Leandro Lanzieri
4d4f6ae1d6
net/ipv6: Return string pointer when splitting IPv6 interface.
...
Right now 'ipv6_addr_split_iface' assumes that the interface specifier
will always be a number (based on GNRC way of identifying interfaces),
but this may not be always the case.In order to be able to use the
Network Interface API, interfaces should be referred by their name.
This changes 'ipv6_addr_split_iface' so it returns a pointer to the
string that specifies the interface.
2019-11-15 14:02:50 +01:00
Francisco
2adc5a23c2
Merge pull request #12361 from haukepetersen/add_nimble_autoconn
...
pkg/nimble: add simple BLE connection manager: autoconn
2019-11-14 14:02:24 +01:00
Hauke Petersen
38d2690a37
shell/sc_nimble_netif: restrict when using autoconn
2019-11-13 12:59:35 +01:00
Hauke Petersen
b75418fff4
sys/auto_init: map SAUL init for qmc5883l
2019-11-13 12:56:26 +01:00
Hauke Petersen
a7d951a0d7
net/ble.h: add custom NDN support service UUID
2019-11-13 11:28:01 +01:00
Bas Stottelaar
229a01b60b
netdev: don't allocate DEBUG_EXTRA_STACKSIZE twice
2019-11-12 20:00:05 +01:00
Martine Lenders
d33548243a
Merge pull request #12698 from miri64/gnrc_sixlowpan_frag_vrb/fix/empty-with-frag
...
gnrc_sixlowpan_frag_vrb: set src_len to 0 on remove
2019-11-12 18:42:10 +01:00
Martine Lenders
02295ce5c7
Merge pull request #12593 from miri64/gnrc_sixlowpan_frag_rb/enh/deletion-timer
...
gnrc_sixlowpan_frag_rb: allow for deletion timer after completion
2019-11-12 17:54:15 +01:00
Martine S. Lenders
e4d95c568b
gnrc_sixlowpan_frag_vrb: set src_len to 0 on remove
...
45f7966
made the `src_len` field the "emptiness signifier" for the VRB.
However, when `gnrc_sixlowpan_frag` is compiled in, the remove function
`gnrc_sixlowpan_frag_vrb_rm()` does not set the `src_len` to zero,
resulting in already deleted entry to be recognized as non-empty.
2019-11-12 17:13:45 +01:00
Martine S. Lenders
11669d9bdc
gnrc_sixlowpan_frag_rb: add missing \n
at end of DEBUG line
2019-11-12 17:06:52 +01:00
Martine S. Lenders
40138fdce8
gnrc_sixlowpan_frag_rb: allow for deletion timer after completion
...
This allows to set a timer between the completion of a datagram in the
reassembly buffer and the deletion of the corresponding reassembly
buffer entry. This allows to ignore potentially late incoming link-layer
duplicates of fragments of the datagram that then will have the
reassembly buffer entry be blocked.
This was noted in this [discussion] for classic 6LoWPAN reassembly (and
minimal fragment forwarding) and is recommended in the current
[selective fragment recovery draft][SFR draft].
[discussion]: https://mailarchive.ietf.org/arch/msg/6lo/Ez0tzZDqawVn6AFhYzAFWUOtJns
[SFR draft]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07#section-6
2019-11-12 17:06:52 +01:00
Martine Lenders
918a4ac04d
Merge pull request #12682 from miri64/gnrc_sock/fix/consider-all-snips-for-error
...
gnrc_sock: consider all pktsnip for gnrc_neterr reporting
2019-11-12 11:45:50 +01:00
benpicco
341d23dded
Merge pull request #12504 from bergzand/pr/usbus/descr_terminology
...
usbus: Unify terminology to use 'descriptor' everywhere
2019-11-12 11:41:10 +01:00
3db4678384
usbus: Unify terminology to use 'descriptor' everywhere
2019-11-12 10:29:19 +01:00
Martine Lenders
8992dce4da
gnrc_sock: consider all pktsnip for gnrc_neterr reporting
...
As analyzed in #12678 there are cases where different reports can be
generated for the different snips of the packet send via the `sock`.
To catch all errors generated by the stack, the sock has to subscribe
for all snips of the packet sent. If any of the snips reports an error
distinct from `GNRC_NETERR_SUCCESS` or the previous one, we report that
status instead of just the first we receive. This way we are ensured to
have the first error reported by the stack for the given packet.
2019-11-11 16:40:32 +01:00
Marian Buschsieweke
8eab67e4ee
Merge pull request #12684 from fabian18/arduino_SPI_interface_little_bugfix
...
sys/arduino: bug: missing 0
2019-11-11 11:06:06 +01:00
fabian18
a8ff989db1
sys/arduino: Fixed frequency selection in SPI
2019-11-11 10:33:01 +01:00
Marian Buschsieweke
bd8c4b36aa
sys/net/gnrc: Flag cc110x as 6LN
...
In gnrc_netif_init_6ln() the flag GNRC_NETIF_FLAGS_6LN is accidentally not set
for cc110x devices. This commit fixes this.
2019-11-11 09:24:01 +01:00
Martine Lenders
f092c27356
gnrc_ipv6: add missing new-line to debug message
2019-11-10 13:50:56 +01:00
Antonio Galea
f7be559df3
USBUS CDC ECM: host and MCU mac addresses should differ
2019-11-08 15:40:55 +01:00
benpicco
9ca9f07c04
Merge pull request #12592 from benpicco/luid-fix
...
sys/luid: add luid_get_eui48() / luid_get_eui64()
2019-11-07 18:34:37 +01:00
Gunar Schorcht
0a852805fd
Merge pull request #12118 from maribu/arduino-spi
...
sys/arduino: Added SPI interface
2019-11-07 17:33:29 +01:00
benpicco
c1edee074a
Merge pull request #12661 from benpicco/xtimer_fix_doc
...
sys/xtimer: fix generation of documentation
2019-11-07 14:27:58 +01:00
Martine Lenders
a132b2b413
Merge pull request #12220 from miri64/gnrc_sixlowpan_frag/feat/srf-config
...
gnrc_sixlowpan_frag: initial import of SRF parameters
2019-11-07 14:13:15 +01:00
Benjamin Valentin
6add264f6a
sys/xtimer: fix generation of documentation
...
cd1ce6b98d
accidentally disabled generating documentation for
`xtimer_msg_*()` functions.
Always define those functions when building the documentation.
2019-11-07 13:34:27 +01:00
Marian Buschsieweke
8a53e072f9
sys/arduino/doc: Removed SPI from ToDo
...
The SPI interface has been added, so it should no longer be listed on the ToDo
list.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
83a955fa49
sys/arduino/doc: Removed I2C from ToDo
...
The I2C (Wire) interface has been added, so it should no longer be listed on the
ToDo list.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
c449467125
sys/arduino: Enable C++11 support
...
Arduino is always enabling C++11 support, so sketches and libs are depending on
it. Every C++ compiler has been enabling C++11 by default for some years now.
Still, Ubuntu's avr-gcc is so **horrible** out of date, that it is not enabled
there. As a simple work around, -std=c++11 is now passed to the C++ compiler if
Arduino is used.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
cc50da690b
sys/arduino: Added SPI interface
...
Added an Arduino compatible SPI API on top of RIOT's SPI API.
2019-11-07 13:04:46 +01:00
Martine S. Lenders
da74936020
gnrc_sixlowpan_frag: initial import of SRF parameters
...
This imports the protocol parameters for Selective Fragment Recovery
(SFR). For the values I took some educated guesses based on my
experience with previous experimentation with fragment forwarding.
The defines currently are based on [draft v7].
[draft v7]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07#section-7.1
fixup! gnrc_sixlowpan_frag: initial import of SRF parameters
2019-11-07 12:16:30 +01:00
José Alamos
20ea18637f
Merge pull request #10485 from miri64/gnrc_netif/enh/default-init
...
gnrc_netif: assume `netif->ops->init()` to be set to at least a default
2019-11-07 11:41:05 +01:00
Martine Lenders
6493a9e69f
gnrc_netif: assume netif->ops->init()
to be set
2019-11-07 11:00:36 +01:00
Martine Lenders
14a2f6bc18
gnrc: use gnrc_netif_default_init() for all implementations
2019-11-07 11:00:36 +01:00
Martine Lenders
a1d402e015
Merge pull request #12559 from miri64/gnrc_sixlowpan_frag/enh/factor-out-frag-buf
...
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
2019-11-07 09:47:46 +01:00
Martine Lenders
09b5db28f1
gnrc_netif: expose common init function as default
2019-11-06 18:45:16 +01:00
Martine Lenders
4b82a56c89
gnrc_netif: introduce common init function
2019-11-06 18:45:15 +01:00
Marian Buschsieweke
4d279ae76e
Merge pull request #12055 from fabian18/driver-ina3221
...
Driver for INA3221 current and power and bus voltage monitor
2019-11-05 14:45:03 +01:00
fabian18
7e8cce875a
drivers/ina3221: Added SAUL integration
2019-11-05 12:37:41 +01:00
Benjamin Valentin
38e94d09db
sys/luid: provide luid_get_eui48() and luid_get_eui64()
...
The most common use case for luid is to generate those
addresses, so provide helper functions for it.
2019-11-04 21:08:23 +01:00
Benjamin Valentin
f6e7be9a06
sys/luid: allow to overwrite luid_base()
...
This allows to overwrite luid_base() with a function that reads an
ID from e.g. a EUI64MAC chip if no CPU ID is available.
2019-11-04 21:07:23 +01:00
Benjamin Valentin
9fb01b6d1c
eui64: Add address flag helper functions
2019-11-04 20:58:34 +01:00
Martine Lenders
ca37cde142
gnrc_sixlowpan_frag_fb: introduce function to get entry by tag
2019-11-04 20:04:39 +01:00
Martine Lenders
8c3dc66ad8
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
...
The name `fragment_msg` or `frag_msg`/`msg_frag` always to me was a bit
misplaced, as it basically implements an asynchronous fragmentation
buffer and doesn't necessarily have anything to do with messages.
This change
1. changes the name to `fb` (for fragmentation buffer)
2. factors its code out to its own sub-module so it can be re-used by
other 6LoWPAN fragmentation schemes like [Selective Fragment
Recovery]
[Selective Fragment Recovery]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05
2019-11-04 20:04:37 +01:00
Martine Lenders
79c8fc5405
Merge pull request #12599 from miri64/gnrc_sixlowpan_frag/enh/remove-code-dup
...
gnrc_sixlowpan_frag: various optimizations and clean-ups on sending
2019-11-04 19:54:33 +01:00
Ken Bannister
b354b8bd1a
net/gcoap: refine doc for 'obs' link attribute
2019-11-03 09:28:02 -05:00
Martine Lenders
2a1e002d6d
Merge pull request #12627 from miri64/gnrc_sixlowpan_iphc_nhc/enh/frag+iphc-payload_len
...
gnrc_sixlowpan_iphc_nhc: determine UDP hdr length from RB
2019-11-01 19:47:08 +01:00
Martine S. Lenders
f33111a9c2
gnrc_sixlowpan_iphc: remove duplicate gnrc_netif_hdr_get_netif()
...
The interface is already fetched in the beginning of the function and
doesn't change during its run, so getting the interface again at this
point is just redundant.
2019-11-01 18:29:44 +01:00
benpicco
865059fc66
Merge pull request #11230 from maribu/xtimer_msg_deps
...
sys/xtimer: Remove dependency to core_msg
2019-11-01 15:22:10 +01:00
Martine S. Lenders
806f33fce4
gnrc_sixlowpan_iphc_nhc: determine UDP hdr length from RB
...
When decoding IPHC in a fragmented datagram, relying on the size of the
allocated space for the decoded packet is wrong when fragments are
forwarded and decoded on an intermediate node (for which the reassembly
buffer's space is used): Using the full datagram size for allocation in
this case would be wasteful, so the allocated space is only marginally
larger than the fragment's compressed form.
This in turn results in the wrong UDP payload size being chosen and
even worse being forwarded to the subsequent nodes.
This change uses the (virtual) reassembly buffer's `datagram_size`
instead of relying on the allocated space for the encoded
datagram/fragment.
2019-11-01 13:18:00 +01:00
Martine S. Lenders
b713413c52
gnrc_sock: provide asynchronous event implementation
2019-11-01 00:21:04 +01:00
benpicco
3a87e2d2e6
Merge pull request #12624 from miri64/sock_async/fix/compile-time-errors
...
sock_async: fix compile-time errors
2019-10-31 21:26:05 +01:00
Marian Buschsieweke
cd1ce6b98d
sys/xtimer: Remove dependency to core_msg
...
When module `core_msg` is not used, `xtimer` now no longer provides the features
related to messages. This allows using `xtimer` without `core_msg`.
2019-10-31 19:55:50 +01:00
Sebastian Meiling
ca696f827b
Merge pull request #12193 from leandrolanzieri/pr/gcoap/obs
...
gcoap: Add 'obs' attribute in example and extend documentation
2019-10-31 18:14:23 +01:00
Martine S. Lenders
de47681d03
sock_async: fix compile-time errors
2019-10-31 16:01:49 +01:00
Juergen Fitschen
e152b3e346
sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1
2019-10-31 12:05:35 +01:00
Martine Lenders
5d11cf26f0
gnrc_netif: use 6LoENC only when 6Lo flag is set
2019-10-30 17:10:34 +01:00
Martine Lenders
1c7e1c9efd
shell_commands/sc_gnrc_netif: set 6Lo flag
2019-10-30 17:10:34 +01:00
Martine Lenders
e04a190511
gnrc_netif_ethernet: make 6LO configurable for 6LoEnc
2019-10-30 17:10:34 +01:00
Martine Lenders
004f7d8b16
gnrc_netif: add flag to indicate 6Lo capabilities
2019-10-30 17:10:33 +01:00
8b06560c02
sys/net/nanocoap: correctly initialize array
2019-10-30 17:03:06 +01:00
95da51bd7f
sys/net/nanocoap: fix potential use of uinitialized variable
2019-10-30 17:03:06 +01:00
5d1480a4b8
sys/net/nanocoap: fail when start data cannot be parsed
2019-10-30 17:03:06 +01:00
1aa1e2c8cc
sys/net/nanocoap: return ENOENT if parsing option failed
...
This fixes a potential use of uninitialized len in subsequent function calls.
This was reported by scan-build
2019-10-30 17:03:06 +01:00
Martine Lenders
5b4b12ed07
Merge pull request #11723 from miri64/sock/enh/async2
...
sock: initial definitions for asynchronous event handling
2019-10-30 16:59:11 +01:00
Martine Lenders
bf5b53392c
Merge pull request #12603 from jia200x/pr/link_up
...
netopt: redefine NETOPT_LINK_CONNECTED
2019-10-30 15:19:07 +01:00
Martine Lenders
f0b5eb04c1
sock: initial import of asynchronous event definitions
2019-10-30 13:23:31 +01:00
Jose Alamos
f38a786108
sc_gnrc_netif: implement link command
2019-10-30 13:13:06 +01:00
Jose Alamos
6beec0a4f6
netopt: update doc of NETOPT_LINK
2019-10-30 12:13:36 +01:00
Jose Alamos
43a5fdc870
netopt: rename NETOPT_LINK_CONNECTED
2019-10-30 12:13:36 +01:00
Martine Lenders
ea4b78654f
Merge pull request #12285 from JulianHolzwarth/pr/posix/pthread/pthread_reaper_fix
...
sys/posix/pthread/pthread.c: fix pthread reaper
2019-10-29 18:56:36 +01:00
Martine S. Lenders
dba2f9e5ea
gnrc_sixlowpan_frag: remove code duplication on fragment creation
2019-10-29 15:34:24 +01:00
Martine S. Lenders
d5e21f35c3
gnrc_sixlowpan_frag: copy netif header directly
2019-10-29 15:34:24 +01:00
benpicco
acaaee910e
Merge pull request #12536 from bergzand/pr/usbus/cdcacm_activate_on_dte_present
...
cdcacm: Activate data out endpoint on DTE present signal
2019-10-29 13:03:39 +01:00
Martine Lenders
526c963f43
Merge pull request #12594 from jia200x/pr/deprecate/gnrc_nettest
...
gnrc_nettest: add deprecation note
2019-10-29 10:59:14 +01:00
Jose Alamos
5b179b6d80
gnrc_nettest: add deprecation note
...
This module was intended to be a test framework for GNRC but it never
really got used. It was not maintained for 3 years. It will be removed
after 2020.07 release at the latest.
2019-10-29 10:41:45 +01:00
Martine Lenders
05d338169d
Merge pull request #12367 from brummer-simon/gnrc_tcp-fix_recv_conn_closed
...
gnrc_tcp: return immediatly on gnrc_tcp_recv if a connection is closing
2019-10-29 09:54:43 +01:00
1d7032a257
cdcacm: Activate data out endpoint on DTE present signal
2019-10-29 08:45:31 +01:00
727263ce73
Merge pull request #12533 from bergzand/pr/usbus/cdcecm_ready_on_iface
...
cdcecm: only activate OUT endpoint after interface selection
2019-10-29 07:55:35 +01:00
benpicco
456982f595
Merge pull request #12595 from aabadie/pr/net/sock_util_scan_build
...
sys/net/sock_util: fix dead initialization warning
2019-10-28 17:24:50 +01:00
2b0b591c85
sys/net/sock_util: fix dead initialization warning
...
This was reported by LLVM scan build. The value assigned at initialization is never used, so could be removed
2019-10-28 16:35:18 +01:00
a9399810d5
sys/net/uhcp: remove unused returned value in uhcp_client
2019-10-28 15:14:40 +01:00
benpicco
422d6d5f1a
Merge pull request #12582 from aabadie/pr/sys/sha_dead_assignment
...
sys/sha3: fix dead assignment of blockSize in Keccak_update
2019-10-27 13:05:16 +01:00
aaadaccc3f
sys/net/nanocoap: fix dead assignment in nanocoap server
2019-10-27 10:49:41 +01:00
74919d0646
sys/sha3: fix dead assignment of blockSize in Keccak_update
2019-10-27 10:44:54 +01:00
Gunar Schorcht
e38d3e24ec
Merge pull request #12548 from maribu/c11_atomcis_cpp_compat
...
sys: Basic C++ compatibility with C11 atomcis
2019-10-25 11:48:58 +02:00
d8d7f77b7d
Merge pull request #12567 from aabadie/pr/sys/riotboot_remove_unused_variable
...
sys/flashwrite: remove useless line
2019-10-25 10:26:07 +02:00
Marian Buschsieweke
cd8562e8c0
sys: Added basic C++ compat for C11 atomics
...
Added a header to allow defining C interfaces using the default C11 atomic
types. Those types are however fully opaque and inaccessible from C++, as C11
atomics are completely incompatible with C++.
2019-10-24 23:08:35 +02:00
benpicco
afecb9aa7a
Merge pull request #12562 from kaspar030/pr/suit_v4_nanocbor
...
sys/suit/v4: switch to nanocbor
2019-10-24 19:15:25 +02:00
Marian Buschsieweke
1c624e457c
Merge pull request #10592 from gschorcht/sys_arduino_ext
...
sys/arduino: Added Wire (I2C) interface
2019-10-24 18:28:11 +02:00
Francisco
0364c39694
Merge pull request #12408 from miri64/gnrc_netif/fix/src-addr-selection
...
gnrc_netif: only use prefix matching as tie-breaker in source selection
2019-10-24 17:14:17 +02:00
4ccb4e5995
sys/suit/v4: switch to nanocbor
...
Co-authored-by: Francisco <femolina@uc.cl>
2019-10-24 16:48:00 +02:00
Martine S. Lenders
e9d75f5655
gnrc_netif: remove filter parameter from _match_to_idx()
...
`_match_to_idx()` was removed from source address selection (which was
the only one setting the filter parameter to a non-NULL value), so it
is the parameter is not needed anymore.
2019-10-24 16:04:41 +02:00
Martine S. Lenders
e787f6b60d
gnrc_netif: only use prefix matching as tie-breaker in source selection
...
When source address selection is done, both RFC and comments in the code
state, that a longest prefix match should *only* be used as a
tie-breaker between more than one viable candidate. If there is only one
address, there is
a) no need for a tie-breaker
b) in the case of either the destination address or the single remaining
address being ULAs ([which are considered to be of global scope]
[RFC4193]) possibly not matching, as `fd00::/7` and e.g. `2001::/8`
do not have a common prefix.
(b) in fact causes the match function to return -1, causing the source
address selection to return -1, causing the outer function to return the
first address it found (which most often is the link-local address),
causing e.g. a ping to an ULA to fail, even is there is a global
address.
[RFC4193]: https://tools.ietf.org/html/rfc4193
2019-10-24 16:04:41 +02:00