Commit Graph

1542 Commits (bf730c1c60d9b25b71b1ae53dc53ce2c1c4c1983)

Author SHA1 Message Date
Martine Lenders fe29514597 Merge pull request #2411 from cgundogan/ip_static_addr_str
ip: make addr_str static
9 years ago
Ludwig Ortmann dd2da2fb71 Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
Use `__restrict` instead of `restrict`
9 years ago
Cenk Gündoğan 4347039e88 ip: make addr_str static
When setting the `ENABLE_DEBUG` flag to *1* in ip.c,
the **rpl_udp** example won't compile, because the variable `addr_str`
is also defined in **rpl_udp.h** as extern.
Prefixing `addr_str` with `static` in ip.c solves this problem.
9 years ago
Martine Lenders 498313a23f doc: Add mail address where it is missing 9 years ago
Cenk Gündoğan 3ff5231ffd sys: restrict => __restrict 9 years ago
Martine Lenders 0eb2d78dda doc: use my real name 9 years ago
BytesGalore 4b189b6e58 rpl: added configurable RPL MOP on compile time
- e.g. `make RPL_MOP=RPL_MOP_NON_STORING_MODE`
     - changed the MOP defines to have `RPL_MOP_*` prefix
9 years ago
Christian Mehlis f69a5ae1f6 Merge pull request #2374 from cgundogan/bloom_doc_bytes_bits
sys/bloom: changed doc from bytes -> bits
9 years ago
Cenk Gündoğan 13e7bbccfc rpl: wrong length for DAO options 9 years ago
Cenk Gündoğan c14217c68e rpl: introduce constants for PREFIX_INFO length with/without RPL_OPT_LEN 9 years ago
Cenk Gündoğan 26095013a1 rpl: introduce constants for DODAG_CONF length with and without RPL_OPT_LEN 9 years ago
Cenk Gündoğan 432688accb rpl: wrong length of DIO options
Currently, the DIO options `dodag conf` and `prefix info` are off by two
bytes in their `length` field. The RFC states, that the length field
should not include the option `type` field and the `length` field (two bytes).

For Prefix Info Option: Option Length: 30 (RFC 6550, P.61)
For Dodag Conf  Option: Option Length: 14 (RFC 6550, P.52)

Wireshark complains about DIOs as malformed packets, otherwise.
Can be reproduced by running the rpl_udp example and logging the DIOs
via wireshark.
9 years ago
Cenk Gündoğan eb202ffe6d rpl: remove unsused warning 9 years ago
Cenk Gündoğan f3c6ef7e66 rpl: remove common globals by prefixing with static 9 years ago
Oleg Hahm 5792f37e87 Merge pull request #2367 from x3ro/fix-orphaned-debug-outputs
Fix misc errors that occur with ENABLE_DEBUG
9 years ago
Lucas Jenss 8e758d7463 sys: Misc errors that occur w/ ENABLE_DEBUG fixed
I enabled debug output in all files to poke around
and there were some errors (seemingly) due to code
changes that were not tested with debug enabled. This
commits tries to fix these issues.
9 years ago
Cenk Gündoğan 5c77530da4 sys/bloom: changed doc from bytes -> bits 9 years ago
Oleg Hahm 6715bccf5b Merge pull request #2190 from cgundogan/rpl_new_parent_dodag_assignment
rpl: wrong dodag assignment to parent
9 years ago
BytesGalore 714ee38355 boards: core: cpu: drivers: sys: added missing header guards 9 years ago
Joakim Gebart f71f8322d9 Merge pull request #2348 from gebart/pr/fno-common-fixes1
Removing (some) common globals, working towards #2346
9 years ago
Joakim Gebart 14b4418e6b transceiver: Reduce scope of globals in transceiever.c. 9 years ago
Joakim Gebart 3f4478e2bb sixlowpan: Reduce scope on some globals in ip.c 9 years ago
Joakim Gebart c5e1683a8c rpl: Make ipv6_buf local. 9 years ago
Joakim Gebart 526a84093b rpl: Remove extra definition of rpl_process_pid. 9 years ago
Joakim Gebart 6a810fe989 sys/net/routing: reduce scope of globals in etx_beaconing.c 9 years ago
Joakim Gebart cd248f89f0 sixlowpan: reduce scope of globals in mac.c 9 years ago
haukepetersen df9dabfa7d net/udp: cleaned up header and documentation 9 years ago
Ludwig Ortmann 3d2b328288 sys/vtimer: bypass weak attribute missing on OSX 9 years ago
Oleg Hahm f6a415a3d9 Merge pull request #2306 from cgundogan/rpl_no_macros_for_shell
rpl: wrong macro definitions in rpl shell commands
9 years ago
Martine Lenders cfed38ae12 Merge pull request #2287 from authmillenon/pktqueue/api/use-pkt
pktqueue: adapt to pkt_t
9 years ago
Cenk Gündoğan 7095241555 rpl: wrong macro definitions in rpl shell commands
It appears that the values defined for RPL_NODE_IS_ROOT and
RPL_MAX_ROUTING_ENTRIES in the Makefile via CFLAGS are not recognized in
sc_rpl.c (my guess: they are only visible to the rpl module?)
Therefore RPL_MAX_ROUTING_ENTRIES is always set to 0, no matter how the
binary is compiled, thus resulting in the output "No routing table
available" for root nodes.
9 years ago
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.
9 years ago
Martine Lenders c9e2f5bdce pktqueue: adapt to pkt_t 9 years ago
Ludwig Ortmann 8676a1972d sys/timex: suppress passedByValue warnings 9 years ago
Oleg Hahm 2d874af904 Merge pull request #2158 from authmillenon/pkt/feat/initial-import
pkt: Initial import
9 years ago
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.
9 years ago
Martin Lenders 96502e2fd4 sys: net: Initial import of a basic MAC protocol layer 9 years ago
Oleg Hahm 34908f11a9 Merge pull request #2257 from cgundogan/rpl_fix_srh_for_storing_mode
rpl: node-to-node communication broken (rpl_udp)
9 years ago
Oleg Hahm a31bc97e1c Merge pull request #2253 from cgundogan/rpl_srh_remove_relay_debugf
rpl: move msg_send_receive outside of DEBUGF
9 years ago
Ludwig Ortmann 154a6b5d22 Merge pull request #2268 from cgundogan/rpl_cleanup_no_routing_table
rpl: remove routing table dependent code
9 years ago
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
9 years ago
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)
9 years ago
Oleg Hahm 4a615e21ef Merge pull request #1717 from BytesGalore/base64_encoder_decoder
base64 encoding/decoding module
9 years ago
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.
9 years ago
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.
9 years ago
Cenk Gündoğan da12f62751 rpl: remove return value completely as it is not really used, gives
`unsused` warning otherwise
9 years ago
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.
9 years ago
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
9 years ago
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.
9 years ago
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.
9 years ago