Martine Lenders
cfed38ae12
Merge pull request #2287 from authmillenon/pktqueue/api/use-pkt
...
pktqueue: adapt to pkt_t
2015-01-16 19:48:04 +01:00
Cenk Gündoğan
c4b01b87bc
rpl: RPL/Trickle with only *one* thread
...
This PR proposes an approach to reduce the thread count of RPL.
The current RPL/Trickle stack needs about 5 threads to handle tasks
like updating the trickle timer, routing entries and the transmission of
DAOs.
This PR modifies RPL to use only one thread with a looped `msg_recv()` call.
The message is then multiplexed to the right task.
2015-01-14 19:42:13 +01:00
Martine Lenders
c9e2f5bdce
pktqueue: adapt to pkt_t
2015-01-14 14:53:37 +01:00
Ludwig Ortmann
8676a1972d
sys/timex: suppress passedByValue warnings
2015-01-14 11:57:01 +01:00
Oleg Hahm
2d874af904
Merge pull request #2158 from authmillenon/pkt/feat/initial-import
...
pkt: Initial import
2015-01-14 08:20:46 +01:00
Martine Lenders
99e2feca48
pkt: Initial import
...
This data type is bound to replace the `(netdev_hlist_t *ulh, void
*data)` tuples in netapi and netdev.
2015-01-14 07:04:56 +01:00
Martin Lenders
96502e2fd4
sys: net: Initial import of a basic MAC protocol layer
2015-01-14 06:58:48 +01:00
Oleg Hahm
34908f11a9
Merge pull request #2257 from cgundogan/rpl_fix_srh_for_storing_mode
...
rpl: node-to-node communication broken (rpl_udp)
2015-01-13 18:49:14 +01:00
Oleg Hahm
a31bc97e1c
Merge pull request #2253 from cgundogan/rpl_srh_remove_relay_debugf
...
rpl: move msg_send_receive outside of DEBUGF
2015-01-13 14:43:18 +01:00
Ludwig Ortmann
154a6b5d22
Merge pull request #2268 from cgundogan/rpl_cleanup_no_routing_table
...
rpl: remove routing table dependent code
2015-01-13 14:09:32 +01:00
Oleg Hahm
0421ab96ee
Merge pull request #2245 from cgundogan/rpl_remove_routing_decision_in_rpl_send
...
rpl: remove decision to drop packets in rpl_send
2015-01-13 14:04:53 +01:00
Cenk Gündoğan
a06c667af5
rpl: remove routing table dependent code
...
This PR removes code depending on a routing table with an entries
size > 0. Currently, all those functions and symbols are compiled into the binary,
even when there is no effective space in the routing table (as it is the
case for normal nodes in non-storing mode)
2015-01-13 13:11:32 +01:00
Oleg Hahm
4a615e21ef
Merge pull request #1717 from BytesGalore/base64_encoder_decoder
...
base64 encoding/decoding module
2015-01-12 16:39:08 +01:00
Martin Landsmann
a0898dbb9f
sys: add base64 encoding/decoding module
...
- suppressed cppcheck warning for `unassignedVariable` for
the encode/decode arrays in stream encode/decode tests
as these arrays are assigned by the according `base64_[en|de]code()` function.
2015-01-12 11:26:41 +01:00
Cenk Gündoğan
22f466ab80
rpl: remove needless call to rpl_get_of_for_ocp
...
This line has no further significance to the application other than burning cpu cycles.
2015-01-08 09:40:08 +01:00
Cenk Gündoğan
da12f62751
rpl: remove return value completely as it is not really used, gives
...
`unsused` warning otherwise
2015-01-08 09:31:30 +01:00
Lotte Steenbrink
3591894698
aodvv2: fix calls to DEBUG()
...
``debug.h`` was included before ``ENABLE_DEBUG`` was set to 0 or 1. In consequence, setting ``ENABLE_DEBUG`` to 1 had no effect. This should be fixed now.
2015-01-06 15:57:12 -08:00
Lotte Steenbrink
f6ffbd6830
Merge pull request #2255 from Lotterleben/aodvv2_fix_packethandler
...
aodv: call aodv_packet_reader_handle_packet() when received packet is *not* our own
2015-01-07 00:37:07 +01:00
Lotte Steenbrink
465f9096b1
aodvv2: call aodv_packet_reader_handle_packet() when recieved packet is *not* our own.
...
For some reason the call to aodv_packet_reader_handle_packet() got lumped in with the check if a received packet is ours. In consequence, all packets which were not sent by the node that received them (i.e. the important ones) were silently ignored, preventing any routes from being established.
This should be fixed now: foreign packets are now handled again, while own packets are ignored.
Also, I made the corresponding comment a bit less passive-aggressive.
2015-01-06 12:54:14 -08:00
Cenk Gündoğan
40c28dd3bf
rpl: node-to-node communication broken (rpl_udp)
...
Calling ipv6_iface_set_srh_indicator with storing mode breaks the
neighbour discovery code in **ip.c:480**.
Thus, it is not possible to use `send <n> test` from node to node.
2015-01-06 18:04:54 +01:00
Lotte Steenbrink
7dc31402d3
transceiver: DEBUG instead of DEBUGF
...
Switch two calls to DEBUGF() to DEBUG() because they lead to compliling complcations and the additional output provided by DEBUG isn't really necessary here.
2015-01-06 08:29:29 -08:00
Cenk Gündoğan
843be5ad6d
rpl: minor changes to comments in rpl_storing.c
2015-01-06 13:24:42 +01:00
Cenk Gündoğan
d4b57b301d
rpl: move msg_send_receive outside of DEBUGF
...
When the debug flag is set to off, the call to msg_send_receive will be
ignored. @fabianbrandt am I missing something?
2015-01-06 13:04:26 +01:00
Oleg Hahm
be67f662ac
Merge pull request #2248 from cgundogan/rpl_remove_faulty_comment
...
rpl: remove faulty comment
2015-01-06 12:55:15 +01:00
Cenk Gündoğan
8b7386fc8b
rpl: remove faulty comment
...
Can be misleading since we also support non-storing mode now.
2015-01-06 10:24:25 +01:00
Cenk Gündoğan
652b4f84a6
rpl: remove decision to drop packets in rpl_send
...
The dicision to drop a packet if no next hop exists is made by the
`rpl_get_next_hop` function, which is initialized as the routing
provider for rpl applications. Hence, it seems needless to do this in the
`rpl_send` function.
2015-01-06 09:34:15 +01:00
Cenk Gündoğan
36893ded6d
rpl: typo childs -> children
2015-01-06 09:23:56 +01:00
Oleg Hahm
1e87a3212b
Merge pull request #2235 from OlegHahm/weak_vtimer_gettimeofday
...
vtimer: enable vtimer_gettimeofday as fallback
2014-12-31 18:27:36 +01:00
Oleg Hahm
99f227bf33
vtimer: enable vtimer_gettimeofday as fallback
...
Declaring vtimer_gettimeofday as a "weak" alias for the _gettimeofday
syscall.
2014-12-27 15:53:23 +01:00
Cenk Gündoğan
aca1ade01c
rpl: cleanup, changing structdefs into typedefs
2014-12-26 21:13:33 +01:00
Ludwig Ortmann
dc916ad458
Merge pull request #2102 from Kijewski/embunit-module
...
tests: make embUnit a normal sys module
2014-12-22 12:50:26 +01:00
Ludwig Ortmann
5e0973ca89
Merge pull request #2150 from OlegHahm/more_doc_cleanup
...
doc: More documentation cleanup
2014-12-22 11:58:59 +01:00
René Kijewski
91050cd72d
embunit: fix outputters for msp430
2014-12-21 20:04:57 +01:00
René Kijewski
f684aa4b2d
tests: make embUnit a normal sys module
...
There is nothing quite special about embUnit.
This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00
René Kijewski
5f29fed076
core: introduce msg_sent_by_int()
...
msg_send_int() sets `m->sender_pid = target_pid`. This was used to flag a
message as having been sent by an ISR.
This PR introduces a static inline function `msg_sent_by_int()` and a
specific define for this purpose.
2014-12-18 23:04:03 +01:00
Ludwig Ortmann
695d702b4f
Merge pull request #2212 from Lotterleben/fix_ipv6_iface_set_routing_provider
...
exclude ``ipv6_iface_set_routing_provider()`` from ``#ifdef MODULE_RPL``...
2014-12-17 19:03:47 +01:00
Ludwig Ortmann
b8b50e8579
Merge pull request #2210 from Lotterleben/fix_sixlowpan_typos
...
fix typos in ip.h, mac.h, ndp.h and types.h
2014-12-17 12:32:35 +01:00
Lotte Steenbrink
743146a803
fix typos in ip.h, mac.h, ndp.h and types.h
2014-12-17 03:29:37 -08:00
Lotte Steenbrink
1bd60400f0
add parentheses to ENABLE_DEBUG in CBOR_NO_PRINT
2014-12-17 03:03:33 -08:00
Lotte Steenbrink
a8b3c9f535
exclude `ipv6_iface_set_routing_provider()
from
#ifdef MODULE_RPL
` so that other routing protocols can use it too.
2014-12-17 02:09:09 -08:00
Ludwig Ortmann
e7f6f640f6
Merge pull request #2060 from OlegHahm/periph_rtc
...
drivers: Adapt old platforms to periph rtc
2014-12-16 18:56:59 +01:00
Oleg Hahm
498edb1854
cc430: lpc2387: switch to new periph/rtc interface
...
Removes the old interface.
2014-12-16 17:02:44 +01:00
Ludwig Ortmann
ca36e9c4a7
sys/shell: refactor _parse_time
2014-12-16 16:15:17 +01:00
Ludwig Ortmann
3729789dc3
sys/shell: use more common libc calls
...
use strtol instead of sscanf
use plain printf instead of asctime
2014-12-16 16:08:49 +01:00
Ludwig Ortmann
4942882949
sys/shell: rewrite rtc command for periph/rtc
2014-12-16 16:07:01 +01:00
Oleg Hahm
e64ab2aed5
Merge pull request #2024 from OlegHahm/ccnl_802154
...
ccn-lite: fixes for working with IEEE 802.15.4 radios
2014-12-16 11:03:20 +01:00
Oleg Hahm
1bd4b1b407
ccnl: convert C++ comments into C style comments
2014-12-16 09:35:46 +01:00
Oleg Hahm
ee386a4778
ccn: add line breaks if limit was exceeded
2014-12-16 09:35:44 +01:00
Oleg Hahm
5cf625fc03
ccnl: adapt for 802154 devices
2014-12-16 09:34:56 +01:00
Ludwig Ortmann
68ca082dcc
sixlowpan: handle malloc error
...
The return value of malloc wasn't checked before, resulting in
possibly undefined behavior.
2014-12-14 11:32:30 +01:00