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

1781 Commits

Author SHA1 Message Date
Jose Alamos
9ebc3f8bd8 auto_init/nrf52840: add support for SubMAC 2020-10-01 10:55:55 +02:00
Jose Alamos
1de5b34adf auto_init/cc2538_rf: add support for SubMAC 2020-10-01 10:55:55 +02:00
Jose Alamos
fda73fdf0a gnrc_lorawan: uncrustify files 2020-09-30 14:18:54 +02:00
Jose Alamos
71bda3bcd8 gnrc_lorawan: remove GNRC specific dependencies 2020-09-30 14:18:54 +02:00
Jose Alamos
0162a16d82 gnrc_lorawan: fix BUSY logic 2020-09-30 14:18:54 +02:00
Jose Alamos
2e6ba90435 gnrc_lorawan: refactor rx_done callback 2020-09-30 14:18:54 +02:00
Jose Alamos
5146261f03 gnrc_lorawan: rename radio event functions 2020-09-30 14:18:54 +02:00
benpicco
0bc80250cf
Merge pull request #15101 from benpicco/sys/net/uhcp-log
sys/net/uhcp: use LOG_xxx functions
2020-09-30 11:08:53 +02:00
Martine Lenders
9631576b22
gnrc_ipv6_nib: make ARO extra status codes also available without 6LN 2020-09-29 10:45:12 +02:00
Martine Lenders
04f6e06dd4
gnrc_ipv6_nib: only multicast probe UNREACHABLE neighbor if 6LR
Non-routing 6LNs do not have to join the solicited nodes address, so
probing for a neighbor using that address may be in vain and only
spamming the LLN with unnecessary messages. RFC 6775 basically assumes
this in section 5.2:

> There is no need to join the solicited-node multicast address, since
> nobody multicasts NSs in this type of network.
2020-09-29 10:45:12 +02:00
Benjamin Valentin
f163f1580b sys/net/uhcp: use LOG_ functions
Using `gnrc_border_router` with `uhcp` is quite noisy.
uhcpc will regularly refresh the prefix and print a bunch of status messages.

Allow the user to tone it down by setting a higher `LOG_LEVEL`.
For this, convert calls to `printf()` and `puts()` to `LOG_xxx()`.

This requires a dummy header for `uhcpd`.
2020-09-29 09:55:28 +02:00
Martine Lenders
555c62de51
gnrc_ipv6_nib: set NCE stale on incoming ARO
In accordance with RFC 6775, section 5.2 an NCE should be set STALE
when an ARO renews the address registration for the address:

