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

3671 Commits

Author SHA1 Message Date
Martine Lenders
f42738ed22 gnrc_netdev2: do not override res for for ieee802154
`res` is used to set the frame header iovec's length afterwards so overriding
it with a negative number is kind of a bad idea ;-).
2016-03-17 00:20:39 +01:00
Cenk Gündoğan
39255ee8f8 gnrc_rpl: make DODAG_CONF optional when joining DODAG 2016-03-16 14:31:49 +01:00
Joakim Nohlgård
3f5bf480fb Merge pull request #4304 from authmillenon/shell/fix/address-ltime
shell: sc_netif: set valid lifetime for manual addresses to infinity
2016-03-16 14:26:57 +01:00
Cenk Gündoğan
46e983afc7 Merge pull request #5081 from cgundogan/pr/gnrc_rpl/rename_req_opts_to_dio_opts
gnrc_rpl: shell: rename req_opts to dio_opts
2016-03-16 14:20:46 +01:00
Cenk Gündoğan
3e51233341 sc_gnrc_rpl.c: rename req_opts to dio_opts 2016-03-16 14:16:15 +01:00
Cenk Gündoğan
b15c1a2bd1 gnrc_rpl: rename req_opts to dio_opts 2016-03-16 14:16:15 +01:00
Martine Lenders
480354f4ce shell: sc_netif: set valid lifetime for manual addresses to infinity 2016-03-16 13:59:59 +01:00
Cenk Gündoğan
6f6ec3c8a5 gnrc_ipv6_nc: refactor nc_remove function 2016-03-16 13:51:21 +01:00
Martine Lenders
0a3b56e0b4 Merge pull request #5006 from immesys/fix-rtr-adv
ndp: change rtr adv src to link local
2016-03-16 12:42:12 +01:00
Martine Lenders
312047fa84 Merge pull request #5029 from gebart/pr/6lo-decoded-hdr-snip-ordering
gnrc_sixlowpan: Preserve order when replacing 6lowpan header by decoded IPv6 header
2016-03-16 11:53:53 +01:00
Martine Lenders
2305b9dca7 Merge pull request #5084 from brummer-simon/devel-color
RGB color inversion and complementary color calculation added
2016-03-16 11:47:34 +01:00
Simon Brummer
1af9612b34 sys/color: added RGB inversion and complementary color 2016-03-16 11:43:26 +01:00
Joakim Nohlgård
ad40c208c1 Merge pull request #5070 from cgundogan/pr/gnrc_ipv6_nc/remove_timers
gnrc_ipv6_nc: remove nc_entry timers
2016-03-16 11:28:52 +01:00
Joakim Nohlgård
373a4d9e2c Merge pull request #5073 from cgundogan/pr/gnrc_rpl/trickle_parameters_compile_time
gnrc_rpl: make trickle parameters configurable
2016-03-16 11:25:46 +01:00
Martine Lenders
cb4df81bd3 Merge pull request #5087 from gebart/pr/br-preferred-lifetime
gnrc_ipv6: Set preferred lifetime infinite on addresses in border router scenario.
2016-03-16 11:16:35 +01:00
Joakim Nohlgård
f2883792e0 gnrc_ipv6: Set preferred lifetime infinite on addresses in border router scenario. 2016-03-16 10:59:19 +01:00
Martine Lenders
1caf0bcc8a Merge pull request #4645 from authmillenon/netdev2/enh/ieee802154
netdev2: add basic IEEE 802.15.4 support
2016-03-15 18:28:29 +01:00
Martine Lenders
b0b76ba3a6 gnrc: initial import of GNRC<->netdev2 glue code for 802.15.4 2016-03-15 17:11:22 +01:00
Hauke Petersen
236bd201ca sys/arduino: adapted to changed UART cb type 2016-03-15 14:24:48 +01:00
Cenk Gündoğan
370105760c gnrc_rpl: make trickle parameters configurable 2016-03-15 14:23:08 +01:00
Hauke Petersen
e855d63d84 net/slip: adapted to uart cb type change 2016-03-15 11:59:20 +01:00
Hauke Petersen
4b67fccf2b sys/uart_stdio: adapted to cb type change 2016-03-15 11:02:06 +01:00
Cenk Gündoğan
f91e4bde9d gnrc_ipv6_nc: remove nc_entry timers 2016-03-14 23:45:17 +01:00
Hauke Petersen
a1e3bb1bfc sys: s/adc_util/analog_util/ and added DAC mapping 2016-03-14 20:39:31 +01:00
Martine Lenders
d66625b6ca Merge pull request #4430 from haukepetersen/opt_periph_adc
drivers/periph: reworked the ADC driver
2016-03-14 14:45:23 +01:00
Martine Lenders
1659b9cc07 Merge pull request #5050 from gebart/pr/ipv6-rm-netif
gnrc_ipv6: Strip netif header and nothing else
2016-03-14 13:14:43 +01:00
Joakim Nohlgård
d95e7a3572 xtimer: Handle overflows in xtimer_spin() 2016-03-14 11:19:58 +01:00
Hauke Petersen
5b57bc80b0 sys: added module for simple ADC value converion 2016-03-14 10:38:42 +01:00
Joakim Nohlgård
c3b7f640a0 sys/xtimer: Remove unused XTIMER_USLEEP_UNTIL_OVERHEAD 2016-03-14 08:26:44 +01:00
Ludwig Knüpfer
3955f59f17 Merge pull request #5053 from gebart/pr/newlib-includes-fix
sys/newlib: Improve robustness in include path search
2016-03-13 18:28:46 +01:00
Joakim Nohlgård
37ad45d3e9 sys/newlib: Place newlib includes first of the system includes 2016-03-13 07:57:48 +01:00
Joakim Nohlgård
44fee9fc12 sys/newlib: Add include path fallback for non-standard cross toolchain installation locations 2016-03-13 07:57:47 +01:00
Joakim Nohlgård
d770d6ab31 gnrc_sixlowpan: Preserve order when replacing 6lowpan header by decoded IPv6 header 2016-03-12 11:36:24 +01:00
Joakim Nohlgård
61e2626779 gnrc_ipv6: Strip netif header and nothing else 2016-03-12 11:13:53 +01:00
Martine Lenders
178c3169d7 gnrc_sixlowpan_frag: use IPv6 type for reassembled packet 2016-03-12 10:45:03 +01:00
Oleg Hahm
8baf8f839d Merge pull request #5047 from Lotterleben/fib_FIB_MSG_RP_SIGNAL_UNREACHABLE_DESTINATION_doc
fib: extend FIB_MSG_RP_SIGNAL documentation
2016-03-12 01:52:58 +01:00
Martine Lenders
b3b880be6a Merge pull request #4903 from kaspar030/xtimer_fixes
sys: xtimer: fix some race conditions
2016-03-12 00:18:56 +01:00
Lotte Steenbrink
52cfa865a9 fib: extend FIB_MSG_RP_SIGNAL documentation 2016-03-11 14:10:01 -08:00
Martine Lenders
ae8e0ce787 Merge pull request #5039 from kYc0o/nhdp_without_vtimer
sys/net/routing/nhdp: get rid of vtimer
2016-03-11 22:50:36 +01:00
Ludwig Knüpfer
e58786385e Merge pull request #5022 from cgundogan/pr/rpl/do_not_use_PRIu8
gnrc_rpl: do not use PRIu8/PRIi8
2016-03-11 19:08:02 +01:00
kYc0o
6e8d574534 sys/net/routing/nhdp: get rid of vtimer
sys/net/routing/nhdp/nhdp.c: fix identation

