Joseph Noir
0736de37c9
Merge pull request #9363 from gschorcht/pthread-g++
...
core/pthread: make them compilable with g++
2018-07-23 17:06:19 +02:00
Gunar Schorcht
9db03537b9
core/pthread: make them compilable with g++
2018-07-21 14:24:57 +02:00
Martine Lenders
dc8c983d26
Merge pull request #9341 from bergzand/pr/sockutil/cleanup
...
sock_util: Add unittest and fix detected issues.
2018-07-20 12:09:31 +02:00
0c43dc743d
sock_util: Limit recursion in str2ep
2018-07-20 11:48:29 +02:00
b024ff1cb8
sock_util: Add checks to port number parsing
...
Add additional checks to the port number parsing in str2ep to validate
the port number supplied in the string. This only verifies that the port
number is no longer than 5 chars and the resulting number fits in a
uint16_t.
It is still possible to supply up to 5 random chars.
2018-07-19 22:07:19 +02:00
bff8694051
sock_util: check path length in urlsplit
...
Add a length check to the path to ensure that it fits in the supplied
buffer in the urlsplit function
2018-07-19 22:07:19 +02:00
d93ecab880
sock_util: Add terminator to host-port string
...
Add missing null terminator to the returned host-port string in
sock_udp_ep_fmt
2018-07-19 22:07:18 +02:00
b8a494fb76
sock_util: Prevent overflow in sock_urlsplit
...
This adds a length check to verify if the host-port part of the URL fits
in the supplied buffer
2018-07-19 22:07:18 +02:00
3096823ab4
sock_util: Allow URLs without path as valid
...
URLs without a path were treated as invalid, while according to the URL
specification they are valid
Also fixes a missing null terminator in the returned path
2018-07-19 22:07:18 +02:00
3402e3509c
sock_util: Prevent overflow in _find_pathstart
...
Limit the number of scanned chars in _find_pathstart to the predefined
size
2018-07-19 22:07:18 +02:00
b0309145f0
sock_util: Limit URL scheme size
2018-07-19 22:07:17 +02:00
Martine Lenders
0d3af49278
Merge pull request #9603 from miri64/gnrc_mac/fix/print-formatting
...
gnrc: mac: fix types according to print formatting
2018-07-19 17:18:48 +02:00
Martine Lenders
3870def74c
gnrc: mac: fix types according to print formatting
...
As reported by `llvm`.
2018-07-19 15:13:39 +02:00
30e683ccfe
gnrc_netif: reapply event flags on device reset
...
On a NETOPT_STATE set call with NETOPT_STATE_RESET the netdev device
resets the callback event flags. This requires that after the netdev
device resets, the network stack also reapplies these callback event
flags
2018-07-19 14:51:14 +02:00
4c183257df
sock_util: Fix null terminator in sock_udp_ep_fmt
2018-07-18 17:44:03 +02:00
6a81a4d587
sock_util: add missing includes
2018-07-18 17:43:59 +02:00
Joakim Nohlgård
2b31129ef0
sys/cbor: Fix -Wformat=2 warnings
2018-07-18 15:29:06 +02:00
Martine Lenders
c6d46057b0
sixlowpan: use generic format strings instead of inttypes.h macros
...
We had bad experiences with those in the past when used with newlib-nano
;-)
2018-07-17 12:22:16 +02:00
Martine Lenders
ecfff3e812
sixlowpan: fix decoding of DAM in sixlowpan_print()
...
Destination address compression is all in the least significant nibble
of that byte in the IPHC header [[1]].
[1]: https://tools.ietf.org/html/rfc6282#section-3.1.1
2018-07-17 12:22:15 +02:00
Martine Lenders
d8081453f2
gnrc_ipv6: clean-up and simplify send handling
...
This change is a gnrc_ipv6_nib/gnrc_netif(2)-based rework of #7210 .
Packet duplication
==================
Its main optimization is that it restructures `gnrc_ipv6` handling of
sent packets so that duplication for write-protection happens at the
latest possible step:
* potential `gnrc_netif` headers added by upper layers are
write-protected before their removal
* This unifies the duplication of the IPv6 header directly after
that
* Extension headers in-between the IPv6 header and the payload header
are duplicated just before the check sum is duplicated
Especially the last point allows for only handing a single packet snip
to all lower functions instead of an already searched IPv6 header
(which now is always the first until it is handed to the interface) +
payload header.
Further clean-ups
=================
* Next-hop link-layer address determination was moved to the
`_send_unicast` function, greatly simplifying the unicast case in the
`_send` function
* Code for loopback case was added to a new function `_send_to_self`
* Removed some code duplication
2018-07-16 15:08:56 +02:00
Peter Kietzmann
9f34513eec
Merge pull request #9563 from bergzand/pr/netif/netdev_recv_reset
...
gnrc_netif_ieee802154: drop frame on buffer error
2018-07-13 16:21:33 +02:00
ea6a2ef494
gnrc_netif_ieee802154: drop frame on buffer error
...
This adds a netdev recv call to indicate that the received frame should be
dropped when there is no buffer space available to store the frame.
2018-07-12 16:15:00 +02:00
Martine Lenders
3b1e4f54d2
Merge pull request #9532 from brummer-simon/gnrc_tcp-fix_includes
...
gnrc_tcp: Add missing includes
2018-07-10 20:22:13 +02:00
Simon Brummer
3b89bef366
gnrc_tcp: Add missing includes
2018-07-10 16:00:36 +02:00
Martine Lenders
8d47210228
gnrc_netif: don't spam user if dev doesn't support NETOPT_RX/TX_END_IRQ
2018-07-09 17:23:31 +02:00
Peter Kietzmann
15b0fe4368
Merge pull request #9467 from gebart/pr/gnrc_netif-netdev-flags
...
gnrc_netif: Enable RX and TX complete events after netdev init
2018-07-09 08:59:32 +02:00
Hauke Petersen
fb184a3b2c
sys/auto_init: add init for asymcute
2018-07-05 15:44:16 +02:00
Hauke Petersen
ad20c4f1cc
net: add Asymcute (asynchronous MQTT-SN client)
2018-07-05 15:44:16 +02:00
Hauke Petersen
ed01bf0e1d
net: add header with generic MQTT-SN defines
2018-07-05 15:13:02 +02:00
Hauke Petersen
bf8f8dfa67
net/sock_udp: add sock_udp_ep_equal()
2018-07-05 15:13:01 +02:00
Martine Lenders
5361c4cfff
sock_dns: return error if DNS server is not set
2018-07-05 11:09:34 +02:00
Martine Lenders
1916c45dc0
gnrc_ipv6_nib_router: add support to send RDNSSO
2018-07-05 11:09:34 +02:00
Martine Lenders
6d1f012c9d
gnrc_ipv6_nib: add support to handle RDNSSO
2018-07-05 11:09:34 +02:00
Martine Lenders
0ef62b9690
gnrc_ndp: add support for building RDNSS option
2018-07-05 11:01:22 +02:00
Martine Lenders
fbf216f864
gnrc_sock_dns: Move DNS server end point to implementation
2018-07-05 11:01:22 +02:00
Martine Lenders
8eab80c3ec
ndp: define RDNSS option
2018-07-05 11:01:22 +02:00
Martine Lenders
61e8825fa7
Merge pull request #9497 from haukepetersen/fix_byteorder_bufsletobe
...
core/byteorder: fix naming for htobebufs/bebuftohs functions
2018-07-04 21:51:34 +02:00
Cenk Gündoğan
835f8f0daa
Merge pull request #9290 from PeterKietzmann/pr_sram_puf
...
Add SRAM based PRNG seeder
2018-07-04 18:08:53 +02:00
PeterKietzmann
20397c5b15
cortexm_common: add SRAM based PRNG seeder
2018-07-04 17:55:16 +02:00
Hauke Petersen
1bfb3c8534
net/emcute: adapted to changes byteorder functions
2018-07-04 17:41:04 +02:00
Martine Lenders
8721d0b0a2
gnrc_sixlowpan_frag: add page context to reassembly buffer
...
While refactoring IPHC I noticed that the page actually can already be
used for fragmentation: Given @cgundogan's work on [ICN LoWPAN] we can
already assume, that the page context may (among other thing) determine
the type of the reassembled packet. This PR provides the basis for
that.
[ICN LoWPAN]: https://tools.ietf.org/html/draft-gundogan-icnrg-ccnlowpan-01
2018-07-03 14:08:14 +02:00
Cenk Gündoğan
16e1f972ab
Merge pull request #9424 from miri64/gnrc_sixlowpan_frag/enh/async-gc
...
gnrc_sixlowpan_frag: add asynchronous rbuf GC
2018-07-03 11:45:52 +02:00
Martine Lenders
254f16e81f
gnrc_sixlowpan_frag: add asynchronous rbuf GC
...
While the current approach for garbage collection in the 6Lo reassembly
buffer is good for best-effort handling of
*fragmented* packets and nicely RAM saving, it has the problem that
incomplete, huge datagrams can basically DoS a node, if no further
fragmented datagram is received for a while (since the packet buffer is
full and GC is not triggered).
This change adds a asynchronous GC (utilizing the existing
functionality) to the reassembly buffer, so that even if there is no new
fragmented packet received, fragments older than `RBUF_TIMEOUT` will be
removed from the reassembly buffer, freeing up the otherwise wasted
packet buffer space.
2018-07-03 10:25:25 +02:00
Cenk Gündoğan
e5c6d0ebf1
Merge pull request #9240 from maxvankessel/pr/isrpipe
...
drivers/isrpipe: changed isrpipe_t content order
2018-07-02 22:28:41 +02:00
Cenk Gündoğan
bf33941819
Merge pull request #9434 from miri64/gnrc_pktbuf_static/fix/alignment-race
...
gnrc_pktbuf_static: fix alignment issue / leaks
2018-07-02 16:32:13 +02:00
Cenk Gündoğan
32e823acb2
Merge pull request #9447 from miri64/gnrc_sixlowpan_frag/enh/add-cur-size
...
gnrc_sixlowpan_frag: add current_size to exposed struct
2018-07-02 14:05:40 +02:00
Joakim Nohlgård
bbf4f1e453
gnrc_netif: Enable RX and TX complete events after netdev init
2018-06-29 21:53:23 +02:00
Francisco Acosta
23d176f46b
Merge pull request #8857 from ZetaR60/RIOT_atmega_time_dot_h
...
cpu/atmega_common: Use updated time.h
2018-06-28 22:29:20 +02:00
Martine Lenders
cb74063573
gnrc_sock_udp: use sock's local end-point for listening
...
Without this fix the listener doesn't actually listen on the
(potentially) ephemeral port introduced in #9382 , but on port 0 which is
wrong.
2018-06-28 17:25:26 +02:00
Martine Lenders
68fe6682ff
gnrc_sixlowpan_frag: add current_size to exposed struct
...
Since IPHC also manipulates the total number of bytes of a received
datagram (by decompressing it), this also needs to be exposed. I guess
I was too focused on introducing a *generic* packet buffer for a future
virtual reassembly buffer (where it isn't needed, but so isn't `pkt` to
be honest), that I totally forgot about it in #9352 .
2018-06-28 12:28:51 +02:00
Joakim Nohlgård
904c583038
Merge pull request #8697 from aabadie/pr/drivers/params/lis3dh
...
drivers/lis3dh: apply unified driver params scheme + cleanup
2018-06-28 10:52:48 +02:00
Martine Lenders
acfe57a52b
gnrc_pktbuf_static: reduce checks to be in line with new alignment
2018-06-27 17:19:34 +02:00
Martine Lenders
8a75d8d189
gnrc_pktbuf_static: fix alignment issue / leaks
...
This fixes an alignment issue I encountered in the static version of
the packet buffer.
The bug is caused by a race-condition where a certain order of
operations leads to a chunk being released according to the
byte-alignment of the platform, but overlapping potential space for
a future `_unused_t` struct e.g. (x mark allocated regions):
Future leak of size sizeof(_unused_t) Time
v |
+------------+-----+--------------------+ |
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| +
+------------+-----+--------------------+ |
|
+------------+--+--+--------------------+ |
| |xxxxxxxxxxxxxxxxxxxxxxx| +
+------------+--+--+--------------------+ |
|
+-----+------+--+--+--------------------+ |
|xxxxx| |xxxxxxxxxxxxxxxxxxxxxxx| +
+-----+------+--+--+--------------------+ |
|
+-----+------+-----+---------+----------+ |
|xxxxx| |xxxxxxxxxx| +
+-----+------+-----+---------+----------+ |
|
+-----+------+-----+--------------------+ |
|xxxxx| |xxxxxxxxxxxxxxxxxxxxxxxxxx| +
+-----+------+-----+--------------------+ |
|
+------------+-----+--------------------+ |
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| +
+------------+-----+--------------------+ |
|
+------------+-----+--------------------+ |
|xxxxxxxxxxxxxxxxxx| | +
+------------+-----+--------------------+ |
|
+------------+-----+--------------------+ |
| |xxxxx| | +
+------------+-----+--------------------+ |
v
Sadly, I wasn't able to create a reproducable unittest that show-cases
this corner-case, since I don't understand the order of operations that
cause this one 100%, but the bug is reproducable (but also not
reliably) by sending large (i.e. fragmented) packets to a 6Lo-enabled
host from more than 1 host simultaneously (use `gnrc_pktbuf_cmd` to
check).
By making the size of `_unused_t` the only condition for alignment,
this bug is fixed.
2018-06-27 17:18:24 +02:00
6e6716a1a6
Merge pull request #9317 from maribu/sht1x
...
drivers/sht11: Major refactoring
2018-06-27 10:10:39 +02:00
Marian Buschsieweke
b91359b05b
drivers/sht1x: Added SAUL integration
2018-06-27 08:58:05 +02:00
Marian Buschsieweke
de9b67bdc2
drivers/sht1x: Major refactoring
...
- Use RIOT's GPIO interface to access the sensor to increase portability
- Changed API to allow more than one sensor per board
- Added `sht1x_params.h` that specifies how the sensors is connected - each
board can overwrite default settings by #defining SHT1X_PARAM_CLK and
SHT1X_PARAM_DATA
- Changed arithmetic to use integer calculations only instead of floating point
arithmetic
- Added support for checking the CRC sum
- Allow optional skipping of the CRC check to speed up measuring
- Added support for advanced features like reducing the resolution and skipping
calibration to speed up measuring
- Allow specifying the supply voltage of sensor which heavily influences the
temperature result (and use that information to calculate the correct
temperature)
- Reset sensor on initialization to bring it in a well known state
- Support for the obscure heater feature. (Can be useful to check the
temperature sensor?)
- Updated old SHT11 shell commands to the new driver interface, thus allowing
more than one SHT10/11/15 sensor to be used
- Added new shell command to allow full configuration of all attached SHT1x
sensors
- Removed old command for setting the SHT11 temperature offset, as this feature
is implemented in the new configuration command
2018-06-27 08:58:00 +02:00
Marian Buschsieweke
d208c224b0
drivers: Renamed module sht11 to sht1x
...
The sensor family SHT10, SHT11 and SHT15 only differ in their accuracy (as in
calibration, not as in resolution). Thus, the same driver can be used for all.
The new driver name better reflects this fact.
2018-06-27 08:57:58 +02:00
Hyungsin
0c5c3d9b77
driver/pir: add pir-based occupancy sensing
2018-06-26 13:46:37 -07:00
Cenk Gündoğan
315c201747
Merge pull request #9372 from miri64/gnrc_sixlowpan_frag/enh/i8511
...
gnrc_sixlowpan_frag: adapt for #8511
2018-06-26 19:47:25 +02:00
Martine Lenders
a2eb3c7f15
gnrc_sixlowpan_frag: adapt for #8511
...
This refactors the `gnrc_sixlowpan_frag` module for the API proposed
in #8511 .
The `ctx` for `gnrc_sixlowpan_frag_send()` is required to be a
`gnrc_sixlowpan_msg_frag_t` object, so IPHC can later on use it to
provide the *original* datagram size (otherwise, we would need to adapt
the API just for that, which seems to me as convoluted as this
proposal).
I also provide an expose function with a future possibility to provide
more than just one `gnrc_sixlowpan_msg_frag_t` object later on (plus
having cleaner module separation in general).
2018-06-26 19:38:33 +02:00
PeterKietzmann
ec5fb4fbda
sys/random: fix distribution of random_uint32_range()
2018-06-26 14:08:43 +02:00
42c4460daf
Merge pull request #9325 from aabadie/pr/saul/tvoc_ppb
...
drivers/saul :sys/phydat: add definitions for TVOC sensor type and PPB unit
2018-06-25 12:20:11 +02:00
Cenk Gündoğan
bc57e901a8
Merge pull request #9374 from PeterKietzmann/pr_sys_sha1prng
...
sys/random: add SHA1PRNG
2018-06-22 16:22:09 +02:00
PeterKietzmann
3c4360eddb
sys/random: add SHA1PRNG
2018-06-22 16:11:53 +02:00
Martine Lenders
ffde933259
Merge pull request #9399 from miri64/sock_dns/doc/fix-spelling
...
sock_dns: fix typo in doc
2018-06-22 13:32:20 +02:00
Martine Lenders
a027684a1e
sock_dns: fix typo in doc
...
`s/fuction/function/` ;-)
2018-06-22 13:23:26 +02:00
Cenk Gündoğan
3712cdffc2
Merge pull request #9391 from miri64/shell/feat/pktbuf-cmd
...
shell_commands: add command for packet buffer stats
2018-06-22 10:04:37 +02:00
Martine Lenders
a6a7357077
shell_commands: add command for packet buffer stats
...
I'm using something like this command for a while now for debugging
GNRC. Usually, I just patch it into the application I'm using it with,
but I think there is a benefit to also provide it to RIOT upstream
properly.
2018-06-22 09:51:17 +02:00
Martine Lenders
0c9d7aeedc
gnrc_rpl: exit early if netif_hdr is NULL in send function
...
Without this fix RPL might crash when the packet buffer is full.
2018-06-21 14:51:47 +02:00
Martine Lenders
579d9d78d4
Merge pull request #8823 from miri64/gnrc_ipv6_nib/feat/slaac
...
gnrc_ipv6_nib: add full RFC4862 DAD support
2018-06-21 14:10:36 +02:00
danpetry
ce37449dd5
Merge pull request #9090 from jcarrano/newlib-missing-functions
...
sys/newlib: Bugfix, add missing syscalls (only stubs)
2018-06-21 13:55:38 +02:00
Cenk Gündoğan
d140aa1c8e
Merge pull request #9382 from miri64/sock/enh/i9376
...
sock_udp: allow creation with ephemeral ports
2018-06-21 12:16:40 +02:00
Cenk Gündoğan
0c428ecb2e
gnrc_rpl: remove events from the queue before memset()
2018-06-21 10:41:13 +02:00
ddfc5843bb
Merge pull request #9086 from bergzand/pr/nanocoap_sock/client_split
...
nanocoap_sock: split generic request function of from nanocoap_get
2018-06-20 23:31:05 +02:00
Martine Lenders
a33399edf7
gnrc_sock_udp: provide fix for error state for full port pool
2018-06-20 14:51:18 +02:00
Martine Lenders
f8524cb4c0
gnrc_sock_udp: provide port for #9376 API fix
2018-06-20 14:51:17 +02:00
Martine Lenders
a20639074a
sock_udp: define send error-state for full port pool
2018-06-20 14:51:17 +02:00
Martine Lenders
9e7cebae93
sock_udp: allow creation with ephemeral ports
...
This change allows the port for local endpoint to be zero 0. If this is
the case the `sock_udp_create()` function binds the object to an
ephemeral port.
2018-06-20 14:51:17 +02:00
741c8c0c68
sys/auto_init: improve documentation
2018-06-18 13:59:09 +02:00
Gaëtan Harter
acef97aa15
Merge pull request #9243 from cladmi/pr/warning/missing_include_dirs
...
makefiles/cflags.inc.mk: add -Wmissing-include-dirs flag
2018-06-18 13:13:54 +02:00
Cenk Gündoğan
4219ec9265
Merge pull request #9345 from bergzand/pr/fmt/strnlen
...
fmt: Add fmt_strnlen function
2018-06-18 11:23:53 +02:00
Cenk Gündoğan
e08fd546cf
Merge pull request #9353 from miri64/gnrc_sixlowpan/opt/rm-pad
...
gnrc_sixlowpan: fix order of gnrc_sixlowpan_msg_frag_t
2018-06-18 10:59:27 +02:00
Cenk Gündoğan
acb9e4aed2
Merge pull request #9352 from miri64/gnrc_sixlowpan_frag/enh/expose-rbuf
...
gnrc_sixlowpan_frag: expose (parts of) reassembly buffer
2018-06-18 10:55:13 +02:00
Joakim Nohlgård
21bc3ca51f
Merge pull request #9360 from gebart/pr/embunit-const
...
embunit: Const test case names
2018-06-15 17:04:20 +02:00
Ken Bannister
4f8c3b7d18
Merge pull request #9310 from miri64/gcoap/enh/clients-without-response-handlers
...
gcoap: don't allocate memo for clients without response handlers
2018-06-15 10:28:30 -04:00
Martine Lenders
b03aa528e8
gcoap: don't allocate memo for clients without response handlers
2018-06-15 09:46:50 +02:00
Joakim Nohlgård
8514ff5f15
gnrc/pktbuf: Const correctness on gnrc_pktbuf_add
2018-06-15 00:44:23 +02:00
Joakim Nohlgård
fcae95ca96
embunit: Const test case names
2018-06-15 00:34:33 +02:00
Martine Lenders
2c9ee62eb0
gnrc_sixlowpan: fix order of gnrc_sixlowpan_msg_frag_t
...
While working on #9352 I noticed that the order of members in the
`gnrc_sixlowpan_msg_frag_t` struct costs us 4 bytes in RAM due to byte
alignment. This PR fixes the order of members, so they are the most
packed.
2018-06-14 17:35:29 +02:00
Martine Lenders
86cbde2db5
gnrc_sixlowpan_frag: expose (parts of) reassembly buffer
...
This exposes the parts of the reassembly buffer to be usable as context
as proposed in #8511 .
I only exposed *parts of* for two reasons:
1. I don't need to expose further types (like `rbuf_int_t`), that are
not of interest outside of fragmentation.
2. This allows for an easy future extension for the virtual reassembly
buffer as proposed in [[1]].
This makes this change a little bit more involved, because instead of
just renaming the type, I also need to add the usage of the `super`
member, but I think in the end this little preparation work will be
beneficial in the future.
[1]: https://tools.ietf.org/html/draft-watteyne-6lo-minimal-fragment-01#section-3
2018-06-14 17:22:58 +02:00
1778dbde85
fmt: Add fmt_strnlen function
2018-06-14 11:57:11 +02:00
Martine Lenders
e91e0a7807
Merge pull request #9261 from kb2ma/gcoap/refine_re-register
...
net/gcoap: Refine Observe re-registration
2018-06-13 16:05:40 +02:00
Gaëtan Harter
726581fc2e
sys/Makefile.include: remove non existing include directory
...
The include/crypto path should include 'sys' to be vavil
But all source files are already using '#include "crypto/HEADER.h"' so it does
not need fixing.
2018-06-12 14:08:29 +02:00
Martine Lenders
91c65e40f8
Merge pull request #9327 from cgundogan/pr/tlsf_total_sizes
...
tlsf: add custom walker to get total free / used sizes
2018-06-12 10:07:07 +02:00
Cenk Gündoğan
0009213072
tlsf: add custom walker to get total free / used sizes
2018-06-12 09:43:48 +02:00
47fc4b0749
sys/auto_init: fix doxygen grouping
2018-06-11 19:12:02 +02:00
7d013eb2b6
sys: fix doxygen grouping
2018-06-11 19:12:02 +02:00
25b90317f3
sys/phydat: add ppb unit support
2018-06-11 15:46:46 +02:00
Juan Carrano
cce83b4443
sys/newlib: Add missing syscalls (stubs).
...
Add small stubs for _times_r and _link_r so that code using times()
or link() can still compile. The functions are marked as not implemented
and return invalid codes.
2018-06-11 14:54:47 +02:00
Martine Lenders
ec5ca98b4d
Merge pull request #9320 from brummer-simon/gnrc_tcp-set_ip_src_addr_directly
...
gnrc_tcp: Set src addr in outgoing packets by tcp layer.
2018-06-11 14:20:21 +02:00
1c46829a78
Merge pull request #9085 from kb2ma/nanocoap/build_request_pkt
...
net/nanocoap: Build message with coap_pkt_t
2018-06-11 10:00:38 +02:00
Ken Bannister
43db2715cd
net/nanocoap: create pkt-based request
...
Includes string and uint options.
2018-06-10 08:44:16 -04:00
Cenk Gündoğan
5ca031d4fa
Merge pull request #9179 from PeterKietzmann/pr_ccnl_shell_cs
...
shell/ccnl: use new CS add method
2018-06-10 13:35:50 +02:00
Simon Brummer
370fe1e475
gnrc_tcp: Set src addr in outgoing packets by tcp layer.
2018-06-10 13:26:23 +02:00
PeterKietzmann
d3d012c077
shell/ccnl: use new CS add method
2018-06-10 12:11:44 +02:00
Cenk Gündoğan
c135f2639e
Merge pull request #9300 from miri64/gnrc_ipv6_nib/fix/rtr-timeout-wrong-ctx
...
gnrc_ipv6_nib: use router instead of netif for router timeout context
2018-06-07 13:40:48 +02:00
Hauke Petersen
36ecaa6e4b
net/emcute: use global byteorder functions
2018-06-07 12:10:58 +02:00
Martine Lenders
6e31ce7c74
gnrc_netif: increase number of maximum IPv6 groups
2018-06-07 10:14:52 +02:00
Martine Lenders
fbe391723b
gnrc_netreg: Further specify gnrc_netreg_register() precondition
...
While browsing through the rendered doc, I found the precondition of
`gnrc_netreg_register()` somewhat lacking. What is a "message queue"?
`gnrc_netreg_entry_t`s have types. Does this apply for all types?
This specifies the requirement more: The calling thread **only** needs
a message queue (also provides a link to `msg_init_queue()` now for
further information), if the provided `gnrc_netreg_entry_t` is of type
`GNRC_NETREG_TYPE_DEFAULT` (i.e. thread-wise IPC).
2018-06-06 22:19:53 +02:00
Martine Lenders
b6ab9eb343
gnrc_ipv6_nib: use router instead of netif for router timeout context
...
`GNRC_IPV6_NIB_RTR_TIMEOUT` [expects a default router entry][doc] as
context, so using the `netif` here is clearly wrong. This causes the
hardfault described in #9297 .
[doc]: http://doc.riot-os.org/group__net__gnrc__ipv6__nib.html#ga1c7e892ef6533f699c4e64737c2847c2
2018-06-06 11:37:51 +02:00
Ken Bannister
2c02ed2093
net/gcoap: refine observe re-registration
...
Fix re-register when using the same token.
Handle edge cases when change token for a resource.
Only set observer and resource on initial registration.
Discuss re-registration in documentation.
2018-06-05 09:23:16 -04:00
BytesGalore
0c034c9220
rpl: add DIS Solicited Information option
2018-06-04 18:10:22 +02:00
Martine Lenders
22ad3aa12e
gnrc_ndp: only send RAs when VALID address is found
...
Otherwise, it may happen that `::` or a global address is chosen by
the IPv6 header fill function. Both types of addresses are
[not valid for RAs](https://tools.ietf.org/html/rfc4861#section-4.2 )
2018-05-31 17:11:26 +02:00
Martine Lenders
55adbee488
gnrc_ipv6_nib: add full RFC4862 DAD support
...
Parts of [RFC4862] were already implemented when NDP via the NIB was
first implemented. This change just includes the DAD portion of
[RFC4862]. This should be enough to make RIOT fully RFC4862 compliant.
[RFC4862]: https://tools.ietf.org/html/rfc4862
2018-05-31 17:11:25 +02:00
Martine Lenders
478287701c
Merge pull request #9242 from jcarrano/fix-embunit-invalid-cast
...
sys/embunit: Fix incompatible declaration in outputter.
2018-05-31 10:04:04 +02:00
Martine Lenders
57d3c4698c
gcoap: don't drop observer on re-register
...
With #9209 gCoAP got the ability to re-register and OBSERVE with a new
token, sadly the `observer` variable wasn't set in that fix, so a
re-registration actually led to the deletion of the observer (because it
is still `NULL` when the old registration is overwritten in l. 317)
2018-05-30 23:05:25 +02:00
Juan Carrano
841c7195ba
sys/ps: Use correct define for TLSF information.
...
The macro MODULE_TLSF_MALLOC indicates if tlsf is being used as the system-wide
allocator. MODULE_TLSF only incates if TLSF is present.
PS should check for MODULE_TLSF_MALLOC to decide if heap information should be
displayed.
2018-05-30 14:13:25 +02:00
Juan Carrano
40e58a1afc
sys/embunit: Fix incompatible declaration in outputter.
...
OutputterPrintHeaderFunction is declared as a function of 1 parameter
but CompilerOutputter_printHeader was defined as taking 2.
It is a mystery why this code compiled before.
2018-05-30 12:01:45 +02:00
Unknown
11fff4e729
drivers/isrpipe: changed isrpipe_t content order
2018-05-30 10:18:16 +02:00
Sebastian Meiling
f017ee1a50
Merge pull request #5675 from basilfx/feature/prng_fortuna
...
sys: random: fortuna csprng
2018-05-30 09:07:18 +02:00
Martine Lenders
fce5c758f7
Merge pull request #8841 from miri64/netif/api/initial2
...
netif: Initial import of a common network interface API (second try)
2018-05-29 22:10:50 +02:00
Martine Lenders
2586b5c161
Merge pull request #9233 from brummer-simon/gnrc_tcp-handle_link_local_addr
...
gnrc_tcp: handle link local IPv6 addresses correctly
2018-05-29 21:50:00 +02:00
Simon Brummer
686aabaa0a
gnrc_tcp: handle link local IPv6 addresses correctly
2018-05-29 21:28:32 +02:00
5be4b7f5c8
Merge pull request #9226 from miri64/gnrc_netif/enh/error-on-multicast-space
...
gnrc_netif: fail IPv6 address addition if no space for solicited nodes
2018-05-29 20:30:26 +02:00
Ken Bannister
341debd5e0
Merge pull request #9209 from kb2ma/gcoap/observe_change_token
...
net/gcoap: Observer re-register with new token
2018-05-29 18:06:07 +00:00
Martine Lenders
a082e10157
gnrc_netif: add GNRC specific implementation of netif.h
2018-05-29 19:49:29 +02:00
Martine Lenders
06947b78fc
netif: Initial import of a common network interface API
2018-05-29 19:49:29 +02:00
Martine Lenders
1bc9a592c4
gnrc_netif: improve doc on GNRC_NETIF_IPV6_ADDRS_NUMOF
2018-05-29 19:30:30 +02:00
Martine Lenders
ea64d39e21
gnrc_netif: fail IPv6 address addition if no space for solicited nodes
2018-05-29 19:30:30 +02:00
Ken Bannister
d7dde2dded
net/gcoap: observer re-register with new token
2018-05-29 13:30:05 -04:00
Martine Lenders
d3d7a49d7a
gnrc_netreg: make message queue requirement more visible
2018-05-29 19:21:48 +02:00
Bas Stottelaar
99755eaa0c
sys: random: add fortuna PRNG
2018-05-29 18:40:58 +02:00
Martine Lenders
ced615a7ae
Merge pull request #9224 from maribu/ping6
...
shell_commands/ping6: Fixed bug in calculation of average round trip time
2018-05-29 14:27:49 +02:00
Cenk Gündoğan
5230e7732c
Merge pull request #9188 from miri64/gnrc_pktdump/enh/print-rest
...
gnrc_pktdump: print rest of snip as hex if available
2018-05-29 13:32:39 +02:00
Marian Buschsieweke
b4b088be9e
shell_commands/ping6: Fixed bug in calculation of average round trip time
...
The average rout trip time has been to low in case packets were lost, as lost
packets were treated as if that had an RTT of 0.
2018-05-29 12:36:05 +02:00
Martine Lenders
8c77cbb903
gnrc_pktdump: print rest of snip as hex if available
...
Currently, `gnrc_pktdump` only prints the header part of a snip.
However, if the snip wasn't parsed yet by the corresponding GNRC
module (or the module doesn't exist because the node is e.g. just a
forwarder), additional data might not be printed.
This makes it hard to analyze the data properly (sometimes you not only
want to know where the IPv6 packet is supposed to go, you also want to
know what's in it). So this just prints the rest of the snip as a hex
dump.
2018-05-29 12:33:06 +02:00
Gaëtan Harter
f61dbb6bdb
sys/trickle: document time interval unit 'ms'
...
Unit is milliseconds as said here:
https://github.com/RIOT-OS/RIOT/pull/9145#discussion_r188861183
2018-05-29 11:59:12 +02:00
657bd25dbe
Merge pull request #8993 from ZetaR60/RIOT_cbmplex
...
sys/cb_mux: Callback multiplexer
2018-05-29 10:06:05 +02:00
Matthew Blue
02697fafb3
sys/cb_mux: initial support
2018-05-28 15:43:41 -04:00
Matthew Blue
dfa8fb919d
sys/timex: fix incompatible atmega time.h
2018-05-28 13:04:55 -04:00
Hauke Petersen
7f2fb5e0a3
net/emcute: use correct number of retries
...
syncsend() is used also for the initial packet, so resending
while (retries <= EMCUTE_N_RETRY) is the correct behavior.
2018-05-28 11:41:20 +02:00
fce61f91f0
Merge pull request #9046 from bergzand/pr/uuid/initial
...
uuid: Initial import of RFC4122 UUID functions
2018-05-25 15:05:57 +02:00
Hauke Petersen
ce2adb31aa
sys/uart_stdio: remove unused rx_cb from header
2018-05-25 11:29:16 +02:00
6bb8a5c145
nanocoap_sock: split request function from get
...
The nanocoap_get function is refactored to split of the request part
into a separate function for reuse by other modules. Support for
retransmissions when the received frame is malformed is dropped as it
was broken anyway.
2018-05-25 09:40:20 +02:00
Loïc Dauphin
260bc37958
Merge pull request #5914 from cgundogan/pr/ndn-riot_as_a_pkg
...
pkg: ndn-riot: initial import of ndn-riot as a package
2018-05-24 18:29:22 +02:00
smlng
1011803867
net/gnrc/rpl: fix doxygen grouping
2018-05-24 14:38:27 +02:00
Cenk Gündoğan
f64265de57
gnrc_pktdump: add hex dump for NDN
2018-05-24 10:58:26 +02:00
Cenk Gündoğan
d005566042
gnrc: add nettype handling for NDN
2018-05-24 10:58:26 +02:00
Cenk Gündoğan
05d4c23c4a
ethertype: use correct type for NDN and CCNx
2018-05-24 10:58:26 +02:00
Cenk Gündoğan
1fb4789e1b
auto_init: add ndn-riot
2018-05-24 10:58:26 +02:00
fc03d6f694
uuid: Initial import of RFC4122 UUID functions
...
Provides functions for type 3, 4 and 5 UUID generations.
UUID type 1 is timestamp based and requires an accurate time source. For
this reason it is left out of this implementation. UUID type 2 is not
defined in RFC 4122 and thus also not included here
2018-05-23 16:31:01 +02:00
smlng
e97882dc56
evtimer: use conversion macro US_PER_MS
2018-05-23 15:13:31 +02:00
Sebastian Meiling
9d83b60f3b
Merge pull request #9083 from smlng/pr/gcoap/cleanup
...
gcoap: enhance gcoap_req_init
2018-05-23 10:40:54 +01:00
Cenk Gündoğan
441f11ea45
gnrc_rpl: shell: adapt to evtimer for RPL events
2018-05-23 09:42:12 +02:00
Cenk Gündoğan
b819ac8d35
gnrc_rpl: adapt to evtimer for RPL events
2018-05-23 09:42:12 +02:00
Cenk Gündoğan
4c9e947d43
gnrc_rpl: adjust author and copyright
2018-05-22 23:46:55 +02:00
smlng
b9ca8f466f
gcoap: add asserts for path in gcoap_req_init
2018-05-22 21:28:58 +02:00
smlng
c9e9f72454
gcoap: use const path parameter
2018-05-22 21:28:58 +02:00
Bas Stottelaar
7781da7799
sys: netopt: add busy option
2018-05-21 16:37:38 +02:00
Bas Stottelaar
02395e593d
sys: netopt: add checksum option
2018-05-21 16:37:38 +02:00
Juan Carrano
cf686bde2d
pkg/tlsf: Refactor the TLSF package and bring back original TLSF api.
...
- Cleanup package makefile.
- Download directly from git.
- Remove giant patch.
- Implement malloc function as a contrib package.
- Update ccn example.
- Update ps command.
2018-05-18 15:41:07 +02:00
Cenk Gündoğan
94541e1802
Merge pull request #9145 from bergzand/pr/trickle/ms_us_swap
...
trickle: remove msg_time member from struct
2018-05-18 15:00:52 +02:00
Cenk Gündoğan
ab0071622b
Merge pull request #9121 from kaspar030/uart_stdio_workaround
...
sys/uart_stdio: compile with -Wno-cast-function-type
2018-05-17 17:13:30 +02:00
1c03b67cab
sys/uart_stdio: compile with -Wno-cast-function-type
2018-05-17 17:03:27 +02:00
aa84c3e6b8
trickle: remove msg_time member from struct
...
The msg_time member is only locally used and set before read. It can
be removed as the state kept by the member is not used.
2018-05-17 10:40:12 +02:00
d6f9be77b5
Merge pull request #9123 from maribu/pack_structs
...
gnrc/netif/hdr.h: Optimized structure layout
2018-05-14 14:29:09 +02:00
Marian Buschsieweke
4b8881abb4
gnrc/netif/hdr.h: Optimized structure layout
...
Reordered struct members to not waste memory due to padding.
Before:
``` C
typedef struct {
uint8_t src_l2addr_len;
uint8_t dst_l2addr_len;
kernel_pid_t if_pid; // <-- 16 bit, is aligned to 16 bit
uint8_t flags;
uint8_t __padding_byte; // <-- Inserted to fulfill padding requirements
int16_t rssi; // <-- 16 bit, is NOT aligned to 16 bit
uint8_t lqi;
uint8_t __padding_byte2;// <-- Inserted to fulfill padding requirements
} gnrc_netif_hdr_t;
```
Now:
``` C
typedef struct {
uint8_t src_l2addr_len;
uint8_t dst_l2addr_len;
kernel_pid_t if_pid; // <-- 16 bit, is aligned to 16 bit
uint8_t flags;
uint8_t lqi;
int16_t rssi; // <-- 16 bit, is aligned to 16 bit
} gnrc_netif_hdr_t;
```
When build for the `bluepill` board, the new layout reduces the size by 2 bytes.
2018-05-14 14:01:29 +02:00
372aadd626
Merge pull request #8978 from Hyungsin/forupstream_fxos8700
...
drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer
2018-05-14 08:45:58 +02:00
Hyungsin
beaf08bcb2
drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer
2018-05-12 17:51:58 -07:00
Gaëtan Harter
60d09e6b21
sys/icmpv6_hdr_print: replace PRIu8 by PRIu16
...
PRIu8 is not supported on samr21-xpro:
type: hu code: hu
After fix
type: 133 code: 0
Found by running 'tests/gnrc_netif'
2018-05-11 17:41:25 +02:00
Gaëtan Harter
d0f22b787c
Merge pull request #8112 from cladmi/pr/crypto/input_len
...
crypto/ccm: fix input_len checking with length_encoding
2018-05-09 18:56:34 +02:00
Gaëtan Harter
fa33eacd1f
crypto/ccm: fix _fits_in_nbytes function
...
Function is broken with num_bytes >= 4.
Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
ee311a331b
crypto/ccm: refactor input_len check in a function
...
Refactorg checking that length can be stored in a number of bytes to a
subfunction.
2018-05-07 15:08:00 +02:00
Wentao Shang
89023b3499
crypto/ccm: fix input_len check
...
Maximum input_len depends only on length_encoding and not auth_data_len.
The current length_max value was also wrong.
RFC3610 page 2
3. The message m, consisting of a string of l(m) octets where 0 <=
l(m) < 2^(8L). The length restriction ensures that l(m) can be
encoded in a field of L octets.
2018-05-07 15:08:00 +02:00
Martine Lenders
8a46cf611e
gcoap: make message queue size configurable
2018-05-06 16:41:43 +02:00
9020767c2d
Merge pull request #9071 from cladmi/pr/make/riottools/arduino
...
sys/arduino: use RIOTTOOLS variable
2018-05-04 23:10:07 +02:00
Martine Lenders
3d821ee195
gnrc_rpl: remove route before updating it
...
The "new" forwarding table does not update an old route but just adds
another as long as it is not *exactly* the same. However, the RPL
adaptation missed to remove the old route so RPL got easily confused
about where it actually needed to send packets.
2018-05-04 17:46:02 +02:00
Gaëtan Harter
14ac80e15a
sys/arduino: use RIOTTOOLS variable
...
Follow up to #9067 and part of #8821
2018-05-04 11:16:48 +02:00
f9c75d0df7
Merge pull request #8915 from ZetaR60/RIOT_ads101x
...
drivers/ads101x: support for ADCs
2018-05-03 08:31:03 +02:00
b81b12de4e
cbor: Move header to cbor subdirectory
...
Prevents conflicts when multiple modules/packages provide a `cbor.h`
header.
2018-05-01 11:12:39 +02:00
Joakim Nohlgård
9c85ce1916
Merge pull request #8733 from gebart/pr/matstat
...
matstat: Integer mathematical statistics library
2018-04-28 09:37:02 +02:00
Joakim Nohlgård
6927260973
sys/matstat: Integer mathematical statistics library
2018-04-28 08:03:35 +02:00
0a18bc9e97
Merge pull request #9027 from bergzand/pr/nanocoap/req_ent_incomp
...
nanocoap: add request entity incomplete response code
2018-04-26 11:05:29 +02:00
51f06d5127
nanocoap: Add request entity incomplete code
2018-04-26 10:50:08 +02:00
4def1fa5fd
Merge pull request #8992 from Josar/evtimer_3
...
evtimer: optimized adding
2018-04-26 10:00:35 +02:00
Josarn
111f021eb3
evtimer: optimized adding
2018-04-25 17:58:54 +02:00
Martine Lenders
dc41f49229
cbor: add deprecation note
2018-04-25 16:46:17 +02:00
5251e140e6
Merge pull request #8991 from Hyungsin/forupstream_pulse_counter_fix
...
sys/auto_init: fix syntax error on auto_init_pulse_counter.c
2018-04-23 15:52:12 +02:00
Sebastian Meiling
4f97fc76fd
Merge pull request #8894 from beduino-project/fix-gnrc_ipv6_blacklist-build
...
gnrc: fix build of gnrc_ipv6_blacklist when ENABLE_DEBUG is disabled
2018-04-23 14:26:53 +02:00
e1f6a5afd3
net/gcoap: increase stack size by sizeof(coap_pkt_t)
2018-04-22 23:15:16 +02:00
734944a56b
Merge pull request #8986 from haukepetersen/opt_event_allowmultipleposts
...
sys/event: allow calling event_post multiple times
2018-04-20 10:59:14 +02:00
Hyungsin
770b74636b
sys/auto_init: fix syntax error on auto_init_pulse_counter.c
2018-04-19 19:17:02 -07:00
Hauke Petersen
46888a1eaf
sys/event: allow calling event_post multiple times
2018-04-19 16:41:13 +02:00
Hauke Petersen
cf7fb4b886
net/rdcli: fix doxygen groups for RD client code
2018-04-19 16:27:59 +02:00
Martine Lenders
07eb208bc6
Merge pull request #8963 from Josar/pr/eventTimer_2
...
evtimer: ticks vs ms
2018-04-17 10:53:27 +02:00
f18f25c5c2
Merge pull request #8577 from gebart/pr/analog_util-refactor
...
sys/analog_util: Refactor, add test
2018-04-17 10:40:53 +02:00
8475844213
sys/net/uhcpc: add missing stdio.h include
2018-04-16 23:06:15 +02:00
f62818ea7b
sys/auto_init/io1_xplained: fix gpios index
2018-04-16 15:57:36 +02:00
Josarn
515027b9a5
evtimer: ticks vs ms
2018-04-16 15:13:12 +02:00
Joakim Nohlgård
57f6081960
sys/analog_util: Refactor adc_map, fix compilation
...
Change the API to use int32_t instead of int, to allow for greater
flexibility on 8- and 16-bit platforms. Removed limitation on input
arguments that min < max. Times where it can be useful to have min > max
is when measuring a sensor where a higher measured voltage means a lower
physical value. For example a thermistor can be connected so that the
measured voltage goes down when the temperature goes up.
2018-04-16 13:53:49 +02:00
Joakim Nohlgård
11b668fd6d
sys/analog_util: Add missing include stdint.h
2018-04-16 13:05:20 +02:00
635e72db23
Merge pull request #8788 from kaspar030/nanocoap_add_serverside_block1
...
nanocoap: add serverside block1 support
2018-04-16 12:49:06 +02:00
4897222e7e
nanocoap: add server-side block1 support
2018-04-16 12:31:56 +02:00
Matthew Blue
f5658cd89a
drivers/ads101x: auto_init support
2018-04-13 11:38:50 -04:00
Martine Lenders
dbccf06c5e
Merge pull request #8575 from miri64/shell/fix/6ctx
...
shell: adapt 6ctx command for NIB
2018-04-13 17:12:41 +02:00
6b01f4d388
Merge pull request #7263 from haukepetersen/opt_fmt_s16dfp_pos
...
sys/fmt: extended fmt_s16_dfp to handle scales
2018-04-13 09:54:08 +02:00
Martine Lenders
316becef79
Merge pull request #8858 from Josar/eventTimer
...
sys/evtimer: ticks vs us
2018-04-13 08:31:23 +02:00
Gaëtan Harter
ed4932362d
Revert "posix/osx: fix type conflict on OSX native"
...
This reverts commit dcebfb11bc
.
2018-04-12 17:48:27 +02:00
Gaëtan Harter
ea52528171
Revert "posix/osx: fix missing AF_LINK on OSX native"
...
This reverts commit b5554bcc1f
.
2018-04-12 17:48:21 +02:00
6ee4aceef1
Merge pull request #8936 from haukepetersen/opt_rdclisimple_addrconf
...
net/rdcli_simple: specify RD address as string
2018-04-12 15:33:33 +02:00
Martine Lenders
3be4b51209
Merge pull request #8867 from miri64/gnrc_ipv6/fix/possible-null-ptr-deref
...
gnrc_ipv6: fix possible NULL pointer dereference
2018-04-12 14:26:22 +02:00
Martine Lenders
7974b12c11
Merge pull request #8797 from zhuoshuguo/gomach_add_dutycycle_display_command
...
gnrc_gomach: add duty-cycle display shell command.
2018-04-12 14:25:02 +02:00
Hauke Petersen
2e6ccfa13f
net/rdcli_simple_standalone: fix error handling
2018-04-12 14:00:32 +02:00
Hauke Petersen
bd25cf5902
net/rdcli_simple: parse RD address from string
...
this makes the configuration of the RD server much simpler, as it
does not require the user to 'binary-code' the RD server's address
anymore.
2018-04-12 14:00:32 +02:00
Hauke Petersen
faab006631
net/rdcli_simple: improved doc and error handling
2018-04-12 13:48:09 +02:00
d64d38b391
Merge pull request #8909 from miri64/doc/enh/ipv6-rfc
...
doc: update IPv6 RFC references
2018-04-12 12:11:23 +02:00
shuguo
4e7ff0df28
gnrc_gomach: enabling duty-cycle printing
2018-04-12 11:46:40 +02:00
shuguo
ed4a80db00
gnrc_mac: add MAC duty-cycle record macro
2018-04-12 11:44:30 +02:00
d2db1ba2c3
Merge pull request #8568 from miri64/gnrc_ipv6_nib/fix/abro-ignore-only-on-6lr
...
gnrc_ipv6_nib: only discard RAs without ABROs on 6LR
2018-04-11 22:32:33 +02:00
Josarn
6f75dff1de
evtimer: bug ms vs ticks resolved
2018-04-11 17:11:26 +02:00
Hauke Petersen
637fbff456
net/nanocoap: fix indention of doxy comments
2018-04-11 14:06:42 +02:00
012c016b74
Merge pull request #8772 from kaspar030/rework_nanocoap_option_handling
...
net/nanocoap: rework option handling
2018-04-10 21:11:18 +02:00
dee793d29f
nanocoap: rework option handling
2018-04-10 20:58:06 +02:00
Martine Lenders
23bdc80e22
doc: update IPv6 RFC references
...
RFC 2460 was obsoleted by RFC 8200. This PR changes the references
around, so we don't reference an obsoleted RFC ;-).
Also I'm moving these references from the old-style HTML-like format
to the newer-style Markdown-like format.
2018-04-10 15:40:18 +02:00
Gaëtan Harter
747b11d90e
Merge pull request #7651 from tobhe/memarray
...
Generic memory block allocator
2018-04-10 15:22:40 +02:00
tobhe
509f40a81c
memarray: add fixed-size memory block allocator
2018-04-10 14:37:29 +02:00
Martine Lenders
629a19dc87
Merge pull request #8871 from miri64/gnrc_netif/fix/unspec-addr
...
gnrc_netif: check if input for address search is ::
2018-04-10 14:35:07 +02:00
Hauke Petersen
adf807d79c
net/rdcli_common: improve doc for SUFFIX_LEN option
2018-04-10 11:36:28 +02:00
Hauke Petersen
7dd897c6d7
net/rdcli_common: fix EP name generation
2018-04-10 10:55:03 +02:00
Martine Lenders
3fea1eaa30
Merge pull request #8888 from miri64/doc/fix/sys_util
...
doc: remove sys_util references
2018-04-09 16:52:23 +02:00
fb2beb43c8
Merge pull request #8875 from Josar/pr/xtimer64
...
sys/include/xtimer: Added xtimer_set64()
2018-04-09 16:19:44 +02:00
b117638fd0
Merge pull request #8886 from gebart/pr/xtimer-shift-6
...
xtimer: Add XTIMER_SHIFT = 6 automatic option
2018-04-09 16:12:26 +02:00
4b210bb1e6
Merge pull request #7406 from haukepetersen/add_rdcli_simple
...
net: added CoAP RD client for simple node registration
2018-04-09 13:25:50 +02:00
PeterKietzmann
86c319aea7
pkg/ccn-lite:enable CS dump and rename shell command
2018-04-09 10:38:32 +02:00
Hauke Petersen
108284670c
net: added RD client for simplified registration
2018-04-09 10:37:10 +02:00
Hauke Petersen
f12d85d032
net/rdcli: added common rdcli module
2018-04-09 10:37:10 +02:00
Martine Lenders
3c93ebc86e
Merge pull request #7699 from nmeum/gcoap-method-not-allowed
...
gcoap: return Method Not Allowed if appropriate
2018-04-06 15:35:05 +02:00
Sören Tempel
93f65043ce
gnrc: fix build of gnrc_ipv6_blacklist when ENABLE_DEBUG is disabled
...
Without this commit it doesn't build because addr_str isn't defined when
ENABLE_DEBUG is not set.
This issue was introduced in: c001e14f9d
2018-04-06 14:48:32 +02:00
Hauke Petersen
a7c3aad8ea
sys/phydat: adapt to fmt_s16_dfp changes
2018-04-06 12:10:18 +02:00
Hauke Petersen
78df885fc7
sys/fmt: use also positive scaling for s32_dfp
2018-04-06 11:58:43 +02:00
Martine Lenders
787fa37465
netopt: move NETOPT_BLE_CTX to new netopt doc style
...
Documentation of the option types was clarified in #8655 . I only noticed
after merging #8884 , that `NETOPT_BLE_CTX` was not documented using
that new style. So I deliver the change myself to make it quicker.
2018-04-06 11:32:41 +02:00
Hauke Petersen
6efb06f108
sys/auto_init: added initialization for Skald
2018-04-06 11:18:53 +02:00
Hauke Petersen
49bd85d00a
sys/net: added Skald
...
Skald is a very small and simple, TX-only BLE stack that supports
sending advertisements only. It is useful for building all kinds
of BLE beacons with very minimal memory footprints.
2018-04-06 11:18:53 +02:00
Hauke Petersen
77499905e4
sys/net: added generic Eddystone defines
2018-04-06 11:18:53 +02:00
Hauke Petersen
3b6c8f25de
sys/net: added generic BLE defines
2018-04-06 11:18:53 +02:00
Hauke Petersen
4e715e8221
drivers/netdev: added BLE adaption for netdev
2018-04-06 11:18:53 +02:00
Martine Lenders
9efbfcd3ae
doc: remove sys_util references
...
This removes all references of the `sys_util` documentation group which
does not exist. Due to it being referenced by some module
documentations there were some cases where the rendered doc was broken:
* `div` did not appear in the list of modules
* `iolist` appeared on top level of the module tree
2018-04-05 14:39:59 +02:00
Joakim Nohlgård
0befe39333
xtimer: Add XTIMER_SHIFT = 6 automatic option
2018-04-05 12:21:42 +02:00
PeterKietzmann
8172e5782d
sys/random: remove printf in xorshift
2018-04-05 12:06:12 +02:00
Josarn
bb7acca31e
sys/include/xtimer: Added xtimer_set64()
2018-04-04 16:58:59 +02:00
16ff8a51bd
Merge pull request #8795 from gebart/pr/newlib-rm-lnosys
...
newlib: link without -lnosys
2018-04-04 10:51:09 +02:00
Robin Nehls
ad5617fb83
gnrc_ipv6: discard non-NONXT packets with 0 payload length
...
If the payload length is zero and the next header field is not set to
NONXT, GNRC will interpret the current header as the payload because the
first snip is always interpreted as the payload. This can lead to loops
and or crashes.
2018-04-03 18:34:48 +02:00
Martine Lenders
53c30eef4b
gnrc_netif: check if input for address search is ::
2018-04-03 17:38:26 +02:00
Robin Nehls
326be16b90
gnrc_ipv6: fix possible NULL pointer dereference
...
When the payload length of an encapsulated IPv6 packet is 0, the
`_receive` function of IPv6 can be given a NULL pointer, causing the
IPv6 header checker to crash because of a NULL pointer dereference.
2018-04-03 14:46:12 +02:00
Ken Bannister
c23d85ab3a
Merge pull request #8854 from kb2ma/gcoap/internalize_gcoap_state
...
net/gcoap: Internalize definition of state struct
2018-03-31 12:15:00 +01:00
Ken Bannister
3da9145018
net/gcoap: Internalize definition of state struct
2018-03-31 06:46:05 -04:00
Ken Bannister
118b14a199
Merge pull request #8843 from llueder/gcoap_doc
...
net/gcoap: improve documentation
2018-03-30 10:25:57 +01:00
Lasse Lueder
a456c19898
net/gcoap: improve documentation
...
add hint to alphabetical ordering of resources
2018-03-29 20:50:12 +02:00
Joakim Nohlgård
cf8b370517
netopt: Clarify documentation
2018-03-29 19:49:06 +02:00
Sebastian Meiling
38b8be0d09
Merge pull request #8836 from miri64/gnrc_netreg/fix/netapi-pid-init-with-callbacks
...
gnrc_netreg: fix static PID initialize for gnrc_netapi_callbacks
2018-03-27 19:37:48 +02:00
Gaëtan Harter
21a9958323
Merge pull request #8822 from aabadie/pr/make_curly
...
make: replace curly braces with parenthesis
2018-03-27 15:44:36 +02:00
Martine Lenders
31711a8560
gnrc_netreg: fix static PID initialize for gnrc_netapi_callbacks
2018-03-26 15:00:57 +02:00
Joakim Nohlgård
2125a438b4
sys/phydat: Align numbers, remove index if dim == 1
2018-03-23 14:51:08 +01:00
61f1b941ce
make: replace curly braces with parenthesis
2018-03-22 20:43:15 +01:00
Martine Lenders
690c36b3cf
Merge pull request #8652 from cladmi/pr/remove_nativeincludes
...
native: remove non required NATIVEINCLUDES
2018-03-22 15:57:38 +00:00
Joakim Nohlgård
3e2214d29c
sys/phydat: Fix Doxygen group for phydat_str.c
2018-03-22 15:21:01 +01:00
Joakim Nohlgård
63f49f22d8
sys/phydat: Add phydat_fit
...
Fits larger values into the 16 bit integers used by phydat and update
scale accordingly.
2018-03-22 15:21:01 +01:00
Gaëtan Harter
b5554bcc1f
posix/osx: fix missing AF_LINK on OSX native
...
netdev_tap.c uses AF_LINK when compiled on OSX native.
Preparation to remove NATIVEINCLUDES.
2018-03-20 17:50:57 +01:00
Gaëtan Harter
dcebfb11bc
posix/osx: fix type conflict on OSX native
...
In another header file, `socklen_t` is defined to `__darwin_socklen_t` which is
an `uint32_t` and it conflicts.
Preparation to remove NATIVEINCLUDES.
2018-03-20 17:50:47 +01:00
Hauke Petersen
a63f92a7a6
net/gcoap: allow to not define a response handler
2018-03-19 11:56:58 +01:00
Martine Lenders
ce807173ff
Merge pull request #8601 from bergzand/pr/netopt-link-status
...
netopt/drivers: Add phy link status output
2018-03-18 15:25:01 +00:00
9d61314c09
shell/netif: Add link status to interface status output
2018-03-18 15:32:40 +01:00
831e7635de
netopt: Add link status option
2018-03-18 15:32:36 +01:00
Joakim Nohlgård
01970e9644
sys/newlib_syscalls_default: Add _gettimeofday_r stub
2018-03-18 10:04:51 +01:00
Francisco Acosta
f80c1b0e9a
sys/random/tinymt32: remove unused static function
2018-03-16 16:24:05 +01:00
Martine Lenders
79d0521f0f
Merge pull request #8582 from gebart/pr/phydat-str-space
...
sys/phydat: Add space between value and unit
2018-03-15 16:21:24 +01:00
Martine Lenders
ada292ae18
Merge pull request #8759 from aabadie/pr/drivers/params/si70xx
...
sys/auto_init: cleanup si70xx auto_init
2018-03-15 14:38:48 +01:00
Martine Lenders
f5334e49d7
Merge pull request #7674 from gebart/pr/at86rf212b-default-page-2
...
at86rf2xx: Set page 2 by default on AT86RF212B
2018-03-15 13:24:21 +01:00
Joakim Nohlgård
8873a7102e
Merge pull request #8615 from gebart/pr/fatfs-paths
...
pkg/fatfs: Refactor path handling, minor fixes
2018-03-15 09:21:48 +01:00
caabc15395
sys/random: provide generic random_bytes()
2018-03-14 18:17:27 +01:00
Joakim Nohlgård
0bc2c1b2a9
fs/fatfs: Editorial changes in Doxygen comments
2018-03-14 11:57:34 +01:00
Joakim Nohlgård
4ce675e181
fs/fatfs: Adjust FATFS_MAX_VOL_STR_LEN to avoid overflows
...
Prevents compile time warnings about truncation of the format string for
fs_idx > 9
2018-03-14 11:56:52 +01:00
Joakim Nohlgård
0251f54e66
pkg/fatfs: Remove unused FATFS_DIR_SIZE, FATFS_FILE_SIZE
2018-03-14 11:56:51 +01:00
2fce7c7dcb
sys/auto_init: fix crash with io1_xplained driver
2018-03-09 07:08:44 +01:00
902d8946a4
sys/auto_init: cleanup si70xx auto_init
2018-03-08 17:09:40 +01:00
44b6b1251c
sys/auto_init: update io1_xplained auto_init
2018-03-08 16:55:16 +01:00
5c7cc50698
sys/auto_init/saul: add saul adaptation
2018-03-08 14:07:28 +01:00
d0b34af788
sys/auto_init: update dht auto_init
2018-03-08 12:53:00 +01:00
Martine Lenders
90356143fc
Merge pull request #8669 from aabadie/pr/drivers/params/adcxx1c
...
drivers/adcxx1c: apply unified params definition scheme
2018-03-07 15:24:59 +01:00
Martine Lenders
a9e30e1844
Merge pull request #8689 from aabadie/pr/drivers/params/lsm6dsl
...
drivers/lsm6dsl: apply unified params definition scheme
2018-03-07 15:24:43 +01:00
Martine Lenders
cafc33ce92
Merge pull request #8695 from aabadie/pr/drivers/params/mpu9150
...
sys/auto_init: cleanup in mpu9150 auto_init
2018-03-07 15:04:37 +01:00
Martine Lenders
c7acf82d62
Merge pull request #8685 from aabadie/pr/drivers/params/mpl3115a2
...
drivers/mpl3115a2: apply unified params definition scheme
2018-03-07 14:58:22 +01:00
Martine Lenders
d7e7c68485
Merge pull request #8684 from aabadie/pr/drivers/params/mma8x5x
...
drivers/mm8x5x: apply unified params definition scheme
2018-03-07 14:53:44 +01:00
Martine Lenders
9ee91a6dd9
Merge pull request #8682 from aabadie/pr/drivers/params/tmp006
...
drivers/tmp006: apply unified params definition scheme
2018-03-07 14:47:06 +01:00
Martine Lenders
674777ffc0
Merge pull request #8679 from aabadie/pr/drivers/params/jc42
...
drivers/jc42: apply unified params definition scheme
2018-03-07 14:36:36 +01:00
Martine Lenders
e45c06b381
Merge pull request #8678 from aabadie/pr/drivers/params/hdc1000
...
drivers/hdc1000: apply unified params definition scheme
2018-03-07 14:31:30 +01:00
Martine Lenders
e2089fce7f
Merge pull request #8676 from aabadie/pr/drivers/params/veml6070
...
drivers/veml6070: apply unified params definition scheme
2018-03-07 14:18:51 +01:00
Martine Lenders
f7d3532b5c
Merge pull request #8674 from aabadie/pr/drivers/params/grove_ledbar
...
drivers/grove_ledbar: apply unified params definition scheme
2018-03-07 14:07:54 +01:00
Martine Lenders
6907954134
Merge pull request #8672 from aabadie/pr/drivers/params/bmp180
...
drivers/bmp180: apply unified params definition scheme
2018-03-07 13:59:43 +01:00
Martine Lenders
ade38468a1
Merge pull request #8671 from aabadie/pr/drivers/params/adxl345
...
drivers/adxl345: apply unified params definition scheme
2018-03-07 13:48:14 +01:00
d025de32ed
Merge pull request #8351 from kaspar030/introduce_iolists
...
net: Introduce iolists
2018-03-07 09:56:13 +01:00
Martine Lenders
0b928b797a
Merge pull request #7881 from mtausig/feature/sha3
...
Add support for SHA-3 hash function
2018-03-06 17:34:05 +01:00
Mathias Tausig
44723c9745
hashes: SHA256 documentation updated
...
Fixed typo
2018-03-06 16:18:31 +01:00
Mathias Tausig
ce099c6517
hashes:sha3: Remove unused functions from Keccak code
...
Remove unused SHAKE functions
Removed unused SHA3-224
2018-03-06 16:18:26 +01:00
Mathias Tausig
91a473a8d9
hashes:sha3: Alterations to Keccak code
...
Changed integer typedefs to portable stdint types
Added Endianness define
2018-03-06 16:18:23 +01:00
Mathias Tausig
792137f88d
hashes:sha3: Integrate SHA-3 into RIOT API
...
Add init/update/final interface
Add interface functions for direct SHA3
Add unit tests for SHA-3
Document functions and types
Reduced var scope in Keccak code
Add CCO Copyright notice to Keccak code
2018-03-06 16:18:18 +01:00
Mathias Tausig
a44a313e8f
hashes:sha3: Import Keccak code from Keccak Code Package
2018-03-06 16:17:46 +01:00
1faa845d8e
sys/net: iolist updates
2018-03-06 14:00:32 +01:00
2f179f26bb
sys/net/gnrc/netif: adapt to netdev with iolist
2018-03-06 14:00:31 +01:00
c935a07513
sys/net/gnrc/pkt: match pktsnip struct start with iolist_t
2018-03-06 14:00:31 +01:00
dbbdf3f664
sys: introduce iolist
2018-03-06 14:00:31 +01:00
b343ff8ac9
Merge pull request #8470 from miri64/gnrc_sock/enh/set-remote-netif-implicitly
...
gnrc_sock: set remote network interface implicitly
2018-03-06 12:27:00 +01:00
Martine Lenders
15d405f597
gnrc_sock: add more cppcheck suppressions
2018-03-06 12:20:56 +01:00
Martine Lenders
0b8a467e98
Merge pull request #8728 from cgundogan/pr/ccnl_fix
...
pkg: ccn-lite: minor changes to integrate latest ccn-lite features
2018-03-05 21:52:17 +01:00
Cenk Gündoğan
92b761df2f
pkg: ccn-lite: minor changes to integrate latest ccn-lite features
2018-03-05 21:25:26 +01:00
Martine Lenders
98e45c3d55
gnrc_sock: set remote network interface implicitly
...
When there is only one interface we are simplifying a lot for the users
if the interface is set implicitly.
2018-03-05 17:01:36 +01:00
Vincent Dupont
dcc4a5ae9f
Merge pull request #8273 from OTAkeys/pr/spiffs-multi-partitions
...
pkg/spiffs: add multi-partitions support
2018-03-02 14:15:47 +01:00
Samantha Wojtowicz
ced65bbf5b
pkg/spiffs: add multi-partitions support
...
Two new fileds added in spiffs descriptor:
- base_addr: base address of the partition
- part_block_count: number of sectors in the partition
If part_block_count is 0, the whole underlying MTD is used
2018-03-02 13:45:17 +01:00
Cenk Gündoğan
18005666ac
Merge pull request #8512 from miri64/gnrc_sixlowpan/enh/gnrc-dispatch
...
gnrc_sixlowpan: Introduce 6Lo GNRC dispatch sub-layer
2018-03-01 15:03:03 +01:00
1474a7fc60
sys/auto_init: update lis3dh with new API
2018-03-01 14:26:17 +01:00
Martine Lenders
67d7aeab7e
gnrc_sixlowpan: Introduce 6Lo GNRC dispatch sub-layer
...
This abstracts the sending and receiving of 6Lo packets to the new
6Lo sub-layer model introduced in #8511 and exemplifies it as well.
2018-03-01 14:15:07 +01:00
2090189bac
sys/auto_init: update mma8x5x auto_init
2018-03-01 13:57:24 +01:00
5c4e402de8
sys/auto_init: update tmp006 auto_init
2018-03-01 13:55:16 +01:00
9f120f2ad6
sys/auto_init: update grove_ledbar auto_init
2018-03-01 13:42:06 +01:00
5e07118aed
sys/auto_init: update adxl345 auto_init
2018-03-01 13:40:01 +01:00
8654da5be7
sys/auto_init: update adcxx1c auto_init
2018-03-01 13:34:06 +01:00
Cenk Gündoğan
3bbc1d7e22
Merge pull request #8625 from miri64/gnrc_rpl/enh/leaf-non-routers
...
gnrc_rpl: allow for non-router operation (as leaf)
2018-03-01 10:28:49 +01:00
d071ed5c85
sys/auto_init: cleanup in mpu9150 auto_init
2018-02-28 17:48:11 +01:00
1ad8717a94
sys/auto_init: update lsm6dsl auto_init
2018-02-28 17:46:33 +01:00
bc4798ae45
sys/auto_init: update mpl3115a2 auto_init
2018-02-28 17:14:04 +01:00
c2946c4326
sys/auto_init: update veml6070 auto_init
2018-02-28 16:53:48 +01:00
b70b531834
sys/auto_init: update jc42 auto_init
2018-02-28 16:47:38 +01:00
652d5631d6
sys/auto_init: update hdc1000 auto_init
2018-02-28 16:46:21 +01:00
892242f4d7
sys/auto_init: update bmp180 auto_init
2018-02-28 16:19:54 +01:00
Martine Lenders
19e7058ce3
Merge pull request #8657 from OTAkeys/pr/fix_isrpipe_doc_ms
...
isrpipe: fix timeout unit in api documentation
2018-02-28 11:50:48 +01:00
Martine Lenders
2cab4292d5
Merge pull request #8587 from gebart/pr/phydat-min-max
...
sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX
2018-02-28 11:33:39 +01:00
Vincent Dupont
cbe3269078
isrpipe: fix timeout unit in doc
2018-02-28 10:02:03 +01:00
Joakim Nohlgård
fa8690e584
sys/phydat: Add space between value and unit
2018-02-28 08:34:34 +01:00
Joakim Nohlgård
7f89435dc7
sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX
2018-02-28 08:33:01 +01:00
Sam Kumar
f20c11d08c
sys/rtt_stdio: reserve file descriptors for stdin, stdout, and stderr
...
This makes sure that stdio works as expected when sys/rtt_stdio and sys/vfs
are used at the same time.
2018-02-27 18:16:24 -08:00
Martine Lenders
8c632b1bf7
Merge pull request #8536 from daniel-k/fix/gnrc_src_addr_selection
...
gnrc/netif: fix source address selection for non-matching prefixes
2018-02-27 19:02:54 +01:00
Pieter Willemsen
599dbd3bcd
crypto/cbc: add return values to documentation
2018-02-27 09:56:54 +01:00
6698bfd35a
Merge pull request #8595 from bergzand/pr/saul-ppm
...
SAUL/phydat: parts per million support
2018-02-27 08:12:18 +01:00
Joakim Nohlgård
74fb26ad58
Merge pull request #8586 from gebart/pr/phydat-prefix
...
sys/phydat: rename phydat_scale_to_str -> phydat_prefix_from_scale
2018-02-27 06:59:55 +01:00
Joakim Nohlgård
56f44729d7
sys/phydat: rename phydat_scale_to_str -> phydat_prefix_from_scale
...
Correct some outdated documentation and make the name represent what the
function does today.
2018-02-26 15:41:36 +01:00
Martine Lenders
9c84cd90b8
gnrc_rpl: allow for non-router operation (as leaf)
2018-02-23 14:26:15 +01:00
Martine Lenders
f5b65abb30
Merge pull request #8622 from miri64/gnrc_netreg/fix/revert-8517-partly
...
gnrc_netreg: Revert #8517 partly
2018-02-23 12:29:26 +01:00
df16e7d5af
phydat: Add parts per million unit
2018-02-23 11:39:09 +01:00
de75eb8111
Merge pull request #8620 from smlng/fix/sys/can
...
sys/can: fix compiler warning due to usage of potentially uninitialized variables
2018-02-22 22:04:47 +01:00
Martine Lenders
2316d336da
gnrc: keep speed optimizations of c2b403f4
2018-02-22 20:40:59 +01:00