1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

6606 Commits

Author SHA1 Message Date
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
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
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
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