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

173 Commits

Author SHA1 Message Date
Benoît Canet
5e7ea2d9e4 msg: Fix incorrect queues initializations
From core/include/msg.h:

/**
 * @brief Initialize the current thread's message queue.
 *
 * @param[in] array Pointer to preallocated array of ``msg_t`` structures, must
 *                  not be NULL.
 * @param[in] num   Number of ``msg_t`` structures in array.
 *                  **MUST BE POWER OF TWO!**
 *
 * @return 0, if successful
 * @return -1, on error
 */
int msg_init_queue(msg_t *array, int num);

sizeof(array) does does not compute an array size. Replace calls to sizeof()
with proper values

Closes #3269.

Fix two crashes in the tests and probably more in the network stack.
2015-06-29 06:58:24 +02:00
Lotte Steenbrink
8f4dd8dc13 aodvv2: fix one-off metric bug 2015-06-23 07:13:16 -07:00
Fabian Nack
5fbafbf8ad sys/nhdp: Add link metric calculation 2015-05-27 11:05:13 +02:00
Martine Lenders
e3bdc53c37 Merge pull request #2898 from authmillenon/ng_ipv6_ext/feat/initial
ng_ipv6_ext: initial import of extension header handling (including RPL SRH)
2015-05-26 20:16:50 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Joakim Gebart
1d69ea3159 sys/net/routing/rpl: Remove redundant assignment of dodag_version to itself 2015-05-19 15:01:53 +02:00
Martine Lenders
abc0280543 ng_rpl: add source routing header parsing for ng_net 2015-05-17 21:51:52 +02:00
Oleg Hahm
4d85caee0f Merge pull request #2953 from OlegHahm/ng_sizeof
net: use sizeof(stack) for thread_create
2015-05-10 12:27:05 +02:00
Oleg Hahm
c3a60fcea1 net: use sizeof(stack) for thread_create 2015-05-09 20:48:53 +02:00
Joakim Gebart
45c3498091 sys/net/routing/Makefile: Unix line endings 2015-05-09 09:18:31 +02:00
Lotte Steenbrink
02efbadc48 aodvv2: fix check for redundant RREQ 2015-04-16 09:34:42 -07:00
Cenk Gündoğan
b557000c20 rpl: remove global variable indicating the root node 2015-04-28 18:13:40 +02:00
BytesGalore
2ffe2e6f1f Merge pull request #2633 from cgundogan/rpl_remove_rpl_get_my_dodag_from_parent_delete
rpl: remove rpl_get_my_dodag() dependency in rpl_delete_all_parents()
2015-04-28 16:24:21 +02:00
Oleg Hahm
126eba73a9 Merge pull request #2606 from cgundogan/rpl_remove_multiple_instance_check
rpl: remove unnecessary check for multiple instances
2015-04-22 23:14:27 +02:00
Oleg Hahm
9edf0b76db doc: aodv specific stuff shouldn't show up in core 2015-04-21 18:53:36 +02:00
Oleg Hahm
8926fa2269 rpl: added debug output for DAO default case 2015-04-19 20:56:05 +02:00
Oleg Hahm
22689437fb Merge pull request #2764 from Lotterleben/aodvv2_improve_offers_improvement
AODVv2: fix check if a route offers an improvement
2015-04-16 09:50:40 +02:00
Lotte Steenbrink
aca795ddb2 Merge pull request #2810 from Lotterleben/aodvv2_na_mcast_init
AODVv2: rm unnecessary initialization of na_mcast
2015-04-15 16:06:06 +02:00
Lotte Steenbrink
82caf87128 Merge pull request #2796 from BytesGalore/aodv_return_on_socket_fail
routing/aodv: added return on failed socket creation for receiver thread
2015-04-14 11:43:36 +02:00
Cenk Gündoğan
19c2ab8bc2 rpl: remove rpl_get_my_dodag() dependency in rpl_delete_all_parents() 2015-04-14 10:09:47 +02:00
Cenk Gündoğan
d27cd45a81 rpl: update routing table information for all dodags 2015-04-13 18:59:22 +02:00
BytesGalore
feff423f07 routing/aodv: added return on failed socket cration for receiver thread 2015-04-13 11:59:12 +02:00
BytesGalore
c47563a745 Merge pull request #2789 from Lotterleben/aodvv2_mutex_fix
AODVv2: fix mutex for route message creation
2015-04-13 11:08:44 +02:00
Lotte Steenbrink
5de25a7bd7 AODVv2: fix check if route offers improvement 2015-04-11 06:51:08 -07:00
Lotte Steenbrink
ae88d122e4 rm unnecessary initialization of na_mcast 2015-04-11 02:37:43 -07:00
Lotte Steenbrink
436a105ff7 AODVv2: fix mutex for route message creation 2015-04-10 07:13:35 -07:00
Oleg Hahm
fce1d4538e Merge pull request #2703 from cgundogan/rpl_rm_initializers
rpl: remove needless initializers
2015-04-10 11:48:52 +02:00
Oleg Hahm
bd828f109e Merge pull request #2350 from gebart/pr/sixlowpan-buffer-name
sixlowpan: rename global buffer->sixlowpan_buffer
2015-04-10 11:38:54 +02:00
Oleg Hahm
63c121528a Merge pull request #2624 from cgundogan/rpl_recv_DIS_multiple_dodags
rpl: check all dodags when receiving DIS messages
2015-04-10 00:20:13 +02:00
Oleg Hahm
540ee49e61 Merge pull request #2653 from cgundogan/rpl_remove_get_my_dodag_dependencies
rpl: remove get_my_dodag dependency by passing the dodag as parameter
2015-04-10 00:18:02 +02:00
Oleg Hahm
087b51e10b Merge pull request #2500 from fnack/nhdp_optimize_rx
sys/nhdp: Remove temp address lists to optimize hello processing
2015-04-09 18:43:18 +02:00
Lotte Steenbrink
ccc33ec619 AODVv2: Broken & Expired routes to Invalid routes 2015-04-02 10:45:26 -07:00
Joakim Gebart
f6bade32e6 rpl: Rename buffer->sixlowpan_buffer 2015-03-25 08:00:47 +01:00
Cenk Gündoğan
7e19ef0536 rpl: remove needless initializers 2015-03-24 14:07:58 +01:00
Cenk Gündoğan
9bdcfcbe33 rpl: edit the debug message for instance == NULL 2015-03-22 19:07:31 +01:00
Ludwig Ortmann
cf637942cc *: add missing blank lines
Some functions had no blank lines to separate them from their
neighborhood.
2015-03-21 16:34:59 +01:00
Joakim Gebart
8865d9f25f rpl: Fix DEBUG print which broke in 5585413ce0
rpl: pass rpl_instance_t directly instead of its id #2604
https://github.com/RIOT-OS/RIOT/pull/2604
2015-03-21 14:55:17 +01:00
Martine Lenders
4c6ec9b013 Merge pull request #2596 from kushalsingh007/unused
CppCheck: Removing unusedVariable warnings
2015-03-20 22:20:38 +01:00
Cenk Gündoğan
743f529efd Merge pull request #2610 from cgundogan/rpl_remove_get_my_dodag_for_dio_dao
rpl: remove some usages of rpl_get_my_dodag
2015-03-20 20:19:43 +01:00
Cenk Gündoğan
f2b9b51adb Merge pull request #2644 from cgundogan/rpl_pass_dodag_to_find_parent
rpl: pass dodag to the rpl_find_parent function
2015-03-20 19:52:33 +01:00
kushalsingh007
e3d0471183 CppCheck: Removing unusedVariable warnings
-Suppressed warning which occured due to VDEBUG not being used.
-Added comment explaining reason to suppress the warning.
2015-03-20 04:26:30 +05:30
Cenk Gündoğan
1ab4f7c975 rpl: remove get_my_dodag dependency by passing the dodag as parameter 2015-03-19 19:54:30 +01:00
Cenk Gündoğan
5fb526fde8 rpl: pass dodag to the rpl_find_parent function 2015-03-19 19:47:08 +01:00
Cenk Gündoğan
1cd351e6b0 rpl: check all dodags when receiving DIS messages 2015-03-19 19:44:58 +01:00
Cenk Gündoğan
27f0c2fd3f rpl: remove some usages of rpl_get_my_dodag 2015-03-19 19:08:01 +01:00
Cenk Gündoğan
d7722c1766 rpl: expose global rpl_dodags variable 2015-03-19 11:03:43 +01:00
Oleg Hahm
dd0a6496f7 Merge pull request #2608 from cgundogan/rpl_make_send_DAO_aware_of_multiple_dodags
rpl: make send_DAO aware of multiple dodags
2015-03-18 17:17:25 +01:00
Oleg Hahm
f228586d9f Merge pull request #2609 from cgundogan/rpl_make_send_DIO_aware_of_multiple_dodags
rpl: make send_DIO aware of multiple dodags
2015-03-18 17:16:33 +01:00
Oleg Hahm
c396a9009e Merge pull request #2604 from cgundogan/rpl_use_instance_t_as_parameter
rpl: pass rpl_instance_t directly instead of its id
2015-03-18 14:45:48 +01:00