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

20995 Commits

Author SHA1 Message Date
a2d679c76f gnrc/pktbuf: avoid memcpy if size <= 0 2019-01-16 16:13:14 +01:00
Martine Lenders
55b9757044 gnrc_netif: centralize function to init IPv6 MTU 2019-01-16 15:52:54 +01:00
Martine Lenders
ea9bbd72b8 gnrc_netif: centralize function to get l2addr NETOPT 2019-01-16 15:52:54 +01:00
Martine Lenders
8f763535ac gnrc_netif: centralize S/TLLAO length to address length function
The function to infer the link-layer address length from the length of
a S/TLLAO is very dependent on the IPv6 over X specification and thus
should be grouped with the other IP over X functions.
2019-01-16 15:52:53 +01:00
3b76a2c2be fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit handling
"val = -val" causes UB for INTMIN, thus explicitly cast to unsigned.
2019-01-16 15:23:19 +01:00
f5345fbd38 cpu/native/periph/timer: fix undefined behaviour 2019-01-16 15:16:54 +01:00
Martine Lenders
bd08ea1409 nrfmin: remove long address support
The driver is claiming it is needed for IPv6 / 6LoWPAN support, which
is not true (the long address is never used for NRFMIN in fact) and
this assumption actually leads to an assertion when compiled as with
the `gnrc_border_router` example.
2019-01-16 14:59:28 +01:00
Gaëtan Harter
61452669b9
Merge pull request #10038 from smlng/pr/make/buildoutdir
make: introduce common BUILD_DIR
2019-01-16 14:18:48 +01:00
Sebastian Meiling
a0e143d09f
Merge pull request #10721 from nmeum/asymcute-out-of-bounds
asymcute: check for minimum packet length early
2019-01-16 13:53:49 +01:00
danpetry
9fadbf60b4
Merge pull request #10190 from jcarrano/qualifier-fixes/lua
pkg/lua: Fix warnings on discarded qualifiers.
2019-01-16 12:13:29 +01:00
Ken Bannister
f1b0827585 examples/gcoap: handle response buffer too small 2019-01-16 05:41:30 -05:00
Ken Bannister
8a1a2b41fb examples/gcoap: handle request buffer too small 2019-01-16 05:38:13 -05:00
Leandro Lanzieri
d9be249144
Merge pull request #10578 from MrKevinWeiss/pr/i2capi
drivers/i2c: Fix i2c api issues
2019-01-16 11:07:10 +01:00
Sören Tempel
2a6354b07d asymcute: check for minimum packet length early
Without this patch _len_get reads one byte beyond the con->rxbuf
if the incoming packet consists only of the byte 0x01.
2019-01-16 10:06:38 +01:00
Sebastian Meiling
2fde8335c9
Merge pull request #10728 from keestux/memcpy-struct-copy
Do normal assignment instead of memcpy
2019-01-16 09:18:44 +01:00
Federico Pellegrin
4b7c37cca0 tests/periph_flashpage: improve flashpage tests
-) verify correctness of data written by raw write test
-) write to really last flash page and not last - 1
-) use flashpage_addr instead of manual calculation
2019-01-16 05:29:23 +01:00
Cenk Gündoğan
abb72db73a
Merge pull request #10776 from miri64/gnrc_sixlowpan_frag/enh/detect-duplicates
gnrc_sixlowpan_frag: drop received duplicates
2019-01-16 00:08:25 +01:00
Dylan Laduranty
514812fc7c pkg/cmsis-dsp: update to V5.4.0 from ARM repo
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2019-01-15 21:33:24 +01:00
Martine Lenders
01370511df gnrc_sixlowpan_frag: drop received duplicates
Otherwise duplicate fragments are added to the number of already
received datagram bytes in L153 leading to possible race-conditions.
2019-01-15 20:09:49 +01:00
Martine Lenders
e65a017f19
Merge pull request #10775 from aabadie/pr/board/disable_dma_spi_iotlabm3
boards/iotlab-m3: disable DMA with SPI
2019-01-15 20:05:39 +01:00
9daf3c74a9 boards/iotlab-m3: disable DMA with SPI 2019-01-15 19:49:32 +01:00
Emmanuel Baccelli
209d90bc00
Merge pull request #10215 from kYc0o/pr/riotboot_multislot
riotboot: add multislot support
2019-01-15 19:04:28 +01:00
Emmanuel Baccelli
d8f64a36e4 bootloaders/riotboot: updated documentation on multislot 2019-01-15 18:32:10 +01:00
Dylan Laduranty
fdcac731eb cpu/cortexm_common: Update ARM CMSIS to V5.4.0
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2019-01-15 17:35:40 +01:00
Martine Lenders
4e4e6f8793
Merge pull request #10772 from miri64/shell/bug/gnrc-icmpv6-release-when-full
shell: sc_icmpv6_echo: release payload when pktbuf full
2019-01-15 17:26:34 +01:00
Juan Carrano
a8a23e4d85 pkg/lua/contrib: Fix warning on discarded qualifier.
There was a cast in a macro that calculated offsets. Since it was
only doing a pointer difference, the cast was inocuous, but I fix
it anyways.
2019-01-15 15:16:25 +01:00
Juan Carrano
cf2bca0d53 pkg/lua: Suppress warnings on discarded qualifiers.
Upstream lua has many instances of discarding cont qualifiers through
explicit casting. This disables the warnigns for the package so that
they don't show up when one enables -Wno-cast-qual globally.
2019-01-15 15:16:25 +01:00
Martine Lenders
8bd9e0f0c2 shell: sc_icmpv6_echo: release payload when pktbuf full
Otherwise it gets never released

