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

9713 Commits

Author SHA1 Message Date
Cenk Gündoğan
461365f390 Merge pull request #4602 from jfischer-phytec-iot/fix@of-gnrc_pktbuf_realloc_data
gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data
2016-01-07 19:33:17 +01:00
Cenk Gündoğan
e62a655b03 travis: pass the proper branch to compile_test.py 2016-01-07 18:39:32 +01:00
Oleg Hahm
aa08f5ed31 pkg: ccn-lite: always rebuild
fixes #4611 by always re-building the ccn-lite library
2016-01-07 18:02:02 +01:00
Martine Lenders
31e40467c3 Merge pull request #4606 from thomaseichinger/pr/tests_xtimer_hang_fix
tests:xtimer_hang: use THREAD_STACKSIZE_DEFAULT instead of literal.
2016-01-07 16:58:18 +01:00
Oleg Hahm
a8036ebe21 Merge pull request #4593 from thomaseichinger/pr/fix_fault_handler
tests: allow language extensions for fault_handler test in clang
2016-01-07 16:38:17 +01:00
Martine Lenders
d48a8230f9 unittests: add unittests for overflow fix 2016-01-07 15:17: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
Thomas Eichinger
f5310bfd5e tests:xtimer_hang: use THREAD_STACKSIZE_DEFAULT instead of literal. 2016-01-07 13:57:22 +01:00
Hauke Petersen
26f9f7fa2d Merge pull request #4600 from kaspar030/remove_test_vtimer_msg
tests: remove vtimer tests
2016-01-07 13:40:04 +01:00
Thomas Eichinger
4f502a4a61 tests: allow language extensions for fault_handler test in clang 2016-01-07 13:38:12 +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
Oleg Hahm
97352463d8 Merge pull request #4603 from jfischer-phytec-iot/fix@kw2xrf-pkt-length
drivers/kw2xrf/kw2xrf.c: fix MAX_PKT_LENGTH
2016-01-07 10:56:07 +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
Johann F
97120f1cce drivers/kw2xrf/kw2xrf.c: fix MAX_PKT_LENGTH
This patch fixes MAX_PKT_LENGTH on kw2x radio
2016-01-07 01:37:00 +01:00
2488bbf4a1 tests: remove vtimer tests 2016-01-06 22:10:59 +01:00
5f44a6938d cpu: native: adapt xtimer backoff values to periph/timer change 2016-01-06 22:07:13 +01:00
ceaeee5c5d Revert "native: periph/timer: prevent underflow in timer_set_absolute"
This reverts commit ec441e9aa6.
2016-01-06 22:07:13 +01:00
Cenk Gündoğan
6a28814cf9 Merge pull request #4592 from thomaseichinger/pr/fix_vtimer_msg_diff_clang
tests: fix clang missing field error
2016-01-06 21:36:32 +01:00
Cenk Gündoğan
17ce29d1a1 Merge pull request #4591 from authmillenon/pkg/fix/oonf-source
pkg: oonf_api: move source
2016-01-06 21:31:37 +01:00
Thomas Eichinger
ebf8bfa4ce tests: fix clang missing field error
Without this clang complains about missing initializers.
`error: missing field 'microseconds' initializer [-Werror,-Wmissing-field-initializers]`
2016-01-06 17:21:24 +01:00
Martine Lenders
d62ffae52a pkg: oonf_api: move source 2016-01-06 16:21:36 +01: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
Martine Lenders
921f9d440c shell: commands: fix nano specs issues for ping6 command 2016-01-05 23:17:07 +01:00
Oleg Hahm
a39862b5a6 Merge pull request #4503 from OlegHahm/make_native_use_tlsf
native: make use of TLSF malloc and co
2016-01-05 23:09:56 +01:00
DipSwitch
6c521916cd Merge pull request #4559 from thomaseichinger/pr/fix_tftp_formating
tftp: fix formatting warnings/errors
2016-01-05 20:26:40 +01:00
Thomas Eichinger
a43cbd17ff tfpt: fix formating warnings/errors 2016-01-05 14:59:34 +01:00
Hauke Petersen
db25206a58 boards: use default values for STDIO defines 2016-01-05 12:08:31 +01:00
Hauke Petersen
e071beab08 sys/uart_stdio: cleanup
- removed duplicate include
- changed default device from '0' to UART_DEV(0)
2016-01-05 12:08:31 +01:00
Hauke Petersen
94c0cc86af Merge pull request #4504 from PeterKietzmann/extend_gpio_api
periph/gpio: extend gpio API doc
2016-01-05 12:04:22 +01:00
Hauke Petersen
10cf51adda Merge pull request #4506 from PeterKietzmann/extend_uart_doc
periph/uart: extend uart API doc
2016-01-05 12:03:02 +01:00
Cenk Gündoğan
ce388a4805 Merge pull request #4566 from kaspar030/disable_nhc
sys: net: disable NHC
2016-01-04 22:29:37 +01:00
Cenk Gündoğan
5b58538613 Merge pull request #4570 from OlegHahm/ccn_lite_pkg_pin
pkg: ccn-lite: pin to upstream commit
2016-01-04 22:25:24 +01:00
Oleg Hahm
42b11fcb50 pkg: ccn-lite: pin to upstream commit 2016-01-04 19:08:33 +01:00
Cenk Gündoğan
9d18b4ed34 Merge pull request #4524 from authmillenon/unittests/fix/sr_fib
unittests: some fixes to fib_sr tests
2016-01-04 17:50:07 +01:00
Cenk Gündoğan
e79a471931 Merge pull request #4533 from Yonezawa-T2/gnrc_add_missing_unlock
gnrc_ndp_internal: add missing unlock when the pktbuf is full
2016-01-04 16:05:17 +01:00
f44976b55e sys: net: disable NHC 2016-01-04 11:44:42 +01:00
Oleg Hahm
6d135d3579 native: make use of TLSF malloc and co
In order to make native behave more similar to other platforms, it should also use TLSF's dynamic memory allocation if included. It will still fall back to the system's malloc implementation when building for use with valgrind, to leverage its memory leak detection mechanisms.
2016-01-03 20:53:08 +01:00
Yonezawa-T2
38d3dc725b gnrc_ndp_internal: add missing unlock when the pktbuf is full
Squashed a commit by Cenk Gündoğan <cnkgndgn@gmail.com>.
2015-12-25 11:08:28 +09:00
Martine Lenders
36923341f0 Merge pull request #4540 from cgundogan/pr/sixlowpan/udp_dependencies
sixlowpan: iphc: fix dependencies for udp and nhc
2015-12-23 15:14:06 +01:00
Cenk Gündoğan
7d628514ab sixlowpan: iphc: fix dependencies for udp and nhc 2015-12-23 13:57:55 +01:00
Cenk Gündoğan
7d6addc0e9 Merge pull request #4539 from cgundogan/pr/gnrc_sixlowpan/remove_iphc_dispatch
sixlowpan: iphc: remove dispatch and assign result to pkt
2015-12-22 21:35:21 +01:00