> The routers SHOULD NOT garbage-collect Registered NCEs (see
> Section 3.4), since they need to retain them until the Registration
> Lifetime expires.  Similarly, if NUD on the router determines that
> the host is UNREACHABLE (based on the logic in [RFC4861]), the NCE
> SHOULD NOT be deleted but rather retained until the Registration
> Lifetime expires.  A renewed ARO should mark the cache entry as
> STALE.  Thus, for 6LoWPAN routers, the Neighbor Cache doesn't behave
> like a cache.  Instead, it behaves as a registry of all the host
> addresses that are attached to the router.
2020-09-24 13:13:43 +02:00
Martine Lenders
711ea275e9
Merge pull request #15042 from maribu/gnrc_dont_include_xtimer_when_not_used
sys/net/gnrc/netif: Fix compilation on waspmote-pro
2020-09-23 13:37:36 +02:00
Marian Buschsieweke
28d4bf7751
sys/net/gnrc/pktbuf_static: Fix alignment
The buffer _pktbuf was previously only aligned to a 1 byte boundary. This could
result in run time issues.
2020-09-22 15:04:56 +02:00
Marian Buschsieweke
8a5d301caa
sys/net/gnrc/netif: Fix compilation on waspmote-pro
xtimer.h must not be included, when the xtimer module is not use. Otherwise
compilation on the waspmote-pro with https://github.com/RIOT-OS/RIOT/pull/14799
will not longer work. gnrc_netif_pktq includes xtimer.h and uses xtimer, but
gnrc_netif includes gnrc_netif_pktq.h regardless of whether gnrc_netif_pktq
is used. This makes sure that gnrc_netif_pktq.h is only included when actually
used.
2020-09-22 11:51:09 +02:00
Marian Buschsieweke
1d1b446d6b
sys/net/gnrc/netif: use IS_USED macro 2020-09-22 11:50:18 +02:00
Marian Buschsieweke
0cb274c1eb
sys/net/gnrc: Fix include of xtimer.h
Make sure xtimer.h is only included if the xtimer module is actually used, as
otherwise compilation for the waspmote-pro fails.
2020-09-16 19:55:43 +02:00
Francisco
cb6b65e7ff
Merge pull request #14886 from miri64/gnrc/fix/circ-deps
gnrc: remove circular module dependencies
2020-09-09 09:06:28 +02:00
Martine Lenders
ec436b9069
Merge pull request #14963 from miri64/gnrc_sock_ip/fix/sock
gnrc_sock_ip: fix NULL pointer dereference
2020-09-08 17:15:25 +02:00
Martine S. Lenders
7d47484170
gnrc_sock_ip: fix NULL pointer dereference 2020-09-08 13:05:10 +02:00
Martine S. Lenders
2cf5b3c185
gnrc_ipv6_hdr: make HDR_NETTYPE dependent on nettype module
In #13994 this was introduced but overlooked here.
2020-09-08 12:53:29 +02:00
Martine S. Lenders
0e3443d006
gnrc_netif: guard usage of gnrc_ipv6 member 2020-09-08 12:53:29 +02:00
Martine S. Lenders
4fe7bb003a
gnrc_ipv6_nib: add missing header includes 2020-09-08 12:53:29 +02:00
benpicco
c7993b6140
Merge pull request #14961 from miri64/gnrc_rpl/fix/check-idx
gnrc_rpl: check index after fetching address from netif
2020-09-07 14:24:44 +02:00
benpicco
a084430be3
Merge pull request #14883 from miri64/gnrc_ipv6_nib/fix/ipv6_addr_idx-check
gnrc_ipv6_nib: check return value of gnrc_netif_ipv6_addr_idx()
2020-09-07 14:24:17 +02:00
Martine S. Lenders
91dfee7ee0
gnrc_ipv6_nib: fix duplicate handling for ARO
When `nce` is NULL on the duplicate check, the later re-fetching of the
`nce` might result in an actual NCE entry that then contains a
duplicate, so we need to re-check the EUI-64 again as well.
2020-09-07 08:42:50 +02:00
Martine S. Lenders
f9c3e5f5a4
gnrc_ipv6_nib: check return value of gnrc_netif_ipv6_addr_idx()
And acquire exclusive network interface access when necessary.

Fixes #14752.
2020-09-07 08:42:50 +02:00
Martine S. Lenders
f7913b3d47
gnrc_rpl: check index after fetching address from netif 2020-09-07 08:39:29 +02:00
Martine Lenders
a72d0ef3e8
gnrc_netif: add packet to queue when device is busy
... and also send on send error (i.e. when *medium* was busy)
2020-09-02 12:30:23 +02:00
Martine Lenders
7c7f667108
gnrc_netif: add a send queue 2020-09-02 12:30:22 +02:00
Cenk Gündoğan
538155c344
Merge pull request #14904 from leandrolanzieri/pr/kconfig/change_prefix_convention
treewide: modify Kconfig symbol prefixes
2020-09-01 15:57:06 +02:00
Martine S. Lenders
3b7bab1108
gnrc_ipv6_nib_nc: error on non-link-local address without ARSM 2020-09-01 11:12:55 +02:00
Martine S. Lenders
14efa3185b
gnrc_ipv6_nib: don't add dst from PL to NC without ARSM 2020-09-01 11:12:55 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:

   KCONFIG_MODULE_ => KCONFIG_USEMODULE_
   KCONFIG_PKG_ => KCONFIG_USEPKG_
   MODULE_ => USEMODULE_
   PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