sys/net/routing/nhdp/nhdp.h: fix typo
2016-03-11 17:47:03 +01:00
Cenk Gündoğan
ba7d6230c0 Merge pull request #4935 from authmillenon/gnrc_sixlowpan_iphc_nhc/fix/frag
gnrc_sixlowpan_iphc_nhc: fix NHC UDP decoding for fragmented packets
2016-03-11 16:41:27 +01:00
Cenk Gündoğan
f5df674a4f gnrc_pktdump: make pid global 2016-03-11 14:22:20 +01:00
Joakim Nohlgård
dc303a4f0b sys/uart_stdio: rename STDIO -> UART_STDIO_DEV, move to header 2016-03-11 12:04:00 +01:00
Cenk Gündoğan
a9bacc724f shell_commands.c: more generic rpl info text 2016-03-11 08:46:03 +01:00
Cenk Gündoğan
57210f6e17 gnrc_rpl: use global ipv6_addr_unspecified 2016-03-11 01:01:52 +01:00
Cenk Gündoğan
1226941be6 gnrc_rpl: do not use PRIu8/PRIi8 2016-03-10 22:51:12 +01:00
René Kijewski
818d703810 Merge pull request #5004 from OlegHahm/core_kernel_macros_attributs_merge
core: merge kernel_macros.h and attributes.h into kernel_defines.h
2016-03-10 16:47:10 +01:00
Oleg Hahm
bdcf8879fd core: merged kernel_macros.h and attributes.h
Merged into new kernel_defines.h and updated all includes.
2016-03-09 22:29:06 +01:00
Martine Lenders
71b6221b57 Merge pull request #4991 from OlegHahm/gnrc_netdev_cleanup
gnrc_netdev: cleanup
2016-03-09 19:30:41 +01:00
Cenk Gündoğan
60f917b3d1 sc_fib.c: add shell command to flush the fib 2016-03-09 17:31:48 +01:00
Cenk Gündoğan
2991addea8 fib: add flush function 2016-03-09 17:30:56 +01:00
Joakim Nohlgård
28aba6f2ab Merge pull request #5013 from gebart/pr/gnrc-valid-uint32-max
gnrc: Set address valid lifetime to UINT32_MAX for border router scenario
2016-03-09 16:27:49 +01:00
Cenk Gündoğan
cfe47585f1 Merge pull request #5000 from OlegHahm/shell_txtsend_help
shell: improved online documentation for txtsnd
2016-03-09 15:25:07 +01:00
Joakim Nohlgård
ea8b0325eb gnrc: Set address valid lifetime to UINT32_MAX for border router scenario 2016-03-09 14:26:17 +01:00
Oleg Hahm
6df4111e49 shell: improved online documentation for txtsnd 2016-03-09 13:41:21 +01:00
Michael Andersen
2f001776db ndp: fix stub parameters 2016-03-08 23:21:16 -08:00
Michael Andersen
60f6aeaf70 ndp: change rtr adv src to link local 2016-03-08 21:33:35 -08:00
9e3081849e sys: xtimer: fix some race conditions 2016-03-09 01:51:59 +01:00
Oleg Hahm
b61b8e9f00 sockets: add documentation about implicite binding 2016-03-08 19:48:20 +01:00
Oleg Hahm
ee0f31df9a conn_udp: document correct create & recv usage
Both functions must be called from the same thread.
2016-03-08 19:48:20 +01:00
Oleg Hahm
7552867858 make: removed non-existing gnrc_netdev_eth 2016-03-08 16:33:57 +01:00
Oleg Hahm
c2ebeb1281 gnrc: removed deprecated and unused header 2016-03-08 16:33:12 +01:00
Martine Lenders
d8c3301492 gnrc_netdev_eth: handle error on iovec initialization. 2016-03-07 21:36:35 +01:00
Martine Lenders
32e0c7ae66 Merge pull request #4636 from authmillenon/ieee802154/enh/general-hdr
ieee802154: provide general header build and read functions
2016-03-07 21:02:52 +01:00
Martine Lenders
399b8026d3 ieee802154: provide general header build and read functions 2016-03-07 16:40:30 +01:00
Martine Lenders
cba05cc028 Merge pull request #4873 from Yonezawa-T2/zero_udp_checksum
udp: fixed a corner case for checksum computation.
2016-03-07 09:21:24 +01:00
Yonezawa-T2
b1dd2818fe udp: discard UDP packets with zero checksum.
RFC 2460 Section 8.1

