kushalsingh007
3dbe4cd8af
Reducing the scope of variable after running static code analyser.
...
- Part of fix for issue number 480 (variableScope)
- Suppression of warnings that are not needed.
2015-03-10 22:03:18 +05:30
Joakim Gebart
bda0b999bd
Merge pull request #2522 from cgundogan/rpl_prefix_info
...
rpl: implement basic prefix information option for DIOs
2015-03-10 14:00:01 +01:00
Joakim Gebart
0bc3ff5b19
rpl: Send DAOs for adding /128 routes (host-only) to the parent instead of /16
2015-03-10 12:35:09 +01:00
Oleg Hahm
c1fe7f0095
ccnl: correct debug output
2015-03-05 16:27:37 +01:00
Lotte Steenbrink
1793eb7ec8
Merge pull request #2450 from authmillenon/netreg/api/pointer-based
...
RFC: netreg: move to pointer-based API
2015-03-04 15:33:15 +01:00
Martine Lenders
ec5f686cd0
netreg: move to pointer-based API
...
Moving to a pointer-based API simplifies a lot, since there is no need
for an internal pool of entries anymore. Therefore, a lot of
organizational overhead and some restrictions (e.g. an upper limit on
entries) are dropped.
The entries can be stored in the stack of the respective thread.
2015-03-04 13:17:00 +01:00
Joakim Gebart
70cf054b5e
sixlowpan: Broadcast message when neighbour not found in cache.
2015-03-04 08:47:10 +01:00
Oleg Hahm
a846409a55
Merge pull request #2523 from gebart/pr/lowpan-eui-short-addr-local
...
sixlowpan: Handle short hardware addresses correctly
2015-03-04 02:38:40 +01:00
haukepetersen
b6ca321270
net/ng_pktbuf: added missing #inlcude <stdio.h>
2015-03-03 22:12:16 +01:00
Cenk Gündoğan
d6242360da
net_if: proper u/l-bit inversion for short addresses
2015-03-03 20:03:54 +01:00
Joakim Gebart
2aa031e7c7
sixlowpan: Set U/L bit in short address to local.
2015-03-03 19:56:11 +01:00
Joakim Gebart
4520d31d3d
net-if: Set U/L bit in short address to local.
2015-03-03 19:56:11 +01:00
Cenk Gündoğan
c60450df4c
rpl: implement basic prefix information option for DIOs
2015-03-03 19:36:14 +01:00
Martine Lenders
714c912a88
Merge pull request #2519 from haukepetersen/ng_netapi_fixes
...
net/ng_netapi: fixed implementation
2015-03-03 18:17:40 +01:00
Hauke Petersen
e7466b1dad
Merge pull request #2513 from gebart/pr/udp-delete-unused-csum-func
...
udp: Delete unused udp_csum function.
2015-03-03 18:08:52 +01:00
Hauke Petersen
45ce082ad6
net/ng_netapi: fixed implementation
...
- renamed opt variable in _get_set
- fixed msg type MACRO names
2015-03-02 18:44:33 +01:00
Johann Fischer
90ab40657a
sys/net/network_layer/sixlowpan/lowpan.c: reduce scope of debug variable
2015-03-02 18:42:38 +01:00
Joakim Gebart
824c0a3daf
udp: Delete unused udp_csum function.
...
udp_csum is never referenced anywhere in the tree, not even in a header file.
2015-03-02 12:32:02 +01:00
Joakim Gebart
726bdf9d7b
Merge pull request #2512 from cgundogan/ip_d_addr_unused
...
ip: use d_addr instead of s_addr when setting the destaddr
2015-03-02 12:23:11 +01:00
Cenk Gündoğan
c3fc24700c
rpl: use d_addr instead of s_addr when setting the destaddr
2015-03-02 10:33:45 +01:00
Cenk Gündoğan
3832fc57f5
Merge pull request #2496 from gebart/pr/6lowpan-print-addr
...
sixlowpan: Properly print source address when ENABLE_DEBUG
2015-03-02 08:21:42 +01:00
Joakim Gebart
dcebfe55a4
Merge pull request #2491 from cgundogan/rpl_use_all_rpl_nodes_addr
...
rpl: use the all-RPL-nodes multicast address
2015-02-28 11:08:09 +01:00
Martine Lenders
bafafe7b8a
Merge pull request #2497 from gebart/pr/lowpan-eui64-inv-local-bit
...
sixlowpan: Invert local/universal bit in EUI-64 when forming IPv6 Interface Identifiers.
2015-02-27 09:34:46 +01:00
Joakim Gebart
578eb38c38
sixlowpan: Properly print source address when ENABLE_DEBUG
2015-02-26 19:22:07 +01:00
Joakim Gebart
db59de6c2e
sixlowpan: Refactor DAC/DAM decoding to match SAC/SAM implementation.
2015-02-26 13:53:07 +01:00
Joakim Gebart
9933a431e3
sixlowpan: Refactor SAC/SAM decoding.
2015-02-26 12:19:30 +01:00
Joakim Gebart
ff6f8ff82b
sixlowpan: Invert local/universal bit in EUI-64 when forming IPv6 Interface Identifiers.
2015-02-26 09:59:28 +01:00
Joakim Gebart
1eee289cb4
rpl: Make addr_str static
2015-02-26 09:56:52 +01:00
Cenk Gündoğan
1d4d3fa1c1
rpl: use the all-RPL-nodes multicast address
2015-02-25 20:33:13 +01:00
Fabian Nack
d9480cadfc
sys - nhdp: Add nhdp impl
2015-02-24 11:50:58 +01:00
Cenk Gündoğan
d6e8e57d1f
rpl: merge storing/non-storing to reduce the amount of redundant code
2015-02-21 15:36:28 +01:00
Cenk Gündoğan
fbf3296ca5
Merge pull request #2462 from BytesGalore/rpl_fix_hardfault_on_no_ocp
...
sys/net/routing/rpl: catch hardfault when OCP from DIO is not supported
2015-02-21 13:32:01 +01:00
Oleg Hahm
8ad299882c
Merge pull request #2191 from cgundogan/rpl_remove_send_mutex
...
rpl: remove send mutex
2015-02-21 13:30:09 +01:00
Martine Lenders
dad4e8d5df
Merge pull request #2433 from authmillenon/ng_ipv6_addr/feat/initial
...
ng_ipv6_addr: initial import
2015-02-20 19:27:17 +01:00
Martine Lenders
ff36abb2cf
ng_ipv6_addr: initial import
...
The motivation behind this module is to allow for address handling
functions where they, but not the full IPv6 functionality might be
needed. This new version of the IPv6 address data type utilizes the
byteorder.h header to enforce network byte-order on its members.
2015-02-20 17:40:26 +01:00
BytesGalore
9e0ccc395a
sys/net/routing/rpl: catch hardfault when OCP from DIO is not supported
2015-02-19 19:05:27 +01:00
Martine Lenders
41f60aca4c
pktbuf: port to use ng_ version
2015-02-19 13:51:27 +01:00
BytesGalore
5a0eba2b1e
sys/net/routing/rpl: apply correct byte order for RPL messages
2015-02-17 20:41:11 +01:00
Martine Lenders
c601b72ba7
ng_netapi: fix documentation
2015-02-13 12:42:24 +01:00
Martine Lenders
c80c04d6ed
netreg: Initial import
2015-02-12 16:13:38 +01:00
Johann Fischer
2c703e5732
Merge pull request #2434 from jfischer-phytec-iot/fix@recv_ieee802154_frame
...
Fix packet processing in mac layer.
2015-02-11 16:12:08 +01:00
Martine Lenders
b208371163
Merge pull request #2417 from authmillenon/netif/feat/initial
...
netif: Initial import of ng_* version
2015-02-11 12:41:54 +01:00
Johann Fischer
ce423816af
sys/net/network_layer/sixlowpan/mac.c: add missing p->processing--;
2015-02-11 11:57:46 +01:00
Martine Lenders
cb74094edd
pktqueue: adapt to change in pkt.h
2015-02-11 11:01:33 +01:00
Martine Lenders
7317097db2
pkt: simplify API
2015-02-11 11:01:33 +01:00
Martine Lenders
894cd964f9
netif: Initial import of ng_* version
2015-02-11 10:52:51 +01:00
Lotte Steenbrink
52d51a781a
Merge pull request #2419 from BytesGalore/lowpan_release_mutex_on_unknown_iphc
...
sys/net/sixlowpan: prevent deadlock when no IPHC context is recognized
2015-02-10 14:46:35 +01:00
BytesGalore
c7eea4d0d5
sys/net/sixlowpan: change to release lowpan.c::lowpan_context_mutex
when no context is recognized
2015-02-10 12:27:56 +01:00
Hauke Petersen
87e2b6db50
ng_net: added new version of NETAPI
2015-02-10 11:34:56 +01:00
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.
2015-02-08 22:07:19 +01:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
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
2015-02-05 19:17:51 +01:00
Cenk Gündoğan
13e7bbccfc
rpl: wrong length for DAO options
2015-02-03 11:47:07 +01:00
Cenk Gündoğan
c14217c68e
rpl: introduce constants for PREFIX_INFO length with/without RPL_OPT_LEN
2015-02-03 10:41:28 +01:00
Cenk Gündoğan
26095013a1
rpl: introduce constants for DODAG_CONF length with and without RPL_OPT_LEN
2015-02-03 10:41:27 +01:00
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.
2015-02-03 10:41:27 +01:00
Cenk Gündoğan
eb202ffe6d
rpl: remove unsused warning
2015-02-02 12:54:58 +01:00
Cenk Gündoğan
f3c6ef7e66
rpl: remove common globals by prefixing with static
2015-02-02 12:54:58 +01:00
Oleg Hahm
6715bccf5b
Merge pull request #2190 from cgundogan/rpl_new_parent_dodag_assignment
...
rpl: wrong dodag assignment to parent
2015-01-29 11:24:38 +01:00
Cenk Gündoğan
993f7cc7c6
rpl: remove rpl_send_mutex
...
This PR is based on #2155 .
Since RPL/Trickle is only using one thread in #2155 , the send mutex becomes
obsolete and can be removed safely.
2015-01-27 12:35:41 +01:00
Joakim Gebart
f71f8322d9
Merge pull request #2348 from gebart/pr/fno-common-fixes1
...
Removing (some) common globals, working towards #2346
2015-01-26 09:11:10 +01:00
Joakim Gebart
3f4478e2bb
sixlowpan: Reduce scope on some globals in ip.c
2015-01-23 19:46:26 +01:00
Joakim Gebart
c5e1683a8c
rpl: Make ipv6_buf local.
2015-01-23 19:46:26 +01:00
Joakim Gebart
526a84093b
rpl: Remove extra definition of rpl_process_pid.
2015-01-23 19:46:26 +01:00
Joakim Gebart
6a810fe989
sys/net/routing: reduce scope of globals in etx_beaconing.c
2015-01-23 18:01:28 +01:00
Joakim Gebart
cd248f89f0
sixlowpan: reduce scope of globals in mac.c
2015-01-23 14:04:59 +01:00
haukepetersen
df9dabfa7d
net/udp: cleaned up header and documentation
2015-01-22 14:23:03 +01:00
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
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
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
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
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
Cenk Gündoğan
aca1ade01c
rpl: cleanup, changing structdefs into typedefs
2014-12-26 21:13:33 +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
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
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
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
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
Ludwig Ortmann
5e6d5ab522
sixlowpan: remove redundant assignment
2014-12-14 11:32:30 +01:00