Co-Authored-By: Gunar Schorcht <gunar@schorcht.net>
2019-01-15 15:07:46 +01:00
Gaëtan Harter
94a89f5105
Merge pull request #10765 from miri64/travis/fix/base-branch
.travis.yml: provide base branch to static tests
2019-01-15 14:05:14 +01:00
Martine Lenders
16ff5e03ca .travis.yml: provide base branch to static tests 2019-01-15 13:42:28 +01:00
Martine Lenders
da624f2ff4 .travis.yml: fetch base-branch for rebase 2019-01-15 13:29:19 +01:00
Martine Lenders
465631f83c gnrc_netif: doc-group device-type based functions 2019-01-15 11:51:21 +01:00
Francisco Acosta
8e5ac629e0 tests/riotboot: extend to accept slot 0 or 1
Modify the test to accept slot values 0 and 1.
2019-01-14 16:14:34 +01:00
Cenk Gündoğan
6a4c764c95
Merge pull request #10569 from miri64/gnrc_netif/enh/rm-get-NETOPT_IPV6_IID
gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
2019-01-14 14:09:34 +01:00
Martine Lenders
7ae90564d9 gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
This way the IID generation gets much simplified and code duplication
is avoided since it removes GNRC's requirement for NETOPT_IPV6_IID.
2019-01-14 13:42:58 +01:00
9767dd3d49
Merge pull request #10754 from kaspar030/fix_nanocoap_optlen
nanocoap: fix server-side option_count overflow
2019-01-14 13:26:37 +01:00
Ken Bannister
1058a8d07e tests/nanocoap: add test for option parse overflow 2019-01-14 12:30:06 +01:00
4b1b0aa84e sys/net/nanocoap: fix possible option_count overflow 2019-01-14 12:30:06 +01:00
dd53bb89f7 tests/unittests/nanocoap: add test case for option_count overflow 2019-01-14 12:30:06 +01:00
Gunar Schorcht
d34616756e cpu/esp32: add compile configuration group 2019-01-14 12:19:19 +01:00
Gunar Schorcht
2cb7b4c6df cpu/esp8266: add compile-time configurations group 2019-01-14 12:19:04 +01:00
Martine Lenders
4ab3d1a77b
Merge pull request #10534 from bergzand/pr/kw2xrf/undedup_address
kw2xrf: Don't use netdev_ieee802154_t for link layer address
2019-01-14 11:25:41 +01:00
Cenk Gündoğan
a032070e82
Merge pull request #10744 from kaspar030/handle_disabled_default_modules_before_deps
make: handle disabled default modules before dependencies
2019-01-13 18:20:10 +01:00
Martine Lenders
35868a3474
Merge pull request #10402 from bergzand/pr/mrf24j40/undedup_address
mrf24j40: Don't use netdev_ieee802154_t for link layer address
2019-01-13 13:17:40 +01:00
a6e7882879
mrf24j40: use byteorder for address operations 2019-01-13 12:03:03 +01:00
Marian Buschsieweke
04d0f38d68
Merge pull request #10746 from kaspar030/remove_newlib_dep_lpc2387
cpu/lpc2387: remove newlib dependencies
2019-01-12 23:14:38 +01:00
38e5bd627b
mrf24j40: Don't propagate address to 802154 layer 2019-01-12 20:23:36 +01:00
e6ace9c05d
mrf24j40: Add NETOPT_ADDRESS{,_LONG} to getters 2019-01-12 20:23:36 +01:00
f7bf03073c
mrf24j40: read address from device
This change modifies the mrf24j40 driver to read the address directly
from the device instead of returning the netdev_ieee802154_t member
2019-01-12 20:23:27 +01:00
fcb55c36cf
kw2xrf: Don't set netdev values in addr setters 2019-01-12 17:04:14 +01:00