> IPv6 receivers must discard UDP packets containing a zero checksum,
> and should log the error.
2016-03-07 15:46:29 +09:00
Martine Lenders
c72bae6dba Merge pull request #4968 from immesys/fix-ndp
ndp: fix neighbor advertisement byte ordering
2016-03-06 21:18:28 +01:00
Michael Andersen
1082a93a42 ndp: fix neighbor advertisement byte ordering 2016-03-05 13:39:50 -08:00
c3fe4615bd sys: posix: posix_semaphore: adapt to thread.h 2016-03-05 18:20:17 +01:00
0bf305e0e7 sys: cpp11-compat: adapt to thread.h 2016-03-05 18:20:17 +01:00
67d3d44927 sys: newlib: include fix 2016-03-05 18:20:17 +01:00
2b010b5337 core: rename tcb_t -> thread_t, move into thread.h 2016-03-05 18:20:17 +01:00
Martine Lenders
ae52bf9a12 gnrc_sixlowpan_iphc_nhc: fix NHC UDP decoding for fragmented packets 2016-03-04 16:40:45 +01:00
Cenk Gündoğan
4f6d92a5a7 Merge pull request #4951 from authmillenon/auto_init/fix/debug-output
auto_init: Print correct SPI bus in DEBUG output
2016-03-04 10:11:08 +01:00
Martine Lenders
4504e40fe0 Merge pull request #4771 from Yonezawa-T2/rbuf_gc_improvement
rbuf: does not remove oldest entry if we have entry for current fragment
2016-03-04 05:40:00 +01:00
Cenk Gündoğan
e70c5d416e Merge pull request #4787 from BytesGalore/doc_crypto_add_word_on_required_cflags
doc crypto: add word on using required `CFLAGS`
2016-03-03 13:36:27 +01:00
Martine Lenders
5a97eb3666 auto_init: Print correct SPI bus in DEBUG output 2016-03-03 12:44:51 +01:00
kYc0o
e730f1bdc3 Merge pull request #4878 from locicontrols/cc2538-periph-timer
cpu/cc2538/periph/timer overhaul
2016-03-03 11:11:57 +01:00
Martine Lenders
5c8ae83660 Merge pull request #3544 from authmillenon/ng_icmpv6_error/feat/send+neterr
gnrc_icmpv6_error: Initial import of IPv6 error convenience functions
2016-03-03 04:29:34 +01:00
Yonezawa-T2
31fa3404ca rbuf: does not remove oldest entry if we have entry for current fragment
If all rbuf slots are in use, `_rbuf_gc` removes the oldest entry even if the
entry for the current fragment exists. This effectively decreases usable slots
by one. This patch makes `_rbuf_gc` removes the oldest entry only if there is
no entry for the current fragment.
2016-03-03 11:19:48 +09:00
Martine Lenders
e76fef89b8 Merge pull request #4936 from OlegHahm/sixlowpan_nalp_fix
sixlowpan: check the first 2 bits of dispatch byte
2016-03-03 00:54:37 +01:00
Cenk Gündoğan
10cb4d66bf Merge pull request #4870 from authmillenon/ipv6_addr/enh/opt
ipv6_addr: optimize for size
2016-03-02 22:04:32 +01:00
Hauke Petersen
af48dadb26 Merge pull request #4807 from gebart/pr/saul-lis3dh
drivers/lis3dh: Add SAUL support
2016-03-02 13:23:29 +01:00
Martine Lenders
ac07862363 Merge pull request #4796 from gebart/pr/udp-nhc-typo
6lo: Fix typo in UDP NHC checksum elision bit define
2016-03-01 21:54:32 +01:00
Ian Martin
856c5e1539 s/XTIMER_RSHIFT/XTIMER_USEC_TO_TICKS/g
s/XTIMER_LSHIFT/XTIMER_TICKS_TO_USEC/g
2016-03-01 15:18:45 -05:00
Ian Martin
3c275370c3 xtimer: support a negative XTIMER_SHIFT. 2016-03-01 15:15:19 -05:00
Ian Martin
f86c118594 xtimer: define XTIMER_RSHIFT() and XTIMER_LSHIFT() macros to avoid using XTIMER_SHIFT directly. 2016-03-01 15:15:19 -05:00
Martine Lenders
43f84878ec gnrc_icmpv6_error: Initial import of IPv6 error convenience functions 2016-03-01 20:42:27 +01:00
Oleg Hahm
e8d18c1856 sixlowpan: check the first 2 bits of dispatch byte 2016-03-01 18:33:29 +01:00
Martine Lenders
0e32745b8a gnrc: replace static initializers with constants where sensible 2016-03-01 18:29:15 +01:00
Martine Lenders
2082296d5b ipv6_addr: optimize for size 2016-03-01 18:29:15 +01:00
Martine Lenders
754a028929 Merge pull request #4907 from haukepetersen/opt_saul_reg_globalvar
sys/saul_reg: made registry a global variable
2016-03-01 14:23:07 +01:00
Martine Lenders
327f7c442c Merge pull request #4816 from kaspar030/rename_genrand
sys: random: rename genrand_* to random_*
2016-03-01 13:58:39 +01:00
Joakim Nohlgård
647c87c9a5 6lo: Fix typo in UDP NHC checksum elision bit define 2016-03-01 12:35:14 +01:00
Peter Kietzmann
c8829a49b8 Merge pull request #4838 from haukepetersen/fix_periph_timerarg
drivers/timer: added callback argument
2016-03-01 08:55:54 +01:00
Joakim Nohlgård
3af809bdfc Merge pull request #4910 from kaspar030/core_header_cleanup
core: header cleanup
2016-02-29 22:48:35 +01:00
ded39b461e sys: random: rename genrand_* to random_* 2016-02-29 21:33:17 +01:00
Oleg Hahm
1e14d6d5d5 Merge pull request #4354 from kaspar030/add_prng_tinymt32
sys: random: import tinymt32 PRNG, make it default
2016-02-29 17:53:27 +01:00
Peter Kietzmann
a8b6fba69c Merge pull request #4664 from haukepetersen/opt_driver_dhtinit
drivers/dht: numerous improvements
2016-02-29 16:23:31 +01:00
Hauke Petersen
e9d79a37d6 sys/xtimer: adapted to timer API changes 2016-02-29 14:45:00 +01:00
d9cf871e2e sys: random: import tinymt32 PRNG 2016-02-29 12:05:31 +01:00
Yonezawa-T2
984e02a7ff rbuf: made RBUF_INT_SIZE configurable 2016-02-29 13:02:32 +09:00
2567feebf2 sys: fmt: fix includes 2016-02-28 22:46:28 +01:00
9082273746 core: header cleanup 2016-02-28 22:46:28 +01:00
Martine Lenders
2ea563cd8f sc_netif: check for NULL pointers on send 2016-02-28 06:44:03 +01:00
Cenk Gündoğan
0ac4ee705c ipv6: rpl: add source routing header for RPL 2016-02-27 20:39:12 +01:00
Oleg Hahm
aeed55a334 Merge pull request #4894 from malosek/malo-xtimer-fixes
xtimer: Malo xtimer fixes
2016-02-26 19:17:17 +01:00
Hauke Petersen
3d63db5aed sys/saul_reg: made registry a global variable 2016-02-26 16:37:02 +01:00
malo
9b8fe52d5d xtimer: Fixed _add_timer_to_long_list since timer could be added at the wrong position.
Signed-off-by: malo <malo@25cmsquare.io>
2016-02-26 12:32:45 +01:00
malo
93eb56c612 xtimer: Fixed case when _xtimer_set_absolute called with target < now and target has _this_high_period .
Signed-off-by: malo <malo@25cmsquare.io>
2016-02-26 12:27:15 +01:00
bapclenet
b71dee2593 Merge pull request #4900 from OlegHahm/libcoap_dep
libcoap: fix missing dependencies and includes
2016-02-25 13:53:53 +01:00
Martine Lenders
3023ae1a51 Merge pull request #4897 from authmillenon/sixlowpan/fix/missing-headers
sixlowpan: include missing headers
2016-02-25 12:38:10 +01:00
Oleg Hahm
94231241ec posix sockets: missing includes for conn 2016-02-25 10:42:50 +01:00
Martine Lenders
24ffa767ef sixlowpan: include missing headers 2016-02-25 00:42:02 +01:00
BytesGalore
f0245bd648 hashes/sha256: add sha256-chain computation and verification functions
* also added unittetst for it