Martine Lenders
4ba5367755
Merge pull request #7664 from zhuoshuguo/lwmac_radio_reinit
LWMAC: add re-initialize radio support.
2020-08-26 18:58:56 +02:00
benpicco
9f2475dc14
Merge pull request #14832 from maribu/sys-cleanup
sys: Cleanup access to internal variables
2020-08-26 17:07:19 +02:00
benpicco
2eb6d752df
Merge pull request #14770 from benpicco/netif_addr_to_str
net/netif: move gnrc_netif_addr_to/from_str() to netif
2020-08-25 18:52:55 +02:00
Martine Lenders
ec3464aaeb
Merge pull request #14788 from leandrolanzieri/pr/fuzzing/select_gnrc_pktbuf_malloc
fuzzing: select gnrc_pktbuf_malloc implementation
2020-08-25 16:05:46 +02:00
Leandro Lanzieri
ff8079b109
fuzzing: select gnrc_pktbuf_malloc implementation 2020-08-25 09:24:50 +02:00
Marian Buschsieweke
3b6fa61829
sys: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 20:28:11 +02:00
Hauke Petersen
d8aa76501a net/gnrc/rpl: fix default route lifetime
On receiving a DIO message, RPL sets the lifetime for the default
route and the parent timeout event to the value. This leads to short
amounts of time whem the node looses its default route, while it
handles the parent timeout event to probe its parent.

This commit fixes this by adding time the node needs for probing
to the default route lifetime.
2020-08-24 17:53:00 +02:00
Hauke Petersen
05347190b9 net/gnrc/nib_ft.c: fix minor typo in comment 2020-08-21 16:06:04 +02:00
Martine Lenders
66de39a20a
gnrc_sixlowpan_frag_rb: Check possibly uninitialized pointers 2020-08-20 23:51:38 +02:00
Benjamin Valentin
decadc41a0 drivers/dose: register driver with netdev 2020-08-17 22:53:51 +02:00
Benjamin Valentin
4f19b54b7b drivers/at86rf215: register driver with netdev 2020-08-17 22:53:51 +02:00
Benjamin Valentin
53eedc283b drivers/at86rf2xx: register driver with netdev 2020-08-17 22:53:51 +02:00
Benjamin Valentin
39951a948e net/netif: move gnrc_netif_addr_to/from_str() to netif
These functions are independent from GNRC and can be used by stack-agnistoc
code.
Avoid pulling in a GNRC dependency by moving those two helper functions to
`netif`.

The old function names are kept as `static inline` wrapper functions to avoid
breaking API users.
2020-08-16 23:52:32 +02:00
zhuoshuguo
d3c87d7bb9 lwmac: add re-initialize radio support. 2020-08-15 22:12:36 +08:00
Benjamin Valentin
2ed7f66d33 gnrc_sixlowpan_iphc: fix last byte of iphc_hdr always being 0
Coverty scan found this:

> CID 298295 (#1 of 1): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) result_independent_of_operands:
> (ipv6_hdr_get_fl(ipv6_hdr) & 255) >> 8 is 0 regardless of the values of its operands.

Looking at the code, this appears to be a copy & paste error from the previous line.
2020-08-11 14:09:28 +02:00
Benjamin Valentin
a9a0671232 gnrc_sixlowpan_iphc: fix Out-of-bounds read
Coverty scan found this:

> CID 298279 (#1 of 1): Out-of-bounds read (OVERRUN)
> 21. overrun-local: Overrunning array of 16 bytes at byte offset 64 by dereferencing pointer

The original intention was probably to advance the destination pointer by 4 bytes, not
4 * the destination type size.
2020-08-11 13:31:22 +02:00
acd47f0c1f gnrc_tcp: abs() -> labs() for int32_t
Fixes compilation on msp430 and probably avr.
2020-08-05 14:32:58 +02:00
Martine Lenders
b043e1fa64
Merge pull request #14683 from miri64/gnrc_sixlowpan_frag_vrb/fix/cppcheck-warning
gnrc_sixlowpan_frag_vrb: fix cppcheck warning
2020-08-03 13:15:52 +02:00
Martine S. Lenders
5885293e9e
gnrc_sixlowpan_frag_vrb: fix cppcheck warning
... which wasn't a false positive after all.
2020-08-03 12:29:06 +02:00
Benjamin Valentin
6af92ee113 gnrc/nib: fix _idx_dsts() calculation
Using pointer difference already gives us the number of elements of
size of what the pointer is pointing to.
Dividing by size will lead to the wrong (always 0) result.
2020-08-03 11:35:54 +02:00
Jose Alamos
96ee1d2bf8 net/gnrc_netif_lorawan: fix unaligned copy 2020-07-13 16:57:26 +02:00
Leandro Lanzieri
cdc252ab7b
net/gnrc/nettest: Remove module
This module has been deprecated and scheduled for removal in release
2020.07.
2020-07-10 15:58:54 +02:00
Akshai M
c75df9c5ca gnrc/lwmac : Expose to Kconfig
Expose configurations to Kconfig
2020-07-08 10:04:45 +05:30
Akshai M
a05eb3b4ad gnrc/lwmac : Move GNRC_LWMAC_MAX_DATA_TX_RETRIES to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
cda7791a4b gnrc/lwmac : Move GNRC_LWMAC_DATA_CSMA_RETRIES to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
e241141a92 gnrc/lwmac : Move GNRC_LWMAC_DATA_DELAY_US to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
1fe5acddc6 gnrc/lwmac : Move GNRC_LWMAC_WR_PREPARATION_US to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
85948925ba gnrc/lwmac : Move GNRC_LWMAC_TIMEOUT_COUNT to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
3bd8dd4aa2 gnrc/lwmac : Move GNRC_LWMAC_BROADCAST_CSMA_RETRIES to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
65fa832e40 gnrc/lwmac : Move GNRC_LWMAC_MAX_RX_EXTENSION_NUM to 'CONFIG' 2020-07-08 10:04:45 +05:30
Akshai M
e38dca5d42 gnrc/lwmac : Move GNRC_LWMAC_TIME_BETWEEN_WR_US to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Akshai M
1be3264ab3 gnrc/lwmac : Move GNRC_LWMAC_WAKEUP_INTERVAL_US to 'CONFIG_' 2020-07-08 10:04:45 +05:30
Simon Brummer
122616ae7d gnrc_tcp: add retransmission timer 2020-07-06 21:18:23 +02:00
Simon Brummer
67b22d8783 gnrc_tcp: requested changes 2020-07-04 09:21:50 +02:00
Simon Brummer
aa1c2e9cba gnrc_tcp: rewrite API internal messaging 2020-07-04 09:20:43 +02:00
Martine Lenders
1245065afb
Merge pull request #14291 from brummer-simon/gnrc_tcp-move_rcv_buffer_handling
gnrc_tcp: rewrite recv buffer allocation/returning
2020-07-01 17:19:28 +02:00
Simon Brummer
9fe91f5c44 gnrc_tcp: rewrite recv buffer allocation/returning 2020-07-01 15:47:23 +02:00
Gunar Schorcht
b51ac69d0a sys/net/gnrc: add netif support for ATWINC15x0 netdef driver 2020-06-26 12:33:38 +02:00
Gunar Schorcht
a440ae7bd9 gnrc/icmpv6: redefinition of MIN macro
Since `min(a,b)` is a very frequently used function, several libraries such as ESP8266 SDK define a `MIN` macro in their header files. Therefore the `MIN` macro should be undefined before its definition to avoid compilation errors if it is defined anywhere else before.
2020-06-25 17:31:07 +02:00
Akshai M
d2342b6e26 gnrc/gomach : Expose configurations to Kconfig 2020-06-18 21:21:50 +05:30
Akshai M
676a39cebb gnrc/gomach : Move GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
89360577a0 gnrc/gomach : Move GNRC_GOMACH_T2U_RETYR_THRESHOLD to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
b9773263c0 gnrc/gomach : Move GNRC_GOMACH_REPHASELOCK_THRESHOLD to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
6b10059b8a gnrc/gomach : Move GNRC_GOMACH_MAX_ALLOC_SENDER_NUM to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
3274a6b83e gnrc/gomach : Move GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
a8cad3715d gnrc/gomach : Move GNRC_GOMACH_CP_EXTEND_THRESHOLD to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
62a3be9eee gnrc/gomach : Move GNRC_GOMACH_TX_BUSY_THRESHOLD to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
025c1e0509 gnrc/gomach : Move GNRC_GOMACH_VTDMA_SLOT_SIZE_US to 'CONFIG_' 2020-06-18 21:21:50 +05:30
Akshai M
9b7b3fef42 gnrc/gomach : Move GNRC_GOMACH_BCAST_INTERVAL_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
6aa0418da4 gnrc/gomach : Move GNRC_GOMACH_PREAMBLE_INTERVAL_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
48a2fc57e0 gnrc/gomach : Move GNRC_GOMACH_MAX_PREAM_INTERVAL_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
a0a6dc0e4e gnrc/gomach : Move GNRC_GOMACH_NO_TX_ISR_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
ae175987d5 gnrc/gomach : Move GNRC_GOMACH_WAIT_RX_END_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
588200f515 gnrc/gomach : Move GNRC_GOMACH_CP_MIN_GAP_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
1505ea8e11 gnrc/gomach : Move GNRC_GOMACH_CP_RANDOM_END_US to 'CONIFG_' 2020-06-18 21:15:28 +05:30
Akshai M
e6da0bab49 gnrc/gomach : Move GNRC_GOMACH_SUPERFRAME_DURATION_US to 'CONFIG_' 2020-06-18 21:15:28 +05:30
Akshai M
ab3e197c3f gnrc/gomach : Move GNRC_GOMACH_CP_DURATION_US to 'CONFIG_' 2020-06-18 21:07:30 +05:30
Martine Lenders
09d097c934
Merge pull request #14214 from btcven/2020_06_06-6lo-mtu
net/gnrc/netif: add option for non-std 6lo MTU
2020-06-18 15:25:01 +02:00
Jean Pierre Dudey
e1ef082d49
net/gnrc/netif: disable 6lo fragmentation when unneeded
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-18 07:16:16 -05:00
Jean Pierre Dudey
d47f4a1caa
net/gnrc/netif: add option for non-std 6lo MTU
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-18 07:16:16 -05:00
Leandro Lanzieri
3ce8efd4cb
Merge pull request #14138 from akshaim/Kconfig_mac
gnrc/mac : Expose configurations to Kconfig
2020-06-17 18:12:40 +02:00
Akshai M
25f778b552 gnrc/mac : Expose to Kconfig
Expose configurations to Kconfig

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-06-15 12:28:57 +05:30
Akshai M
9ddc9e0633 gnrc/mac : Move GNRC_MAC_NEIGHBOR_COUNT to 'CONFIG_' 2020-06-15 12:19:37 +05:30
Leandro Lanzieri
dbfe0d8ea1
gnrc/sock: Configure mbox size with exponent and add config doc group
This changes the configuration macro to be the exponent of 2^n, as the
mbox buffer size needs to be always power of 2. The macro now has the
GNRC prefix.

Also a compile configuration documentation group is created.
2020-06-15 07:30:54 +02:00
Leandro Lanzieri
d4cac38cc9
gnrc/tcp: Configure mbox size with exponent and add config doc group
This changes the configuration macro to be the exponent of 2^n, as the
mbox buffer size needs to be always power of 2.

Also a compile configuration documentation group is created.
2020-06-15 07:30:54 +02:00
Leandro Lanzieri
375cad38df
gnrc/sixlowpan: Configure queue size with exponent
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:52 +02:00