c755071483
Merge pull request #10421 from miri64/gnrc_icmpv6_error/bug/dont-send-to-unspec
...
gnrc_icmpv6_error / gnrc_ipv6: fixes for unspecified address
2018-11-17 16:06:03 +01:00
Martine Lenders
0bdbb68959
gnrc_ipv6: drop packets with unspecified destination
...
It just doesn't makes sense to handle them any further
2018-11-17 15:45:25 +01:00
Martine Lenders
0aa96a4579
gnrc_icmpv6_error: fix doc alignment
2018-11-17 15:45:25 +01:00
Martine Lenders
ef1132384a
gnrc_icmpv6_error: check IPv6 header before starting to build
...
Check for:
- if it exists (critical error condition -- non-IPv6 headers should
not trigger these functions) => assert
- if it has a multicast source (that shouldn't really happen but
people might try weird stuff ;-)
- if it has an unspecified source (can't determine receiver of error
message => don't send it, don't build it)
2018-11-17 15:45:25 +01:00
Martine Lenders
447e1b8eb8
Merge pull request #10422 from miri64/gnrc_ipv6/bug/fill-until-end-case
...
gnrc_ipv6: fix _fill_ipv6_hdr() for pure IPv6 packets
2018-11-17 15:08:52 +01:00
Martine Lenders
d4f425bb00
gnrc_ipv6: allow for empty IPv6 header
2018-11-17 14:49:12 +01:00
Martine Lenders
3ec37acbd1
gnrc_ipv6: fix _fill_ipv6_hdr() for pure IPv6 packets
...
If a packet only contains IPv6 and IPv6 extension header snips (e.g. if
the IPv6 packet has no payload or if an extension header was not
pre-parsed)
2018-11-17 14:48:49 +01:00
Martine Lenders
3b1a7d0eee
Merge pull request #8594 from miri64/gnrc_icmpv6_error/enh/use-icmpv6-error
...
gnrc_icmpv6_error: fix and use where appropriate
2018-11-16 19:05:55 +01:00
josar
8e7c6cc26a
at86rf2xx/at86rf2xx_netdev: improve documentation.
...
It was not obvious where `dev->idle_state` was saved.
2018-11-16 18:53:36 +01:00
Martine Lenders
897e688194
examples: activate gnrc_icmpv6_error for gnrc_networking
2018-11-16 17:39:17 +01:00
Martine Lenders
e801829c7a
gnrc_udp: send ICMPv6 error messages where appropriate
2018-11-16 17:39:16 +01:00
Martine Lenders
db2da19ea4
gnrc_ipv6: send IPv6 error messages where appropriate
2018-11-16 17:39:16 +01:00
Martine Lenders
04a2827089
gnrc_icmpv6_error: provide NOPs when compiled without module
...
This is aimed to make the usage code of this module more readable.
2018-11-16 17:39:16 +01:00
Martine Lenders
697ad17ed1
icmpv6_error: doc: provide better references to error codes
2018-11-16 17:39:16 +01:00
Martine Lenders
b99e9f4185
gnrc_icmpv6_error: append IPv6 and netif header before sending
2018-11-16 17:39:16 +01:00
Martine Lenders
d161379e47
gnrc_icmpv6_error: re-order header inclusions
2018-11-16 17:39:16 +01:00
Martine Lenders
0b4230e5f6
gnrc_icmpv6_error: fix and optimize pointer search in _param_prob_build
2018-11-16 17:39:16 +01:00
Martine Lenders
335342a466
gnrc_icmpv6_error: fix build function for send and recv order
2018-11-16 17:39:16 +01:00
Martine Lenders
f0da2a0cd7
gnrc_icmpv6_error: don't include netif header into fit
2018-11-16 17:39:16 +01:00
Martine Lenders
c4175a5e52
gnrc_icmpv6_error: adapt _fit() to get MTU from netif
2018-11-16 17:39:16 +01:00
Martine Lenders
c8c8564d51
gnrc_icmpv6_error: use netapi_dispatch_send instead of netapi_send
2018-11-16 17:39:16 +01:00
Martine Lenders
ba13d8f5bf
gnrc_icmpv6_error: introduce debug messages
2018-11-16 17:39:15 +01:00
Martine Lenders
a7a8227e36
gnrc_icmpv6_error: centralize send function
2018-11-16 17:39:15 +01:00
Martine Lenders
36617f3733
gnrc_icmpv6_error: make input pointers constant
2018-11-16 17:39:15 +01:00
Martine Lenders
6ec456b0fc
gnrc_icmpv6_error: don't release orig_pkt on error
...
The stack might still wants to do something with the packet after
copying it to the error message.
2018-11-16 17:22:20 +01:00
Martine Lenders
3b56c78a3b
gnrc_icmpv6_error: make build functions private
2018-11-16 17:22:20 +01:00
Martine Lenders
a30bdebc2c
gnrc_icmpv6_error: remove static inline from functions
2018-11-16 17:22:20 +01:00
cladmi
143e393fcd
dist/tools: add build system sanity check script
...
Add a script to execute sanity checks on build system files.
It should prevent bad patterns to re-appear after being cleaned.
Currently adds a check for using the content of `FEATURES` instead of
`USEMODULE`.
Modules should not check the content of FEATURES_PROVIDED/_REQUIRED/OPTIONAL
Handling specific behaviors/dependencies should by checking the content of:
* `USEMODULE`
* maybe `FEATURES_USED` if it is not a module (== not a periph_)
2018-11-16 16:40:23 +01:00
a79d03835a
Merge pull request #10417 from bergzand/pr/pkt/mark_const
...
gnrc/pkt: Add const keyword to length functions
2018-11-16 16:19:18 +01:00
Martine Lenders
a0067b925d
tests/unittests: provide tests for gnrc_pkt_len_upto()
2018-11-16 15:51:36 +01:00
21202e7e18
gnrc/pkt: Add const keyword to length functions
2018-11-16 15:06:39 +01:00
879e0cb1e2
Merge pull request #10406 from jcarrano/aes-t-table
...
sys/crypto: optimize AES footprint (resurrected)
2018-11-16 14:25:26 +01:00
Joakim Nohlgård
9e9a01bc19
frdm-kw41z: Use SAUL_GPIO_INVERT on SW3, SW4 inputs
...
with this flag set, reading 1 means that the button is being pressed.
2018-11-16 13:23:08 +01:00
Joakim Nohlgård
38f8cc2284
frdm-kw41z: Define BTNx macros for user pushbuttons
2018-11-16 13:17:40 +01:00
Gaëtan Harter
195d51b92a
tests/eepreg: remove duplicate FEATURES_REQUIRED
...
The dependency from eepreg to FEATURES_REQUIRED is already defined in
`sys/Makefile.dep` so should not need to be duplicated in the
application Makefile.
2018-11-16 12:07:00 +01:00
e47e996b0e
boards/frdm-kw41z: autoload fxos8700 with saul_default
2018-11-15 21:23:08 +01:00
Juan Carrano
3393dafe82
sys/crypto: configure AES via pseudomodules.
...
USEMODULE += crypto_aes_precalculated enables the precalculated T tables (the old
code).
USEMODULE += crypto_aes_unroll causes loops to be unrolled.
2018-11-15 18:25:26 +01:00
Oleg Artamonov
05fe168a1e
sys/crypto: optimize AES
2018-11-15 18:21:17 +01:00
fb5aed464f
boards/frdm-kw41z: update i2c configuration
...
Remove first I2C that is not reachable from the pinout and is not connected to anything. Move I2C1 as the first I2C device.
Update FXOS8700 I2C device in board configuration
2018-11-15 08:57:20 +01:00
836fe3dbba
Merge pull request #9890 from bergzand/pr/ethos/sync
...
ethos: Only accept frame if previous frame is read
2018-11-14 22:41:52 +01:00
c4608ca0eb
ethos: Only accept frame if previous frame is read
2018-11-14 22:16:04 +01:00
Gaëtan Harter
50f58bfb07
makefiles/scan-build: Produce an error when doing 'scan-build-analyze'
...
This makes doing 'scan-build-analyze' produce an error at execution if
WERROR=1.
When used from `scan-build` it will not procude an error to display the result
webpage.
2018-11-14 14:18:31 +01:00
Gaëtan Harter
ea3c1661f3
makefiles/scan-build: Fix 'scan-build-analyze' target
...
This correctly defines a `scan-build-analyze` target that does not display the
result webpage.
`scan-build-view` has now been moved to a private target as should not
be used directly.
The handling of displaying the page on the host system and implementing
'scan-build-analyze' are now explicitely done with separate targets and
not double implemented target when in docker or on the host that were executed
twice with different implementations.
2018-11-14 14:16:35 +01:00
Martine Lenders
a98edd33a0
Merge pull request #10387 from SemjonKerner/fix_nrf52_hwrng
...
cpu/nrf5x: fix hwrng hang
2018-11-14 13:39:34 +01:00
PeterKietzmann
0de38c2a6f
tests/puf_sram: add input args to automation script
2018-11-14 13:34:41 +01:00
Gaëtan Harter
bcf292b3d4
makefiles/scan-build: Remove un-necessary ';'
2018-11-14 13:06:16 +01:00
Gaëtan Harter
e3b50a6bf8
makefiles/scan-build: Provide a per board scan-build output
...
Update the SCANBUILD_OUTPUTDIR to be per board.
Also remove un-necessary export and 'CURDIR'.
2018-11-14 13:02:06 +01:00
Gaëtan Harter
bba88065ac
makefiles/scan-build: make RIOT_CI_BUILD visible to scan-build
...
This is required to have reference builds context using the right
RIOT_VERSION_OVERRIDE=buildtest.
2018-11-14 13:01:09 +01:00
Semjon Kerner
ee3ef1927d
cpu/nrf5x: fix event hang
2018-11-14 12:48:32 +01:00
Martine Lenders
83ca890ef7
Merge pull request #10339 from miri64/gnrc_pktbuf/cleanup/rm-duplicate-upto
...
gnrc_pktbuf: deprecate gnrc_pktbuf_duplicate_upto
2018-11-13 18:50:02 +01:00