x[SQUASH ME] separated out all waypoints test and increased waypoints
2016-02-24 19:04:17 +01:00
Oleg Hahm
e0732a5a81 Merge pull request #4701 from OlegHahm/sha1
hashes: Import of SHA-1 algorithm
2016-02-23 12:23:21 +01:00
Oleg Hahm
6afd629d1a hashes: add SHA-1 hashing algorithm 2016-02-23 12:09:37 +01:00
Martine Lenders
8db42427cb native/drivers/sys: adapt ethernet netdev2 for info struct 2016-02-22 12:37:26 +01:00
Yonezawa-T2
e92c355aba udp: fixed a corner case for checksum computation.
Fixes #4842.

RFC 2460 section 8.1 (https://tools.ietf.org/html/rfc2460#section-8.1)
states:
> if that computation yields a result of zero, it must be changed to hex
> FFFF for placement in the UDP header.
2016-02-22 20:30:31 +09:00
Cenk Gündoğan
e0311c85cf color: add hex2color, color2hex, str2rgb, rgb2str 2016-02-21 20:18:25 +01:00
Hauke Petersen
c5a0589332 sys/auto_init: added intialization of DHT devices 2016-02-20 18:19:20 +01:00
Cenk Gündoğan
847c4868a3 Merge pull request #4851 from cgundogan/pr/icmpv6/debug_fix
gnrc_icmpv6: fix debug outputs
2016-02-19 08:13:58 +01:00
Cenk Gündoğan
ee4553e176 gnrc_icmpv6: fix debug outputs 2016-02-19 07:51:10 +01:00
Oleg Hahm
fc398d857d ndp: fix NCE creation on RA reception
RFC4861 says: "If a Neighbor Cache entry is created for the router
[while processing route advertisements], its reachability state MUST be
set to STALE as specified in Section 7.3.3."
2016-02-18 19:53:39 +01:00
Oleg Hahm
0a65d8c558 Merge pull request #4770 from Yonezawa-T2/rbuf_usec
rbuf: change arrival time unit from seconds to microseconds
2016-02-16 11:38:06 +01:00
Yonezawa-T2
d5a02b6de1 rbuf: change arrival time unit from seconds to microseconds 2016-02-16 17:22:25 +09:00
Joakim Nohlgård
e2f7ac78f0 Merge pull request #4040 from gebart/pr/periph-timer-init-freq
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Martine Lenders
a66ce9c3eb Merge pull request #4784 from authmillenon/gnrc_pkt/api/search-type-function
gnrc_pkt: provide type search function
2016-02-15 13:33:45 +01:00
Ludwig Knüpfer
be4ac58e0c sys/hashes, sys/checksum: mv fletcher* checksum 2016-02-15 09:29:04 +01:00
Ludwig Knüpfer
1fedd456ce Revert "crc: rename checksum to CRC"
This reverts commit 3f645884a4.
2016-02-15 09:28:57 +01:00
Joakim Nohlgård
df416c1b76 sys/xtimer: Update to match timer_init API changes 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
2108b85d85 saul: add missing doxygen opening comment 2016-02-13 21:25:13 +01:00
Joakim Nohlgård
8d11fab8bd drivers/lis3dh: Add SAUL support 2016-02-13 21:25:07 +01:00
Cenk Gündoğan
f93ee8d49d sc_gnrc_rpl: show state of PIO transmission 2016-02-13 11:29:18 +01:00
Joakim Nohlgård
d414f30b22 Merge pull request #4791 from gebart/pr/small-cleanups
misc: small cleanups
2016-02-12 09:14:06 +01:00
Cenk Gündoğan
8da37a4aae Merge pull request #4793 from cgundogan/pr/gnrc_ipv6/debug
gnrc_ipv6: make the DEBUG output useful
2016-02-12 08:55:04 +01:00
BytesGalore
d09ae8f384 doc crypto: add word on using required CFLAGS 2016-02-12 08:41:53 +01:00
Martine Lenders
e52f16bbe0 Merge pull request #4786 from OlegHahm/crypto_doc_fix
doc crypto: fixed typo and improved example
2016-02-12 00:11:04 +01:00
Oleg Hahm
4824a45c8a Merge pull request #4732 from cgundogan/pr/rpl/pio_control
rpl: make PIOs in DIOs configurable and send them out always or never
2016-02-11 23:53:51 +01:00
Oleg Hahm
30e9bddee5 Merge pull request #4790 from OlegHahm/ping6_netif_init
shell ping6: initialize netif header
2016-02-11 22:14:02 +01:00
Cenk Gündoğan
27a4770601 gnrc_ipv6: make the DEBUG output useful 2016-02-11 16:46:16 +01:00
Joakim Nohlgård
0e316c3159 sys/net/gnrc/zep: Remove unused (static) getter function 2016-02-11 15:13:41 +01:00
Oleg Hahm
141ffac487 Merge pull request #4777 from OlegHahm/netif_retrans
shell: netif retransmissions
2016-02-11 15:11:19 +01:00
Oleg Hahm
3b46ddf0f4 shell ping6: initialize netif header 2016-02-11 14:52:25 +01:00
BytesGalore
95de31b4b9 Revert "doc crypto: add word on using CFLAGS"
This reverts commit 30ab688339.
2016-02-11 13:24:07 +01:00
BytesGalore
30ab688339 doc crypto: add word on using CFLAGS 2016-02-11 13:06:51 +01:00
Oleg Hahm
825ba72751 doc crypto: fixed typo and improved example 2016-02-11 11:44:57 +01:00
Martine Lenders
379703ae3a gnrc: use gnrc_pkt_search_type instead of LL_SEARCH_SCALAR 2016-02-11 01:05:02 +01:00
Martine Lenders
e8a1fab07d gnrc_pkt: provide type search function 2016-02-11 01:05:02 +01:00
Cenk Gündoğan
03f34927cd pktbuf: do not inline gnrc_pktbuf_remove_snip 2016-02-10 16:38:40 +01:00
Oleg Hahm
ea0a913d71 shell: reorder netif output 2016-02-09 17:57:03 +01:00
Oleg Hahm
514cbccfa3 shell: add option for link layer retransmissions 2016-02-09 17:54:00 +01:00
Yonezawa-T2
f638d68ebb rbuf: drop overlapped fragment only if offset or size differs from previous one.
https://tools.ietf.org/html/rfc4944#section-5.3 says:

> If a link fragment that overlaps another fragment is received, as
> identified above, and differs in either the size or datagram_offset
> of the overlapped fragment, the fragment(s) already accumulated in
> the reassembly buffer SHALL be discarded.  A fresh reassembly may be
> commenced with the most recently received link fragment.
2016-02-09 11:15:22 +09:00
8cf5ffdabc Merge pull request #4332 from marshall/customSyscalls
cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X
2016-02-08 21:46:16 +01:00
Hauke Petersen
f3ac84d43a drivers: s/CPUID_ID_LEN/CPUID_LEN/ 2016-02-08 11:10:59 +01:00
Yonezawa-T2
13a49efce6 shell: rewrote to use new ipv6_addr_split function 2016-02-08 12:43:22 +09:00
kYc0o
66dab58b8a Merge pull request #4438 from kaspar030/add_eth_over_serial
drivers: add ethernet over serial driver
2016-02-08 00:09:03 +01:00
9e3e485ec0 drivers: net: add ethos (ethernet over serial) driver 2016-02-07 19:15:14 +01:00
Marshall Culpepper
160da3fab1 cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X 2016-02-06 08:20:42 -05:00
Oleg Hahm
b377491d7c Merge pull request #4679 from BytesGalore/add_hmac_sha256
hashes/sha256: initial commit for hmac-sha256 computation
2016-02-06 12:36:02 +01:00
BytesGalore
b1537bc17c hashes/sha256: initial commit for hmac-sha256 computation 2016-02-06 08:11:37 +01:00
Martine Lenders
0e40350d81 Merge pull request #4759 from kaspar030/fix_gnrc_netdev2_ipv6_multicast
sys: net: gnrc_netdev2_eth: fix ethernet multicast MAC address creation
2016-02-05 23:37:47 +01:00
0fc19f723d sys: net: gnrc_netdev2_eth: fix ethernet multicast MAC address creation 2016-02-05 23:20:33 +01:00
951f1300a0 sys: shell: ping6: require device parameter for link-local addresses 2016-02-05 18:13:34 +01:00
44e985bf8c sys: net: ipv6: add print_ipv6_addr() 2016-02-05 14:06:36 +01:00
b9c97d86c2 sys: net: add ipv6 split prefix/interface from address functions 2016-02-05 13:24:45 +01:00
Hauke Petersen
84b44f03dd Merge pull request #4740 from cgundogan/pr/saul/pull_modes
saul: make pull-up/pull-down mode configurable
2016-02-04 16:34:40 +01:00
Oleg Hahm
6ace8234cf Merge pull request #4715 from OlegHahm/crypto_to_hashes
hashes: cleanup
2016-02-04 15:46:41 +01:00
Oleg Hahm
3f645884a4 crc: rename checksum to CRC 2016-02-04 14:58:34 +01:00
Oleg Hahm
6823b47623 doc: add starting page for hash functions 2016-02-04 14:58:34 +01:00
Oleg Hahm
906e2176a9 hashes: some improvements on documentation 2016-02-04 14:58:34 +01:00
Oleg Hahm
809217cf26 checksum: move doc page from include to code path 2016-02-04 14:58:34 +01:00
Oleg Hahm
51db509f7c sha256: move from crypto to hashes 2016-02-04 14:58:34 +01:00
Cenk Gündoğan
b860ad3715 saul: make pull-up/pull-down mode configurable 2016-02-04 14:57:00 +01:00
Cenk Gündoğan
3a16d021a6 conn: udp: doc fix 2016-02-04 10:51:47 +01:00
Cenk Gündoğan
b654dc3167 rpl: doc: add configuration hints 2016-02-03 13:32:26 +01:00
Oleg Hahm
ca8dbbac20 Merge pull request #4714 from OlegHahm/6lo_nd_lookup
6lo nd: prefer NCEs over FIB entries
2016-02-03 11:11:49 +01:00
Cenk Gündoğan
d8f30150b4 rpl: shell: adjust style of commands output 2016-02-03 09:00:30 +01:00
Cenk Gündoğan
73fac82b58 rpl: shell: don't compile PIO code dependent on CFLAGS 2016-02-03 08:59:51 +01:00
Cenk Gündoğan
288212af36 rpl: shell: make PIO transmission configurable via shell 2016-02-03 08:59:27 +01:00
Cenk Gündoğan
11e2ae20b0 rpl: make PIO transmission configurable 2016-02-03 07:32:40 +01:00
Cenk Gündoğan
2242970cad rpl: don't change status of PIO transmissions 2016-02-03 07:29:36 +01:00
Cenk Gündoğan
50aff7fca0 rpl: unify requested option flags into one byte 2016-02-03 07:13:24 +01:00
Cenk Gündoğan
cb68c01325 ipv6/nc: doc fix and removed unused macro 2016-01-30 15:26:49 +01:00
Oleg Hahm
ae086aeed1 IPv6: cosmetic improvement
New condition -> new line
2016-01-29 18:56:03 +01:00
Oleg Hahm
250c288929 6lowpan nd: prefer NCEs over FIB entries
If an address can be found in the neighbor cache, it should be used - whatever the FIB may return.
2016-01-29 18:56:03 +01:00
Hauke Petersen
35eb99a46e Merge pull request #3984 from kaspar030/simplify_reboot
core: cpu: sys: simplify reboot()
2016-01-29 14:24:08 +01:00
Martine Lenders
d87ed59e39 auto_init: disable DEBUG 2016-01-29 01:27:28 +01:00
BytesGalore
10ea1226bc gnrc/ipv6: add blacklisting of IPv6 addresses 2016-01-28 21:50:43 +01:00
Ludwig Knüpfer
1df395f364 Merge pull request #4647 from LudwigKnuepfer/pr/sys-checksum
sys/checksum: initial import including CRC16-CCITT
2016-01-28 18:11:35 +01:00
Oleg Hahm
ae8e0957cb Merge pull request #4705 from cgundogan/pr/ndp/pio_fix
ndp/internal: fix pio flags for rtr adv
2016-01-28 16:27:44 +01:00
Oleg Hahm
58eb00e867 Merge pull request #4709 from OlegHahm/remove_hash_string
sys: remove hash_string module
2016-01-28 16:12:51 +01:00
Cenk Gündoğan
11e7160b90 Merge pull request #4707 from BytesGalore/change_whitelist_use_memcpy
gnrc_ipv6/whitelist: switch assignment operation to `memcpy()`
2016-01-28 14:23:21 +01:00
Oleg Hahm
a57e77e46a sys: remove hash_string module
hash_string implements djb2 which is already part of `sys/hashes/`
2016-01-28 14:20:54 +01:00
Cenk Gündoğan
d58e1385b2 ndp/internal: fix pio flags for rtr adv 2016-01-28 14:03:19 +01:00
BytesGalore
2d1671473b gnrc_ipv6/whitelist: switch assignment operation to memcpy() 2016-01-28 06:23:31 +01:00
Ludwig Knüpfer
430b4aa600 sys/checksum: initial import including CRC16-CCITT
Adds a checksum module which includes an implementation "the CCITT"
variant of the CRC16 algorithm.
2016-01-27 19:28:05 +01:00
Oleg Hahm
dae4253618 Merge pull request #4519 from OlegHahm/fib_remove_superfluous_things
FIB: remove superfluous things
2016-01-27 16:12:08 +01:00
938ff5c5e7 core: cpu: sys: simplify reboot() 2016-01-27 13:30:01 +01:00
Martine Lenders
94bbd055a5 Merge pull request #4640 from cgundogan/pr/random/initval
sc_random: use a default seed if no xtimer is present
2016-01-27 02:20:11 +01:00
Oleg Hahm
a1ece30c55 fib: remove superfluous parameter 2016-01-26 23:52:18 +01:00
Cenk Gündoğan
d2555af269 sc_random.c: use a default seed if no xtimer is present 2016-01-26 23:28:18 +01:00
Martine Lenders
5ddcf09627 gnrc_ipv6_netif: don't advertise routers without GUAs 2016-01-26 23:25:07 +01:00
Martine Lenders
131cae626c Merge pull request #3362 from authmillenon/ng_neterr/feat/initial
[RFC] gnrc: initial import of an asynchronous error reporting API
2016-01-26 21:35:30 +01:00
Cenk Gündoğan
617796241e Merge pull request #4295 from authmillenon/gnrc_ipv6_nc/enh/l2addr-lookup
gnrc_ipv6_nc: introduce L2 address lookup function
2016-01-26 19:30:01 +01:00
Martine Lenders
d38a9db966 Merge pull request #4551 from authmillenon/sema/fix/post
sema: some API fixes
2016-01-26 19:12:41 +01:00
Oleg Hahm
a822271d09 Merge pull request #4374 from authmillenon/sema/fix/timer-pre-set
sema: pre-set timeout-timer for sema_wait_timed_msg()
2016-01-26 19:05:12 +01:00
Peter Kietzmann
4d7c068e0d Merge pull request #4267 from authmillenon/gnrc_pktbuf_static/enh/max_byte_counter
gnrc_pktbuf_static: add stat variable for maximum packet buffer byte
2016-01-26 18:45:49 +01:00
Oleg Hahm
3d494c8bf9 Merge pull request #3184 from authmillenon/ng_icmpv6_error/feat/init
gnrc_icmpv6_error: initial import
2016-01-26 18:23:54 +01:00
Martine Lenders
a23b9c3310 Merge pull request #4652 from Lotterleben/conn_documentation
conn: add more detailed documentation (WIP)
2016-01-26 18:09:36 +01:00
Lotte Steenbrink
be72f2c1cf conn: add more detailed documentation 2016-01-26 16:54:29 -08:00
Hauke Petersen
bc0a589886 Merge pull request #4680 from authmillenon/od/fix/nano-specs
od: fix for nano-specs
2016-01-26 18:09:17 +01:00
test
8d1f91f128 ndp: check for A flag in received PIO 2016-01-26 14:34:48 +01:00
Martine Lenders
da5abe1bcd gnrc_sixlowpan_nd: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:16 +01:00
Martine Lenders
0b787b9e02 gnrc_ndp_node: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:16 +01:00
Martine Lenders
0e0eef1273 gnrc_ipv6: use gnrc_ipv6_nc_get_l2_addr() 2016-01-26 10:19:15 +01:00
Martine Lenders
7b21f95df5 gnrc_ipv6_nc: introduce L2 address lookup function 2016-01-26 10:19:15 +01:00
Cenk Gündoğan
c8839b71d8 Merge pull request #4661 from Yonezawa-T2/rpl_propagete_prefix_route
gnrc_rpl_control_messages: propagete prefix route via DAO message
2016-01-25 15:51:52 +01:00
Martine Lenders
f99e9e0161 od: piggy-back style fixes 2016-01-24 23:51:41 +01:00
Martine Lenders
2173a33eab od: fix for nano-specs 2016-01-24 23:46:38 +01:00
Martine Lenders
da23ffe096 gnrc: initial import of an asynchroneous error reporting API 2016-01-23 16:42:19 +01:00
Martine Lenders
4d877c7bf7 gnrc_pktbuf_static: add stat variable for maximum packet buffer byte 2016-01-23 16:41:01 +01:00
Martine Lenders
96075ed2c1 sema: introduce static initializer 2016-01-23 16:38:56 +01:00
Martine Lenders
d5af07c759 sema: style fixes 2016-01-23 16:38:56 +01:00
Martine Lenders
632c9a2bd0 sema: harmonize sema_post return with rest of API 2016-01-23 16:38:55 +01:00
Martine Lenders
47a2df7423 sema: piggy-back some style fixes 2016-01-23 16:35:21 +01:00
Martine Lenders
1dc388fea0 sema: pre-set timeout-timer for sema_wait_timed_msg() 2016-01-23 16:35:21 +01:00
Martine Lenders
70c3d29036 gnrc_icmpv6_error: initial import 2016-01-23 16:04:05 +01:00
Oleg Hahm
e772ef5c39 shell: netif: initialize local variable 2016-01-21 15:00:59 +01:00
Yonezawa-T2
eaf2153681 gnrc_rpl_control_messages: propagete prefix route via DAO message 2016-01-21 11:11:38 +09:00
Thomas Eichinger
d60bfc0ae2 Merge pull request #4574 from haukepetersen/opt_stdiodefs
boards: use default values for STDIO defines
2016-01-20 11:48:46 +01:00
Cenk Gündoğan
40f5aeba8a Merge pull request #4414 from cgundogan/pr/rpl/fix_netapi_commands_handling
rpl: fix netapi commands handling
2016-01-13 09:09:33 +01:00
Yonezawa-T2
b37d6337bf shell: fixed ncache arguments parsing 2016-01-13 10:02:36 +09:00
Cenk Gündoğan
7269cdbf03 rpl: fix netapi commands handling 2016-01-11 18:30:29 +01:00
Oleg Hahm
08ada181b3 Merge pull request #4588 from OlegHahm/posix_socket_sa_family_type
posix socket: align size of sa_family_t with Linux
2016-01-08 15:12:52 +01:00
Johann Fischer
2f94d669d7 gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data
This patch fixes overflow, which is caused by
(pkt->size - aligned_size). This happens if pkt->size and
new size are unaligned and the difference
between pkt->size and new size is less than four.
2016-01-07 15:17:52 +01:00
Oleg Hahm
35074a6ad1 posix socket: align size of sa_family_t with Linux
Linux defines `sa_family_t` as `unsigned short int`. In order to be compatible with Linux code, RIOT should define it the same way.
2016-01-07 11:12:35 +01:00
Martine Lenders
94e4a08f45 Merge pull request #4447 from Yonezawa-T2/fix_gnrc_bugs
fixes several bugs on GNRC network stack
2016-01-07 03:38:11 +01:00
Yonezawa-T2
cf35763584 fib: add debug outputs 2016-01-07 10:12:46 +09:00
Yonezawa-T2
c9c83c7dc7 nc: cancel timer set by gnrc_ndp_rtr_sol_handle in gnrc_ipv6_nc_remove. 2016-01-07 10:12:46 +09:00
Yonezawa-T2
542e045bba gnrc_ipv6_netif: fixed crash when ENABLE_DEBUG is 1.
When ENABLE_DEBUG is 1, `out` is dereferenced unconditionally, but
`_parse_options` in `gnrc_rpl_control_messages.c` calls it with NULL.

Clarified `out` must not NULL and fixed `_parse_options`.
2016-01-07 10:08:37 +09:00
Yonezawa-T2
5cb904b57e gnrc_sixlowpan_nd: fixed crash on gnrc_sixlowpan_nd_next_hop_l2addr.
When `gnrc_ndp_node_next_hop_l2addr` cannot resolve L2 address, it creates a
temporary neighbor cache entry with interface `KERNEL_PID_UNDEF` (unless the
interface is already known) to send a neighbor solicitation. When another packet
directed to the same address is going to sent before receiving a neighbor
advertisement, `gnrc_sixlowpan_nd_next_hop_l2addr` gets the temporary neighbor
cache entry and calls `gnrc_ipv6_netif_get` with `KERNEL_PID_UNDEF`, resulting
get a `NULL`. We must check `NULL` before dereference it.

FYI, both `gnrc_ndp_node_next_hop_l2addr` and
`gnrc_sixlowpan_nd_next_hop_l2addr` are enabled when
`gnrc_sixlowpan_border_router_default` module is enabled with `GNRC_NETIF_NUMOF`
is greater than 1:

gnrc_sixlowpan_border_router_default
→ gnrc_ipv6_router_default
→ gnrc_ndp_router (if GNRC_NETIF_NUMOF > 1)
→ gnrc_ndp_node
→ gnrc_ndp_node_next_hop_l2addr is called from _next_hop_l2addr

gnrc_sixlowpan_border_router_default
→ gnrc_sixlowpan_nd_border_router
→ gnrc_sixlowpan_nd_router
→ gnrc_sixlowpan_nd
→ gnrc_sixlowpan_nd_next_hop_l2addr is called from _next_hop_l2addr
2016-01-07 10:02:49 +09:00
Martine Lenders
86bf9ae4c4 Merge pull request #4584 from BytesGalore/quickfix_default_route_shell
shell fib: recognize the default route as net prefix
2016-01-06 15:33:44 +01:00
BytesGalore
b8ba3f589f shell fib: recognize the default route as net prefix 2016-01-06 15:51:44 +01:00
Cenk Gündoğan
c7dec59241 Merge pull request #4580 from authmillenon/shell/fix/nano
shell: commands: fix selective outputs for nano specs
2016-01-06 14:23:27 +01:00
Martine Lenders
a4a8e83ac7 Merge pull request #4446 from Yonezawa-T2/neighbor_discovery_option_for_6lowpan
gnrc_ndp: fixed ND Option handling for 6LoWPAN
2016-01-06 14:03:43 +01:00
Yonezawa-T2
639f7dc020 gnrc_ndp: fixed ND Option handling for 6LoWPAN
The forms of the Source/Target Link-layer Address option for 6LoWPAN are defined
in RFC 4944 Section 8:
https://tools.ietf.org/html/rfc4944#section-8
The address is 16 bit if length is 1, 64 bit if length is 2.
2016-01-06 09:38:47 +09:00
Martine Lenders
950b80cce7 shell: commands: fix nano specs issues for ifconfig command 2016-01-05 23:17:07 +01:00