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

1764 Commits

Author SHA1 Message Date
Cenk Gündoğan
75546fcf6c destiny: set ack bit for (almost) all segments after syn
The current implementation does not set the ack bit
for outgoing data segments and the fin segment.

However, RFC793 states that all segments
should have an ack bit set in order to present a valid
ack nr. in outgoing segments.

Currently, data segments and acknowledgement segments
are distinguished by the existence of their ack bit.
With the new assumption, that both of these types of
segments need an ack bit set, I had to change several
parts of the current implementation to make this
decision by inspecting the payload size.

destiny: added parens
2014-06-24 10:44:11 +02:00
Cenk Gündoğan
400286168f destiny: wireshark revealed wrong seq/ack nr. in tcp handshake
Capturing the tcp handshake with wireshark revealed that the
sequence and ack nrs. are not rfc compliant.
I did the changes based on
http://tools.ietf.org/html/rfc793#page-52 to http://tools.ietf.org/html/rfc793#page-72
2014-06-24 10:21:23 +02:00
Oleg Hahm
eedc16815c Merge pull request #891 from OlegHahm/rpl_debug
net: some debug code
2014-06-22 19:27:18 +02:00
René Kijewski
840c0f0a57 make: detect their module name automatically
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
Christian Mehlis
997dcd7e88 Merge pull request #1302 from cgundogan/fix_tcp_header_data_offset
destiny: using a bit field for tcp_header->data_offset is more convenient
2014-06-14 15:40:49 +02:00
Christian Mehlis
50a07d9874 Merge pull request #1280 from cgundogan/fix_send_tcp_error_check
destiny: fixed condition for error handling of send_tcp in destiny_socket_send
2014-06-12 09:55:37 +02:00
Oleg Hahm
f6cd96b023 Merge pull request #1300 from cgundogan/fix_wrong_byte_order_ipv6_length
destiny: change byte order of ipv6_header->length
2014-06-09 22:01:41 +02:00
Cenk Gündoğan
ecf47b1f48 destiny: using a bit field for tcp_header->data_offset is more convenient
In the current implementation the data offset is coded into an uint8_t.
Of this uint8_t only 3 bits apply for the data offset.
The remaining bits represent reserved flags for future use.
However, a proper bit masking is forgotten in order
to obtain the data offset part of this uint8_t.

Therefore, defining this uint8_t as a bit field allows a more convenient
method of access.
2014-06-09 19:37:37 +02:00
Cenk Gündoğan
97da23051a destiny: change byte order of ipv6_header->length
When accessing the length field of an ipv6_header a byte order switch (host -> network) is necessary.
Otherwise, it breaks calculations or the checksum and other tcp related computations.
Furthermore, when writing to ipv6_header->length it is important to switch this
from host byte order to network byte order.
2014-06-08 20:50:45 +02:00
Cenk Gündoğan
7584ffe887 destiny: fixed condition for error handling
send_tcp returns either the length of the sent data,
or -1, if an error was detected.

The current implementation checks for != 1.
This results in executing the error case, although
there was semantically no error returned from send_tcp.
2014-06-05 14:17:48 +02:00
Cenk Gündoğan
43b7a393b1 destiny: wireshark compliant tcp flags
This enum is also used to set the tcp flags within a tcp header.
With the current values in this enum, wireshark is not able to
recognize the tcp segments as their actual tcp type,
and thus odd messages in wireshark appear.

destiny: reusing tcp flags for combinations
2014-06-05 13:15:00 +02:00
Cenk Gündoğan
f41fe7bb04 destiny: segfault due to dereferencing nullpointer
get_socket(i) returns NULL, when no specific socket is found.
Without an appropriate check for NULL, the current state
of the code leads to a segfault.

destiny: added parens

destiny: continuing the loop makes more sense than returning at first sight of NULL
2014-06-03 22:48:01 +02:00
Oleg Hahm
4298918ba7 rpl: debug: use DEBUGF where necessary 2014-06-03 15:08:50 +02:00
Oleg Hahm
fe788838ef net: IPv6: RPL: more debug output 2014-06-03 15:04:53 +02:00
Oleg Hahm
4f62ef4547 some minor fixes and debugging 2014-06-03 15:04:50 +02:00
Oleg Hahm
e87e6bedca you can never have enough debugging in RPL 2014-06-03 15:01:48 +02:00
Martin Lenders
2362623490 Fix trailing whitespaces
Fixes #1138
2014-05-26 14:54:23 +02:00
Oleg Hahm
6dbeacd2ce documentation: fixed sixlowpan doxygen filename 2014-05-22 13:01:44 +02:00
Oleg Hahm
f8168c86d3 documentation: fixed organization of 6LoWPAN doxygen 2014-05-22 13:01:37 +02:00
Oleg Hahm
ce73fa56e2 documentation: moved network documentation to top level 2014-05-22 13:01:36 +02:00
Oleg Hahm
ef5ec344fd core: prefix API functions correctly
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Jan S
ba907471f3 fixed printf specifiers 2014-05-15 17:42:57 +02:00
Thomas Eichinger
7a031e5669 net: handle macro redefinitions for OS X
undefine macros and reorder header includes to get rid of system
defined macros on OS X

fixes #1165
2014-05-14 19:43:58 +02:00
René Kijewski
9a9caf2c68 Exterminate old-style function definitions 2014-05-12 21:57:09 +02:00
Benjamin Valentin
8ec8b3f100 net/ip: fix wrong double negative in the comments 2014-05-12 17:28:05 +02:00
Benjamin Valentin
143b6560da net/ip: apply workaround to fix IP forwarding
When sending a packet a workaround is applied when ndp_get_ll_address() returns NULL as is's not implemented properly yet.
The same should happen when a packet is forwarded as it's dropped otherwise.
2014-05-12 17:01:36 +02:00
Christian Mehlis
f1ce664dcf Merge pull request #1116 from Kijewski/ccnl-warnings
ccnl: remove type warning
2014-05-07 21:20:23 +02:00
René Kijewski
b8419d48d9 ccnl: remove type warning 2014-05-07 06:17:11 +02:00
Christian Mehlis
433e40c76e ccnl: extra debug statements 2014-05-02 14:27:34 +02:00
Christian Mehlis
1e9b9ed0bd Merge pull request #917 from fabianbrandt/rpl_config_split
Splitting rpl_structs.h into structs and config part
2014-04-25 11:42:27 +02:00
Fabian Brandt
85d8cd8e0a Four macros changed to static inline type functions and style fixes 2014-04-25 11:40:22 +02:00
Christian Mehlis
f04007e15f Merge pull request #918 from fabianbrandt/etx_now_routing
ETX-functionality is now part of a common routing-module
2014-04-25 11:33:02 +02:00
Fabian Brandt
ef5eaff1bc ETX-functionality is now part of a common routing-module 2014-04-25 11:30:28 +02:00
Fabian Brandt
2634b3c400 Splitting rpl_structs.h into structs and config part 2014-04-25 11:04:52 +02:00
Christian Mehlis
dcabf10fcb ccnl: appserver: remove unused flag 2014-04-25 09:13:01 +02:00
Christian Mehlis
13b38a46ac ccnl: don't include c files
this fixes a build problem on
debian and ubuntu based systems
2014-04-25 01:48:54 +02:00
Christian Mehlis
206e6688a7 ccnl: find bogus looping content 2014-04-19 21:09:12 +02:00
Christian Mehlis
c2846a07b9 ccnl: use default transceiver 2014-04-18 11:45:53 +02:00
Martine Lenders
0e4d2909a6 Merge pull request #830 from authmillenon/fix_test_pnet
tests: Fix test_pnet
2014-04-17 01:40:27 +02:00
Martin Lenders
4e1da23817 Fix test_pnet
fixes #829
2014-04-16 17:44:46 +02:00
Christian Mehlis
65bd8f03c1 ccnl: remove useless compare
This compare is useless for CCN lite in RIOT, because
a face has always an interface with index >= 0
2014-04-14 00:08:44 +02:00
Christian Mehlis
987f2576e0 ccnl: LRU is the replacement strategy, rename variable to express this 2014-04-11 11:53:03 +02:00
Martin Lenders
9ee7956e53 Fix length of fragmentation buffer in 6LoWPAN 2014-04-09 16:07:46 +02:00
Martine Lenders
139da0a5b4 Merge pull request #873 from OlegHahm/on_link_check
net: sixlowpan: removing possible invalid check
2014-04-09 16:02:56 +02:00
Martin Lenders
d9fdbca9de Fix dereferencing of type-punned pointer
Fixes #897
2014-04-05 20:42:08 +02:00
Martine Lenders
f9d8f1fc75 Merge pull request #798 from Kijewski/usemodule-includes
Make: Add include paths automatically for USEMODULES
2014-04-01 17:25:48 +02:00
Martine Lenders
951cc0cdc2 Merge pull request #928 from authmillenon/ndp-nce-remove
Make neighbor cache remove function public
2014-04-01 16:39:06 +02:00
Ludwig Ortmann
aa6246cd49 Merge pull request #937 from mehlis/ccnl-dead-code
ccnl: remove dead code
2014-03-29 20:37:31 +01:00
René Kijewski
de29e4184c Add include paths automatocally for USEMODULES
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.

But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
2014-03-29 16:27:55 +01:00
Christian Mehlis
51faf0b239 ccnl: remove dead code 2014-03-28 21:27:55 +01:00
Martin Lenders
69903e4cb8 Make neighbor cache remove function public 2014-03-28 10:20:08 +01:00
Benjamin Valentin
113fd6a9cf icmp.c: remove empty else clause 2014-03-28 10:06:44 +01:00
Martine Lenders
03b49e849b Merge pull request #875 from OlegHahm/ip_forwarding
net: IPv6: use forwarding table entry when routing
2014-03-24 15:39:24 +01:00
Martine Lenders
ddebe8ed1a Merge pull request #876 from OlegHahm/iphc_decompression_shift
net: 6lowpan: added missing hdr position shift
2014-03-24 15:36:44 +01:00
Martine Lenders
e64c7c1739 Merge pull request #668 from benpicco/remove_includes
remove unnecessary INCLUDES
2014-03-24 15:20:15 +01:00
Benjamin Valentin
5f57db794b remove unnecessary INCLUDES from net_help 2014-03-24 11:19:55 +01:00
Benjamin Valentin
167bbd6793 remove unnecessary INCLUDES from ccn_lite 2014-03-24 11:19:28 +01:00
Oleg Hahm
b559459a35 Merge pull request #898 from OlegHahm/rename_tcp_socket_enums
net: destiny: renamed internal TCP enums
2014-03-20 18:17:51 +01:00
René Kijewski
d6ad19b410 Fix issue #896 2014-03-19 14:56:35 +01:00
Oleg Hahm
b23e157b54 Merge pull request #792 from OlegHahm/etx_fixes
rpl: moved debugging statements from header to c file
2014-03-19 10:23:09 +01:00
Oleg Hahm
5bcbb09b73 net: destiny: fixed typo and further cleanups 2014-03-18 12:03:03 +01:00
Oleg Hahm
5687553411 cosmetics 2014-03-18 10:08:30 +01:00
Oleg Hahm
5e4a9c0e94 net: destiny: renamed internal TCP enums
Rationale: LISTEN was used in MSP430-Lib for the USART.
2014-03-17 19:38:10 +01:00
Oleg Hahm
153f2f9e95 notify lowpan_transfer when IP packet is not routable
The IP process silently discarded an unroutable packet without replying to the 6LoWPAN layer, causing that thread to starve.
2014-03-10 19:58:52 +01:00
Oleg Hahm
3945a06851 added missing hdr position shift 2014-03-09 19:14:18 +00:00
Oleg Hahm
05ebad4380 use forwarding table entry when routing
So far the entry was looked up, but ignored in the case where the packet
has to be forwarded.
2014-03-09 19:03:59 +00:00
Oleg Hahm
72e1c667a7 removing possible invalid check
Checking for a link local address to determine if a node is on-link is
probably not a valid assumption in most wireless networks.
2014-03-09 18:51:48 +00:00
Oleg Hahm
a6bc8cba28 Merge pull request #843 from authmillenon/fix-lowpan-iphc
sixlowpan: Fix source address IPHC
2014-03-04 13:40:00 +00:00
Christian Mehlis
1ec20ce2f1 Merge pull request #832 from mehlis/ccn-lite-follow-up-11
ccnl: added documentation and proper event handling for dropped packets
2014-03-03 17:25:23 +01:00
Martin Lenders
332485e466 Fix source address IPHC 2014-03-03 17:16:29 +01:00
Oleg Hahm
9255c9cbef removed obsolete buffer 2014-03-02 23:34:07 +00:00
Oleg Hahm
3e4fa5f012 removed error causing packed attribute in net_if 2014-03-02 23:34:07 +00:00
Christian Mehlis
d0025f6652 ccnl: added documentation and proper event handling for dropped packets 2014-03-02 19:13:45 +01:00
Oleg Hahm
6fc1f5843b RPL byte order issues 2014-03-01 19:24:18 +01:00
Oleg Hahm
e8e424f8cd enhanced RPL debugging 2014-03-01 19:24:16 +01:00
Martin Lenders
bdced318bc Eliminate side effects in icmpv6_csum and make it public 2014-03-01 15:08:19 +01:00
Oleg Hahm
2c76f99f04 nbr_cache_auto_rem does not need an extra thread 2014-03-01 15:08:19 +01:00
Martin Lenders
6c9578c028 Add sixlowpan to auto_init 2014-03-01 15:08:19 +01:00
Martin Lenders
00acab920b Let IPv6 and ICMP use new 6LoWPAN layer (+fixes) 2014-03-01 15:08:18 +01:00
Oleg Hahm
e2e62596be Byte order and rpl problems 2014-03-01 15:08:18 +01:00
Martin Lenders
c9e8adc414 Use net_if in 6LoWPAN layer 2014-03-01 15:08:18 +01:00
Martin Lenders
108989b65d Use net_if in 6LoWPAN MAC layer 2014-03-01 14:44:21 +01:00
Martin Lenders
470d8745e9 Add capability to set and get variable default hop limit 2014-03-01 14:44:21 +01:00
Martin Lenders
78b5f2ae5d Decouple ICMPv6 from 6LoWPAN 2014-03-01 14:44:21 +01:00
Martin Lenders
4e39cbdd54 Put 6LoWPAN border router in its own module 2014-03-01 14:44:21 +01:00
Martin Lenders
90e946eb49 Fix ieee802154_frame module 2014-03-01 14:44:21 +01:00
Martin Lenders
bc4befb4e9 Fix coding conventions for sixlowpan and rpl module 2014-03-01 14:44:21 +01:00
Martin Lenders
848ac70f90 Implement net_if module 2014-02-28 23:13:22 +01:00
Martin Lenders
fa11d82443 Allow IEEE 802.15.4 addressing types for transceiver
IEEE 802.15.4 has two addressing modes: 16-bit short and the device's
EUI-64. Currently RIOT supports only sending of packets with 16-bit
short addresses via the transceiver interface. This patch allows at
least for the radio chips that support IEEE 802.15.4 to let the
application/upper layer decide which addressing mode to use.

Upper layer implementation will be implemented in follow-up PR to #460
2014-02-28 23:13:04 +01:00
Martin Lenders
3225683d2f Include kernel.h for inet_pton for MSP-430 2014-02-28 00:14:54 +01:00
Oleg Hahm
1dc3b5910e amendment - to be squashed 2014-02-26 19:07:02 +01:00
Oleg Hahm
28513fce9a moved debugging statements from header to c file
Additionally, declaring the stacks as static.
2014-02-26 18:16:40 +01:00
Christian Mehlis
8556403f8f Merge pull request #680 from benpicco/fix_crash
set up message queues for the IP and UDP thread
2014-02-24 15:10:19 +01:00
Christian Mehlis
3e980184a8 Merge pull request #748 from authmillenon/fix-possible-null-pointer-errors
bughunt: Fix possible null pointer dereference
2014-02-20 21:41:50 +01:00
Christian Mehlis
48f23aa43d Merge pull request #734 from mehlis/native-c++-fixes
C++ compiler warnings (native, core)
2014-02-20 10:27:37 +01:00
Martin Lenders
4119e15e6b Fix possible null pointer dereference 2014-02-20 02:29:33 +01:00
Christian Mehlis
a21c8d41e1 ccnl: fix 'no break' warning in switch 2014-02-19 23:23:54 +01:00
Christian Mehlis
87d8e4f99c enable nonces in interests 2014-02-19 23:23:53 +01:00
Christian Mehlis
9fa0844f3f added nonce timeout 2014-02-19 23:23:53 +01:00
Christian Mehlis
0309fecc19 fix warning: invalid suffix on literal
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Christian Mehlis
6578669e46 Merge pull request #718 from Kijewski/issue-693
"Exterminate `} else {`"
2014-02-18 12:42:54 +01:00
Christian Mehlis
cb9c5d00de repace project by application in documentation 2014-02-18 12:28:32 +01:00
Christian Mehlis
980bd2e7a4 ccnl: fix memory leak on CS error 2014-02-18 12:17:53 +01:00
René Kijewski
2349d0806e "Exterminate } else {" 2014-02-16 23:29:47 +01:00
René Kijewski
6dea183eac Merge pull request #721 from mehlis/fix-avaiable
ccnl: fix two typos
2014-02-16 23:14:44 +01:00
Christian Mehlis
fcabb3be2a ccnl: fix two typos 2014-02-16 23:12:51 +01:00
Christian Mehlis
8897c67677 ccnl: fix ageing timeout 2014-02-16 22:45:32 +01:00
Christian Mehlis
38529e3296 replace all endless for loops by while 2014-02-14 17:47:33 +01:00
Benjamin Valentin
4068133f3d also add msg_queue for UDP
All other layers in the network stack use a msg_queue to not drop messages, which in this context represent packages.
This finally fixes the random crashes when UDP network traffic is present. Turns out RIOT is not handling lost messages well.
2014-02-13 07:07:46 +01:00
Benjamin Valentin
95d3aae48c actually use msg_queue in ip.c
msg_queue is defined but never used, hook it up so IP packets get queued instead of dropped when there is more than one.
change the name to ip_msg_queue to avoid naming conflicts.
2014-02-13 07:07:07 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +01:00
Oleg Hahm
0e734f5c38 Merge pull request #663 from authmillenon/rm-addr-conv-dep
Remove destiny header dependency from net_help
2014-02-11 13:41:21 +01:00
Christian Mehlis
bfadc1a18e Merge pull request #640 from benpicco/fixes
newlib doesn't support the z modifier
2014-02-10 20:33:42 +01:00
Christian Mehlis
14cb81d914 Merge pull request #639 from mehlis/remaining-license
added licenses to some files
2014-02-10 10:18:01 +01:00
Benjamin Valentin
2e26bb7214 newlib doesn't support the z modifier
on msba2 this will print

    Initializing transport layer packages. Size of socket_type: zu
2014-02-08 21:31:13 +01:00
Christian Mehlis
7ccf0e0858 Merge pull request #643 from N8Fear/fix_memleak_ccn-lite-ctrl
fix memory leaks in sys/net/ccn_lite/util/ccn-lite-ctrl.c
2014-02-08 12:57:21 +01:00
Christian Mehlis
8076d1c3a6 Merge pull request #647 from benpicco/patch-1
proper line breaks in payload debug output
2014-02-08 12:23:28 +01:00
Christian Mehlis
050b714e78 added licenses to some files 2014-02-08 12:20:28 +01:00
Martin Lenders
e5df49dc5e Remove destiny header dependency from net_help 2014-02-08 00:31:02 +01:00
benpicco
86b2df0ca6 proper line breaks in payload debug output
I guess the idea was to make a new line after every 16 elements, not every element except for every 16th
2014-02-07 09:05:28 +01:00
Hinnerk van Bruinehsen
1722b936b8 fix memory leaks in sys/net/ccn_lite/util/ccn-lite-ctrl.c 2014-02-07 00:15:26 +01:00
Oleg Hahm
70747d8bb4 streamlined driver include pathes 2014-02-05 18:56:47 +01:00
Martin Lenders
df598772d3 Fix net_help include path 2014-02-01 20:00:56 +01:00
Martin Lenders
333a19db03 Add Oliver Gesch as author of his files and license header 2014-01-31 17:01:51 +01:00
Oleg Hahm
1bca52495e Merge pull request #545 from OlegHahm/problematic_stack_sizes
replaced stack sizes in etx_beaconing by variables
2014-01-29 15:01:49 -08:00
Oleg Hahm
9991991f92 replaced stack sizes in etx_beaconing by variables
resolves #356
2014-01-29 23:54:30 +01:00
Christian Mehlis
97133b9dfb use one consistent mail address in all places 2014-01-27 20:46:45 +01:00
Oleg Hahm
8f738930c0 Merge pull request #556 from mehlis/remove-math
math.h: remove unneeded math.h includes
2014-01-24 07:12:32 -08:00
Christian Mehlis
f2f36f8179 math.h: remove unneeded math.h includes 2014-01-24 15:41:30 +01:00
Christian Mehlis
cb0bb80d0c ccnl: dynamic memory - client module 2014-01-23 15:30:43 +01:00
Christian Mehlis
607a5f27c3 ccnl: dynamic memory - control module 2014-01-23 15:30:43 +01:00
Christian Mehlis
2ae4755469 ccnl: dynamic memory - appserver module 2014-01-23 15:30:43 +01:00
Christian Mehlis
fa87339083 ccnl: adapt doc to current code 2014-01-21 11:40:58 +01:00
Oleg Hahm
638bb4ce51 Merge pull request #516 from mehlis/rpl-fixes
first set of rpl demo related fixes
2014-01-21 02:28:41 -08:00
Christian Mehlis
348971e4db trickle: replace call to pow (base of 2) 2014-01-20 16:43:01 +01:00
Christian Mehlis
5c3381b70a tcp_timer: fix 'remove without use' behavior 2014-01-18 01:20:40 +01:00
Christian Mehlis
860b499fb6 lowpan: fix wrong printf usage 2014-01-18 01:18:37 +01:00
Christian Mehlis
8539517c11 icmp: fix warning of unused parameter 2014-01-18 01:17:31 +01:00
Christian Mehlis
a4f1dc464a demo: fix printf handling 2014-01-18 01:15:29 +01:00
Christian Mehlis
b6734ce2cb socket: fix warning of void pointer arithmetic 2014-01-18 01:12:38 +01:00
Oleg Hahm
420dc8953b Merge pull request #504 from mehlis/ipv6-send-return-value
ipv6_sendto: return the success
2014-01-16 08:04:00 -08:00
Oleg Hahm
3bf55a227d Merge pull request #457 from mehlis/vtimer-now-followup
fix usage of vtimer_now
2014-01-15 08:51:53 -08:00
Christian Mehlis
8cfab9d014 ipv6_sendto: return the success 2014-01-14 07:29:28 +01:00
Christian Mehlis
b157304481 ccnl: added 'content is dup' debug message 2014-01-11 18:28:32 +01:00
Christian Mehlis
2e1b0b513e ccnl: data is not a string 2014-01-11 18:18:25 +01:00
Oleg Hahm
70c59c3f4b size of msg_queue must be power of two 2014-01-09 18:19:57 +01:00
Christian Mehlis
a19ff87d21 socket.c: fix usage of timex_t 2014-01-09 16:36:40 +01:00
Christian Mehlis
e28481b1b1 tcp_timer.c: fix usage of timex_t 2014-01-09 16:36:40 +01:00
Christian Mehlis
0934d10e4b destiny.c: fix usage of timex_t 2014-01-09 16:36:40 +01:00
Christian Mehlis
31849f0771 lowpan.c: fix usage of timex_t 2014-01-09 16:36:40 +01:00
Christian Mehlis
aa159fa4fe flowcontrol.c: fix usage of timex_t 2014-01-09 16:36:40 +01:00
Christian Mehlis
a59bc0d265 added missing include 2014-01-07 23:23:57 +01:00
Christian Mehlis
9d2fac1e59 removed useless include 2014-01-07 23:23:45 +01:00
Oleg Hahm
48a53373a6 repaired includes for ccn_lite 2014-01-05 16:11:08 +01:00
Oleg Hahm
c7d985d371 removed redundant include pathes from Makefiles 2014-01-05 16:11:08 +01:00
Oleg Hahm
593ee623b6 simplify and unify include pathes
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
2014-01-05 16:11:07 +01:00
Christian Mehlis
e0f3c73d14 fix include of crypto 2013-12-20 18:43:43 +01:00
Oleg Hahm
7642dd0f1d moved net_help into crosslayer subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
59e55c354c moved sixlowpan into network_layer subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
2f20e9db51 moved protocol-multiplex into link_layer subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
38be829901 moved ieee802154 into link_layer subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
acd304e1cc moved RPL into routing subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
a7d3092a4e moved destiny into transport_layer subfolder 2013-12-19 19:13:26 +01:00
Oleg Hahm
903ec54a43 making include directives consistent 2013-12-19 15:31:37 +01:00
Christian Mehlis
2a9aac7f0b Merge pull request #423 from OlegHahm/fix_warnings
Fix warnings
2013-12-18 12:02:37 -08:00
Christian Mehlis
25e22f7ac1 fix memory leak introduced in 4ee51d 2013-12-18 19:50:04 +01:00
Christian Mehlis
84258fa112 implement NACK for local requesters 2013-12-18 19:33:33 +01:00
Christian Mehlis
429b97c45b clean up ccnls main loop 2013-12-18 19:33:33 +01:00
Christian Mehlis
72eec00f62 timeout interest 2013-12-18 19:33:33 +01:00
Christian Mehlis
9b1b472a2a moved ccnl include folder in net/include 2013-12-18 19:33:33 +01:00
Christian Mehlis
51daa16018 get rid of not working defines 2013-12-18 19:33:33 +01:00
Christian Mehlis
ff9f557e21 clean up ccnl_get_face_or_create 2013-12-18 19:33:33 +01:00
Christian Mehlis
32e0ce5b12 fix local address detection 2013-12-18 19:33:33 +01:00
Christian Mehlis
3768d43d15 fix broadcast identifier 2013-12-18 19:33:33 +01:00
Christian Mehlis
0a803a97dd implement packet statistics 2013-12-18 19:33:33 +01:00
Christian Mehlis
dc727b43a7 make interest retransmit timeout configurable 2013-12-18 19:33:33 +01:00
Christian Mehlis
79c79870e6 implement hwtimer based timeout 2013-12-18 19:33:33 +01:00
Christian Mehlis
2f7fd0b35c convert all time related datastructure to struct timeval 2013-12-18 19:33:33 +01:00
Christian Mehlis
af8e36b3e0 implement dynamic forward entries 2013-12-18 19:33:33 +01:00
Martin Lenders
41da8481dd Merge pull request #421 from OlegHahm/revert_tcp_optional
Revert tcp optional
2013-12-17 05:45:30 -08:00
Hauke Petersen
2df82017a8 Fixed doxygen inconsistensies in sys 2013-12-16 15:09:18 +01:00
Hauke Petersen
edcabf7cb6 Fixed a lot of comments by removing tabs and correcting format. 2013-12-16 14:00:33 +01:00
Hauke Petersen
3785fe956b Fixed doxygen comments, focused on file headers and group definitions 2013-12-16 14:00:24 +01:00
Oleg Hahm
02e553a534 fixed some warnings 2013-12-13 19:31:47 +01:00
Oleg Hahm
6b7c88ce1b fixed signedness and size of some data types in sixlowpan 2013-12-13 19:17:30 +01:00
Oleg Hahm
1cadf58ec8 pass border router flag to initialization function 2013-12-13 18:56:42 +01:00
Oleg Hahm
eb26edb794 moved definition of tcp_timer_stack to the correct file 2013-12-13 18:44:48 +01:00
Oleg Hahm
38e87aaa1c Revert "make TCP in destiny optional"
This reverts commit 6955a2f791. Though the
general idea makes sense, the implementation should be done in a more
elaborated way.
2013-12-13 18:37:54 +01:00
Oleg Hahm
9ee8bb2b18 Revert "pointer handling in lowpan notifier was wrong"
This reverts commit 5ccf653164.
2013-12-11 15:50:10 +01:00
Oleg Hahm
7f0d71a418 Merge pull request #363 from OlegHahm/msg_fix_notifier
fixed lowpan and ipv6 notifier
2013-12-11 06:27:40 -08:00
Oleg Hahm
2f5530083b Merge pull request #350 from OlegHahm/ipv6_csum
IPv6 Upper-Layer Checksums
2013-12-08 16:11:26 -08:00
Oleg Hahm
d0e6eb89a9 Merge pull request #347 from OlegHahm/destiny_fixes
UDP reception, stack sizes and typos
2013-12-04 02:29:08 -08:00
Oleg Hahm
6f7992dd12 Merge pull request #383 from OlegHahm/rpl_fixes
Small RPL fixes
2013-12-04 01:24:18 -08:00
Christian Mehlis
359001e170 Merge pull request #384 from OlegHahm/sixlowpan_fixes
printf is used in sixlowpan mac layer, stack needs to be adjusted
2013-12-03 08:59:02 -08:00
Christian Mehlis
00956e9ba5 Merge pull request #351 from OlegHahm/tcp_optional
make TCP in destiny optional
2013-12-03 02:19:44 -08:00
Christian Mehlis
afc6325305 fix function declaration isn't a prototype 2013-11-29 21:56:27 +01:00
Christian Mehlis
25f6d7f1db enable timeout events 2013-11-29 21:47:09 +01:00
Christian Mehlis
b74ee26941 fix: remove oldest dynamic entry in content store 2013-11-29 21:47:09 +01:00
Christian Mehlis
229a131924 make max_cache_entries a parameter 2013-11-29 21:47:08 +01:00
Christian Mehlis
b675629a42 tune CCNL_RIOT_CHUNK_SIZE
this constant is used for two test cases:

1. populate + interest /riot/text
  -> static content has this=90 bytes size

2. appserver + interest /riot/appserver/test
  -> dynamic content is created with exact
     CCNL_RIOT_CHUNK_SIZE bytes
  -> CCNL_RIOT_CHUNK_SIZE can be any value the
     transceiver can handle
2013-11-29 21:47:08 +01:00
Christian Mehlis
4ee51da5dd get rid of static buffer
this buffer was used for two types of outgoing packets:
  1. local msg
    - msg can be big, there is is no apriori boundary -> use dynamic
      memory instead
  2. transceiver msg
    - no need to copy msg in this buffer -> transceiver send is blocking
2013-11-29 21:47:08 +01:00
Oleg Hahm
8d9d43fa8c Merge pull request #361 from LudwigOrtmann/rpl_find_preferred_parent
fix rpl_find_preferred_parent
2013-11-27 16:33:16 -08:00
Oleg Hahm
9817043ada Merge pull request #375 from LudwigOrtmann/license_header_fix
fix grammar in license header
2013-11-26 10:55:41 -08:00
Oleg Hahm
1d4ea91b82 Merge pull request #366 from OlegHahm/rpl_debug
tiny debug improvement for RPL
2013-11-26 10:51:48 -08:00
Oleg Hahm
24314a2167 Merge pull request #358 from OlegHahm/fix_warnings
Fix warnings
2013-11-25 17:10:55 -08:00
Oleg Hahm
3aaa340a8e Merge pull request #353 from OlegHahm/rpl_send
removed superfluous parameter in rpl_send()
2013-11-25 17:09:54 -08:00
Oleg Hahm
3a05de1ed9 check if preferred parent was set before comparing 2013-11-25 18:51:47 +01:00
Oleg Hahm
cf9309029c remove vtimer object before (re)scheduling it 2013-11-25 18:47:58 +01:00
Oleg Hahm
f00432805d use local packet_length variable in sendto
Having a global packet_length variable doesn't seem to be the best
idea. To avoid trouble, a scope local variable should be preferred.
2013-11-25 18:46:57 +01:00
Oleg Hahm
0eb3ca5ef1 printf is used in sixlowpan mac layer, stack needs to be adjusted 2013-11-25 18:44:36 +01:00
Oleg Hahm
de2b71221f initializes RPL instances 2013-11-25 18:41:23 +01:00
Oleg Hahm
fce4f556a8 set received parent lifetime when creating a new parent 2013-11-25 18:38:28 +01:00
Oleg Hahm
28624aa37b another NTOHS was missing... 2013-11-25 18:00:11 +01:00
Oleg Hahm
5ccf653164 pointer handling in lowpan notifier was wrong 2013-11-25 17:54:41 +01:00
Oleg Hahm
160c3f1794 notify registered threads about _all_ received IP packets
(Before notifications were only sent for IP packets that were not
forwarded.)
2013-11-25 17:53:13 +01:00
Ludwig Ortmann
d6c213fb47 fix grammar in license header 2013-11-23 13:11:56 +01:00
Ludwig Ortmann
336449d8bb fix rpl_find_preferred_parent 2013-11-23 11:25:55 +01:00
LudwigOrtmann
c383ec4600 Merge pull request #359 from LudwigOrtmann/recv_rpl_dio
fix recv_rpl_dio, missing return, refactor
2013-11-23 02:05:29 -08:00
Ludwig Ortmann
6939d6f07b unbrick send_DAO by checking my_dodag 2013-11-23 10:55:12 +01:00
Oleg Hahm
0e9b6cc1a9 Merge pull request #371 from OlegHahm/rpl_null_pointer
RPL null pointer handling
2013-11-22 18:47:39 -08:00
Oleg Hahm
9b5bf95924 removed unused len parameter for borderrouter demultiplex() 2013-11-23 03:45:32 +01:00
Oleg Hahm
59483627d0 removed unused parameter of internal get_udp_socket() 2013-11-23 03:45:32 +01:00
Oleg Hahm
1f50d91332 making the pedantic gcc happy 2013-11-23 03:45:26 +01:00
Oleg Hahm
2aa6bcdab4 filled up IPv6 netmask correctly 2013-11-23 03:40:07 +01:00
Oleg Hahm
7c95a1d44c debug output when joining a dodag 2013-11-23 00:06:09 +01:00
Oleg Hahm
b129838dc4 remove all vtimers before (re)scheduliing it 2013-11-22 14:34:34 +01:00
Ludwig Ortmann
7c7cab554e fix recv_rpl_dio, missing return, refactor 2013-11-22 10:56:13 +01:00
Oleg Hahm
d48b3fc2d1 provide a default next hop (preferred parent) 2013-11-22 02:31:08 +01:00
Oleg Hahm
f52e954916 catch some null pointers in RPL 2013-11-22 02:11:27 +01:00
Oleg Hahm
4e5b60e403 make use of the IPv6 upper-layer checksum calculation 2013-11-21 21:16:26 +01:00
Oleg Hahm
aaccd37a2f calculate RPL checksum right before sending the ICMP packet 2013-11-21 21:16:25 +01:00
Oleg Hahm
cce3432220 added IPv6 upper-layer checksum calculation 2013-11-21 21:16:21 +01:00
Oleg Hahm
c16a3ed511 tiny debug improvement for RPL 2013-11-21 20:47:44 +01:00
Oleg Hahm
079d654104 set message type for lowpan and ipv6 notifier 2013-11-21 20:21:55 +01:00
Oleg Hahm
5a2f7264f8 use a meaningful stacksize define 2013-11-21 00:21:26 +01:00
Oleg Hahm
9230fa0550 informational output as debug 2013-11-21 00:21:01 +01:00
Oleg Hahm
49ff2ae393 dao_counter wasn't initialized 2013-11-21 00:19:56 +01:00
Oleg Hahm
a11d546663 removed superfluous parameter in rpl_send() 2013-11-21 00:13:59 +01:00
Oleg Hahm
479443eae0 moved stack from header to C file 2013-11-21 00:06:49 +01:00
Oleg Hahm
561531f64c fix copy&paste typo 2013-11-21 00:04:41 +01:00
Oleg Hahm
f7da9e7b47 udp_packet_handler uses printf, stack must be bigger 2013-11-21 00:00:29 +01:00
Oleg Hahm
6955a2f791 make TCP in destiny optional 2013-11-20 23:54:51 +01:00
Oleg Hahm
9c28b3f5a2 declared some verbose output as debug 2013-11-20 19:14:13 +01:00
Oleg Hahm
b3162f86e7 convert into host byte order in UDP reception 2013-11-20 15:14:34 +01:00
Oleg Hahm
74f93c4992 additional debug output in lowpan and transceiver
* debug for lowpan_sendto()
 * print destination address for all transceivers
2013-11-20 10:46:43 +01:00
Oleg Hahm
05eb5a8ba6 use correct length for UDP checksum calculation 2013-11-20 02:22:50 +01:00
Oleg Hahm
6804164a35 Merge pull request #341 from OlegHahm/rpl_fixes
made stacks for RPL threads static and using pre-defined sizes
2013-11-19 13:57:20 -08:00
Oleg Hahm
279a11cde7 Merge pull request #307 from OlegHahm/ieee802154_frame_recv
fixed byte order in reception of IEEE802.15.4 frames
2013-11-19 12:26:03 -08:00
Oleg Hahm
5cfd0aa60e made stacks for RPL threads static and using pre-defined sizes 2013-11-19 21:23:52 +01:00
Oleg Hahm
19f4f45445 added some debug output for the network stack 2013-11-14 10:46:21 +01:00
Oleg Hahm
6377022ab3 doxygen improvements for ccn_lite 2013-11-06 18:51:59 -08:00
Oleg Hahm
3b94bef32a Merge pull request #282 from authmillenon/net_module_refactor
Refactor net module to one include directory
2013-11-06 18:26:31 -08:00
Oleg Hahm
18d2dc1c59 Merge pull request #287 from mehlis/ccn-lite-to-upstream
import ccn lite
2013-11-06 15:41:14 -08:00
Christian Mehlis
8ae7750263 import ccn lite 2013-11-07 00:37:38 +01:00
Martin Lenders
d47907ed1a Refactor net module to one include directory 2013-11-06 13:04:23 +01:00
Oleg Hahm
a7a97e92c3 fixed byte order in reception of IEEE802.15.4 frames according to the fixed sending in f6c37b0b4f 2013-11-05 17:46:16 -08:00
Oleg Hahm
9fd82e9d01 Merge pull request #302 from OlegHahm/radio_stack_size
increased stack size for mac layer packet handling
2013-11-04 11:57:34 -08:00
Oleg Hahm
a4ff881a27 Merge pull request #274 from benpicco/routing
[RFC] allow applications to register a function to provide routing information
2013-11-04 11:54:26 -08:00
Oleg Hahm
d687d82827 increased stack size for mac layer packet handling 2013-11-04 09:27:53 -08:00
Martin Lenders
a9bbcb0868 Fix sixlowpan/icmp.h
size_t in function definition needs stddef.h include
2013-11-04 11:08:37 +01:00
Martin Lenders
05ececa079 Merge pull request #259 from OlegHahm/ieee802154_frame_byteorder
fixed byte order in network stack
2013-11-03 05:40:03 -08:00
Oleg Hahm
cc3301b45f Merge pull request #285 from hper/rpl_fixes
fixed length for DAO ACK
2013-10-29 12:30:17 -07:00
Oleg Hahm
1b4a9a336f Merge pull request #263 from OlegHahm/sixlowpan_fixes
sixlowpan address initialization
2013-10-29 02:49:39 -07:00
Heiner
ca0fe0153f fixed length for DAO ACK 2013-10-29 09:41:30 +01:00
Oleg Hahm
95bd2e6b8a fixed sixlowpan address initialization
* prevent that IPv6 address gets overwritten when configuring as adhoc router
 * additional debug information about assigned IPv6 addresses
2013-10-29 00:01:37 +01:00
Oleg Hahm
0ad9d82d8b Merge pull request #218 from mehlis/semaphore
posix: add semaphore
2013-10-28 15:13:08 -07:00
Benjamin Valentin
cf63e1cefc add ipv6_iface_set_routing_provider Allow an application to register a function that decides what to do with IP packets that are not destined for the node. RIOT will call the registered function to forward packets according to the applications routing table. 2013-10-27 13:53:02 +01:00
Martin Lenders
128125b44e Some fixes to destiny
* fixed broken destiny types header
 * added TCP flags to corresponding header
 * removed TCP_HC struct from tcp.h
2013-10-25 23:06:50 +02:00
Oleg Hahm
a94d4a0b46 correct byte order for UDP length field 2013-10-25 17:46:18 +02:00
Oleg Hahm
9bd8e35c54 correct byte order for IPv6 length field 2013-10-25 17:45:53 +02:00
Oleg Hahm
f6c37b0b4f fixed byte order for ieee802.15.4 frame 2013-10-25 17:45:53 +02:00
Christian Mehlis
9b84d62357 remove sixlowpans own semaphore and use new riot semaphore in flowcontrol 2013-10-25 14:45:26 +02:00
Martin Lenders
f537e19b26 Move L4 packet headers to destiny/types.h 2013-10-25 14:28:17 +02:00
Martin Lenders
6b999dc7bf Enforce coding conventions in destiny via astyle 2013-10-25 14:28:17 +02:00
Martin Lenders
4825ec21b9 Order includes in destiny 2013-10-25 14:28:16 +02:00
Martin Lenders
94217d03e8 Move msg_help to destiny 2013-10-25 14:28:16 +02:00
Martin Lenders
75064eb630 Add documentation for destiny/socket.h 2013-10-25 14:28:16 +02:00
Martin Lenders
3149e83826 Refactor destiny/socket.h 2013-10-25 14:28:16 +02:00
Martin Lenders
b223a8baf0 Add Documentation destiny/in.h 2013-10-25 14:28:16 +02:00
Martin Lenders
e899970ecd Refactor destiny/in.h 2013-10-25 14:28:16 +02:00
Martin Lenders
446be54a24 Add Documentation for destiny.h 2013-10-25 14:28:16 +02:00
Martin Lenders
de33fcd31b Refactor destiny.h 2013-10-25 14:28:16 +02:00
Oleg Hahm
ea184b59b1 print IPv6 addresses in host byte order 2013-10-23 21:16:15 +02:00
Oleg Hahm
31d99e3084 set stacksizes to default values 2013-10-23 21:15:45 +02:00
Oleg Hahm
c142b40a5b network stack related includes 2013-10-16 15:24:41 +02:00
Martin
b7bd836fe5 fixup changed DEFAULT_OCP to 0 (of0) 2013-10-15 15:51:01 +02:00
Martin
957f15cbdf fixup changed RPL_ROOT_RANK to 256 2013-10-15 15:51:01 +02:00
Martin
a03e9f8ed4 fixup added missing initializer brackets 2013-10-15 15:51:01 +02:00
Oleg Hahm
e8ceaeeb79 fixed includes and some data types for RPL 2013-10-15 15:50:54 +02:00
Martin
c37dce2d31 fixup payload offset calculation for fragmented packets 2013-10-07 16:07:20 +02:00
Christian Mehlis
05acbe0419 Merge pull request #220 from OlegHahm/sixlowerror_relabeling
renamed SUCCESS constant in sixlowerror
2013-10-02 08:43:23 -07:00
Martin Lenders
038e03ad3e Enforce naming convention for ieee802154 2013-09-30 13:21:54 +02:00
Martin Lenders
db60557c47 Remove definition of unimplemented ieee802154 function 2013-09-30 13:20:46 +02:00
Martin Lenders
e843727ed4 Relocate ieee802154_frame.h 2013-09-30 13:20:46 +02:00
Oleg Hahm
852d3977ef Merge pull request #221 from BytesGalore/sixlopan_fixes
Sixlowpan fixes
2013-09-26 14:11:59 -07:00
Martin
f7c41cfe8e applied coding convention and changed error printout to DEBUG(...) 2013-09-24 07:35:50 +02:00
Oleg Hahm
8feaac3856 renamed SUCCESS constant in sixlowerror 2013-09-23 18:01:23 +02:00
Martin
a6d86fc7f9 added debug switch for printing 802154_fcf_frame 2013-09-23 15:09:16 +02:00
Martin
adf1e7003d fix IPv6 link local address determination 2013-09-23 14:56:15 +02:00
Martin
dea48c84c1 fix prevent possible access above array boardes 2013-09-23 12:41:39 +02:00
Martin
04aa86f8ec fix prevent access to unallocated buffer 2013-09-23 12:32:37 +02:00
Oleg Hahm
a6a96c7110 added missing malloc includes 2013-09-12 16:09:18 +02:00
Oleg Hahm
b26153dba9 included cpu.h in destiny to provide ssize_t 2013-09-12 14:33:58 +02:00
Oleg Hahm
6d130a45ac updated license headers
(No code changes!)
2013-08-16 10:20:23 +02:00
Oleg Hahm
7890c924cd updated ICMPv6 types from I-D to RFC values 2013-08-15 20:29:38 +02:00
Oleg Hahm
b38aad06f4 added missing FCS to IEEE802.15.4 adaptation layer 2013-08-15 20:25:20 +02:00
Martin Lenders
1411a0df0f Merge pull request #143 from authmillenon/astyle_anti_confusion
Some coding style fixes in sixlowpan
2013-08-15 04:24:00 -07:00
authmillenon
b4f47236bd Revert some changes f***ed up by astyle 2013-08-15 12:25:35 +02:00
authmillenon
3624727002 Fix so astyle does not confuse casts for ands 2013-08-15 11:27:30 +02:00
Oleg Hahm
54a01dfd98 added cc110x_ng to include path for sixlowpan and net_help 2013-08-15 10:38:24 +02:00
Oleg Hahm
87e0f7a70a append include path in destiny Makefile 2013-08-15 10:31:54 +02:00
authmillenon
e2c201f2e0 Merge branch 'remove_carriage_returns' of github.com:authmillenon/RIOT into authmillenon-remove_carriage_returns
Conflicts:
	sys/net/destiny/in.h
	sys/net/destiny/socket.h
	sys/net/destiny/tcp.h
	sys/net/destiny/tcp_hc.c
	sys/net/destiny/tcp_hc.h
	sys/net/destiny/tcp_timer.c
	sys/net/destiny/udp.c
	sys/net/destiny/udp.h
2013-08-15 10:30:02 +02:00
authmillenon
a3b754b662 Remove carriage returns
Git for windows handles those by itself
2013-08-15 10:17:15 +02:00
authmillenon
f53efdcb6f Fixup for coding convention 2013-08-15 09:48:53 +02:00
authmillenon
f0982dad3e Document NDP API header 2013-08-15 09:47:32 +02:00
authmillenon
55fa9a0910 Document ICMP API header 2013-08-15 09:46:03 +02:00
authmillenon
0b9671de18 Fix some API operationst 2013-08-14 21:48:36 +02:00
authmillenon
5e38764778 Fix more typos 2013-08-14 20:32:09 +02:00
authmillenon
0be66fa5e2 Fix sending slot stack size 2013-08-14 20:23:52 +02:00
authmillenon
b4a7878144 Fixup stack sizes
Fixup stack sizes according to PR #139
2013-08-14 18:23:57 +02:00
authmillenon
5244a190a9 Put parantheses around longer return statements. 2013-08-14 17:45:14 +02:00
authmillenon
dce4640af8 Define bitmask for 6LoWPAN fragmentation header parsing 2013-08-14 17:36:37 +02:00
authmillenon
d556858570 Remove non-sensical bit-wise AND 2013-08-14 17:35:30 +02:00
authmillenon
15290c897f Make NCE type and status types publicly available 2013-08-14 17:06:21 +02:00
authmillenon
a8d5a83cf2 Fix typos 2013-08-14 16:38:18 +02:00
authmillenon
ce21dbdc73 Don't note address operators as bit-wise and.
Fix 3fddddd3be/sys/net/rpl/rpl.c (L75)
2013-08-14 16:30:40 +02:00
authmillenon
c3fecbe68e Check if source address is not illegal source address.
Check if source address is not multicast or unique local unicast (for
non-local destinations.

Fixes issue #78
2013-08-14 16:21:01 +02:00
authmillenon
7966be880a Use new mutex API 2013-08-14 16:19:35 +02:00
authmillenon
3fddddd3be Refactor icmp.h 2013-08-14 09:51:56 +02:00
authmillenon
0e1baea34e Refactor ip.h 2013-08-14 04:04:13 +02:00
authmillenon
b1d6e7d639 Refactor border.h 2013-08-14 01:36:22 +02:00
authmillenon
202d651a0d Refactor lowpan.h 2013-08-14 01:36:22 +02:00
authmillenon
8f1f532d32 Refactor mac.h 2013-08-14 01:36:13 +02:00
Oleg Hahm
b68ee50671 added callback for sixlowpan 2013-08-14 00:33:12 +02:00
Oleg Hahm
c47f5a459e added callback registration for sixlowip 2013-08-14 00:33:12 +02:00
Martin Lenders
1bd1b4347b Make usage of IPHC configurable. 2013-08-14 00:33:12 +02:00
authmillenon
5b54ef66e2 Update documentation of ipv6.h 2013-08-14 00:33:12 +02:00
authmillenon
89a673d029 Add documentation group for 6LoWPAN module 2013-08-14 00:33:12 +02:00
authmillenon
0399e26f17 Make sixlowpan module more coding conventions compliant 2013-08-14 00:33:12 +02:00
authmillenon
661b03b88a Move error codes to public includes 2013-08-14 00:33:12 +02:00
Martin Lenders
b944a48da9 Set up new directory structure 2013-08-14 00:33:11 +02:00
authmillenon
9117bb2b76 Implement simple echo request/reply 2013-08-14 00:33:11 +02:00
Oleg Hahm
d7a297957f removed unmaintained micro mesh routing code 2013-08-12 22:38:18 +02:00
LudwigOrtmann
9b68030b8f Merge pull request #98 from OlegHahm/802154_debugging
added debug output for sending IEEE802.15.4 frames
2013-08-08 07:44:51 -07:00
LudwigOrtmann
07c7e8ccd3 Merge pull request #90 from OlegHahm/milestone_1_0_fixes
Milestone 1 0 fixes
2013-08-08 06:29:22 -07:00
Oleg Hahm
fdb415c6ab some prototype fixes in RPL 2013-08-04 04:47:22 +02:00
Oleg Hahm
564eb457ad fixing for #79: relocating rpl folder 2013-08-04 04:46:17 +02:00
Oleg Hahm
e11ef8d0ac Merge pull request #80 from authmillenon/sixlowpan_refactor
Refactoring and Fixing of sixlowpan module
2013-08-03 19:21:27 -07:00
Oleg Hahm
39a4dc684e fixes for #62: eliminate unused parameter warnings
NOTE: this commit introduces a kernel API change for mutex_unlock
2013-08-04 04:10:33 +02:00
Oleg Hahm
21c4bb6aa5 fixed #18 for ICMPv6 packets 2013-08-04 03:17:41 +02:00
Oleg Hahm
956f0e8656 fix for #87, replacing - with _ in module protocol_multiplex 2013-08-04 03:17:31 +02:00
Oleg Hahm
f51a97c7e2 added debug output for sending IEEE802.15.4 frames 2013-08-04 03:05:09 +02:00
Martin Lenders
529333636e Prepare refactoring 2013-07-29 16:00:42 +02:00
Oleg Hahm
22c668529d Merge branch 'oleg-master' into mymaster
Conflicts:
	cpu/Makefile.include
	cpu/arm_common/arm_cpu.c
2013-07-29 01:36:24 +02:00
Oleg Hahm
f7ecc704a4 fixed includes and include pathes 2013-07-29 01:24:02 +02:00
Oleg Hahm
19e4034ace Merge branch 'thomas-mc1322x'
Conflicts:
	Makefile.modules
	core/kernel_init.c
	core/thread.c
	cpu/arm_common/arm_cpu.c
	cpu/arm_common/syscalls.c
	cpu/lpc_common/hwtimer_cpu.c
	cpu/lpc_common/iap.c
	sys/include/transceiver.h
	sys/net/sixlowpan/sixlowip.c
	sys/net/sixlowpan/sixlowmac.c
	sys/net/sixlowpan/sixlowmac.h
	sys/net/sixlowpan/sixlowpan.c
	sys/transceiver/Makefile
	sys/transceiver/transceiver.c
2013-07-24 23:22:11 +02:00
Oleg Hahm
cce8f46e49 experimental sixlowpan fixes to eliminate multiple definitions 2013-07-24 22:23:21 +02:00
Thomas Eichinger
4bc89bd458 added fixes for compilation for mc1322x 2013-07-24 15:50:16 +02:00
Oleg Hahm
0ff8973ae7 Merge pull request #76 from benpicco/posix_compat
add typedefs to socket.h to improve POSIX compatibility
2013-07-24 01:31:40 -07:00
Benjamin Valentin
18ef96422f add typedefs to socket.h to improve POSIX compliance 2013-07-24 02:52:24 +02:00
Oleg Hahm
ca75d3c36c fixed some includes 2013-07-24 00:44:28 +02:00
Oleg Hahm
599e266b55 Revert "removed redefined ENABLE_DEBUG"
This reverts commit 69c526f44d.

Instead of removing ENABLE_DEBUG, define it as zero and replacing the
ifdef preprocessor commands by a simple #if
2013-07-24 00:38:43 +02:00
Oleg Hahm
615ddb1eaa some buffer adjustments 2013-07-24 00:02:44 +02:00
Ludwig Ortmann
b29dcc7e89 remove superfluous, commented out puts 2013-07-16 13:50:41 +02:00
Ludwig Ortmann
5c93ff4f65 change puts/printf to DEBUG 2013-07-16 13:50:11 +02:00
Ludwig Ortmann
71ca139be4 translate/fix comments 2013-07-16 13:41:23 +02:00
Oleg Hahm
c989d2147e collected all ICMP type definitions in one header 2013-07-05 09:38:38 +02:00
Oleg Hahm
267053042e moved buffer initialization from header to c files
fixed file format
2013-07-05 09:37:34 +02:00
Oliver Hahm
bf85e4902c Merge branch 'rpl' of ssh://ukleos.org:2222/home/git/ukleos
Conflicts:
	board/msba2-common/tools/src/control_2xxx.c
	drivers/cc110x/cc1100-interface.h
	projects/test_rpl/main.c
	sys/include/vtimer.h
	sys/net/sixlowpan/rpl/Jamfile
	sys/net/sixlowpan/rpl/objective_functions.c
	sys/net/sixlowpan/rpl/objective_functions.h
	sys/net/sixlowpan/rpl/of0.c
	sys/net/sixlowpan/rpl/of0.h
	sys/net/sixlowpan/rpl/rpl.c
	sys/net/sixlowpan/rpl/rpl_dodag.c
	sys/net/sixlowpan/rpl/rpl_structs.h
	sys/net/sixlowpan/rpl/trickle.c
	sys/net/sixlowpan/sixlowmac.c
	sys/vtimer/vtimer.c
2013-06-28 17:53:21 +02:00
Oliver Hahm
57cc002c67 Merge branch 'wsn430'
Conflicts:
	core/include/queue.h
	core/queue.c
	cpu/msp430-common/hwtimer_cpu.c
	cpu/msp430x16x/hwtimer_msp430.c
	sys/lib/hashtable.c
	sys/net/ieee802154/ieee802154_frame.c
	sys/shell/commands/sc_cc110x_ng.c
	sys/transceiver/transceiver.c
	sys/vtimer/vtimer.c
2013-06-25 15:33:40 +02:00
Oliver Hahm
c8bee9e554 fixed coding style (space after most keywords) 2013-06-24 22:37:35 +02:00
Oliver Hahm
79ff4f1cfc updated sixlowpan configuration and minor coding style 2013-06-24 22:12:04 +02:00
Oliver Hahm
f2ec1009af fixed some struct issues (broken by cc fixes) 2013-06-24 14:11:30 +02:00
Oliver Hahm
c1ec60eaf6 * removed rtc from sixlowpan
* fixed some struct issues
2013-06-24 14:10:53 +02:00
Oliver Hahm
1750d5ba0f fixed some struct issues (broken by cc fixes) 2013-06-24 14:09:33 +02:00
Oliver Hahm
d01fd9a508 final coding convention fixes 2013-06-22 17:58:19 +02:00
Oliver Hahm
5c52e1ce2e coding conventions for most of system libraries 2013-06-22 05:11:53 +02:00
Christian Mehlis
608fb5582b fix printf patterns 2013-06-16 14:13:38 +02:00
Christian Mehlis
1fcc5c8ed8 fix bad vtimer_now call 2013-06-16 14:13:02 +02:00
Christian Mehlis
d4ea8664ee add missing ; 2013-06-14 20:37:39 +02:00
Christian Mehlis
5d587e34eb fix sixlowpan includes 2013-06-14 20:37:07 +02:00
Christian Mehlis
a66a193f99 fix printf pattern 2013-06-14 20:36:31 +02:00
Christian Mehlis
3ab669578c do includes the right way (for riot includes) 2013-06-14 20:33:28 +02:00
Oliver Hahm
fdd1d21e8d Merge branch 'master' into wsn430 2013-06-14 19:41:23 +02:00
Oleg
d477dca89a Merge pull request #50 from mehlis/master
remove recursive include
2013-06-13 13:10:57 -07:00
Christian Mehlis
67875ba29b fix indentation 2013-06-13 21:23:14 +02:00
Christian Mehlis
4d8783e023 use out parameter for vtimer_now 2013-06-13 10:23:47 +02:00
Martin
032ba13938 fix ICMP type is DIS 2013-06-10 17:39:11 +02:00
Martin
43255ff855 fix warnings due to unapropriate prototypes 2013-06-10 17:36:56 +02:00
Milan Babel
db1fc96ffe added driver for cc2420
also added cc2420 to transceiver and added cc2420 shell commands
2013-06-06 08:35:17 +02:00
Milan Babel
2f5ed66756 created own module for ieee802154
this is needed to include the ieee802154 in drivers without the hole sixlowpan
2013-06-06 08:35:17 +02:00
Martin Lenders
01f2cb2115 Add more destiny fixes 2013-05-22 16:57:20 +02:00
Martin Lenders
fbca6f8a30 Make include paths in destiny relative
* When included by other modules the absolute paths of destiny
   lead to problems
2013-05-22 16:27:28 +02:00
Stephan Arndt
d9c9f38c61 integrated ETX calculation with RPL, rpl messages seem to not get handled very often 2013-03-29 13:41:48 +01:00
Stephan Arndt
1fd9325d8c switched DEBUG mode off 2013-03-28 17:40:01 +01:00
Stephan Arndt
60c594b852 Deleted ETX structs in rpl_structs and added them in etx_beaconing.h
changed packet size sent to be fix and not variable
changed some array sizes if debug is enabled
2013-03-28 17:11:12 +01:00
Stephan Arndt
b22e80b806 Fixed ETX calculations 2013-03-28 15:27:30 +01:00
Stephan Arndt
7e54f7ea5f improved handling of etx-messages 2013-03-24 20:03:18 +01:00
Stephan Arndt
2ae2d85b10 changed some buffer sizes and other minimal stuff 2013-03-24 15:57:52 +01:00
Stephan Arndt
85211f8408 changed some of the ETX constants to be more easily understandable 2013-03-22 18:37:00 +01:00
Stephan Arndt
dccc377f83 Changed value for maximum candidate neighbors to 40
Replaced lots of different constants written as numbers  by proberply defined constant-variables
 Changed usage of fixed values for the hwtimer_wait in send_beacon to customizable constants
2013-03-22 17:40:36 +01:00
Stephan Arndt
c161b43d78 changed some printf statements into puts 2013-03-19 14:07:31 +01:00
Stephan Arndt
07a7f10798 changed buffer sizes for debugging 2013-03-19 14:04:23 +01:00
Stephan Arndt
5a2bc468c4 threads dont overflow anymore, still hangs at random counts of sent beacon packets 2013-03-18 19:22:07 +01:00
Benjamin Valentin
4d73d17662 add Makefiles to sys/net 2013-03-16 17:27:27 +01:00
Stephan Arndt
adfc3306ab WARNING: BROKEN COMMIT added not working etx_beaconing into rpl, added small vtimer debug changes, changed cc1100 default mode 2013-03-15 17:48:13 +01:00
Oliver Hahm
0d06e1bc18 Merge branch 'master' of github.com:RIOT-OS/RIOT 2013-03-10 16:46:46 +01:00
Oliver Hahm
7a4dec1830 * replaced new Makefile name in Makefiles 2013-03-09 23:47:21 +01:00
Oliver Hahm
5ffe5a9c27 * renamed makefiles to Makefile 2013-03-09 23:45:56 +01:00
Oleg Hahm
2ed63bd5c6 * removed outdated (and probably confusing) FeuerWhere project as an author 2013-03-08 11:30:23 +01:00
Oleg Hahm
2277b366b2 * removed outdated occurrences of (u|µ)kleos and FeuerWare 2013-03-07 20:51:26 +01:00
Oleg Hahm
bae6d13bdc * fixed fileending 2013-03-07 19:29:13 +01:00
Benjamin Valentin
c5bd1fa8f1 make sendto() and accept() interfaces conform to POSIX, doesn't change anything as addrlen is unused anyway 2013-03-07 18:08:50 +01:00
Stephan Arndt
e8256783f4 added etx_beaconing files 2013-03-03 17:47:11 +01:00
Oleg Hahm
d31ee82518 * removed legacy projects folder and Jamfiles 2013-02-27 19:08:16 +01:00
Stephan Arndt
31b65059a8 preparing for changing how parent selection/updates work in rpl, since the way it is implemented now goes against the spec 2013-02-21 18:25:35 +01:00
Stephan Arndt
644d6de364 changed rank calculation in OF0 and some other things. WARNING: this commit might break the rpl implementation for now, if a rollback is needed, choose an earlier commit than this 2013-02-21 18:23:36 +01:00
Stephan Arndt
e0a21b9ddd added comments onto structs for easier findings in RFC 2013-02-13 15:03:16 +01:00
Stephan Arndt
91b023df4b deleted fake rounting entries which had been commented out 2013-02-13 15:02:21 +01:00
Stephan Arndt
567be35fc4 startet implementation of objective function mrhof 2013-02-13 15:00:43 +01:00
Stephan Arndt
39482f7316 deleted empty files objective_functions.c/h 2013-02-13 14:59:15 +01:00
Oleg
03a2173589 Merge pull request #1 from benpicco/77d4095cf065858999ec6240945c14a33c9bfca8
Add inet_pton and inet_ntop (POSIX.1-2001)
2013-02-08 08:43:59 -08:00
Oleg Hahm
3791039974 * integrated makefiles
* fixed some prototypes
* restructured sys
2013-02-06 13:20:21 +01:00
Benjamin Valentin
77d4095cf0 fix up includes 2013-01-12 21:51:43 +01:00
Benjamin Valentin
0d8d278f35 include stdint.h 2013-01-12 21:41:00 +01:00
Benjamin Valentin
62de6c1263 add inet_ntop and inet_pton from
http://svn.apache.org/repos/asf/apr/apr/trunk/network_io/unix/
2013-01-12 21:35:37 +01:00
Stephan Arndt
812dafde77 deleted unused 'old_main' function 2012-12-04 15:12:12 +01:00
Oliver Hahm
9b961d6591 [sys net sixlowpan]
* fixed some line endings from dos to unix style
2012-11-05 16:29:11 -05:00
Eric Engel
870b10514f Changed some Parameters of RPL
Added Loop Function in rpl_test project
send DAOs regular
2012-04-07 20:30:13 +02:00
Oliver Hahm
e9cdacbf51 [projects test_rpl] [sys net sixlowpan rpl]
* removed vtimer_init from rpl_init
 * some transceiver watchdog workaround foobar
2012-03-29 16:27:20 +02:00
Oliver Hahm
7397d98f8a [projects test_rpl] [sys net sixlowpan] [sys transceiver]
* some debugging
* increased timeout
2012-03-28 17:30:59 +02:00
Eric Engel
f7368395ff only 10 DAO trys and unrecognized options now directly lead to abort 2012-03-27 22:18:35 +02:00
Eric Engel
a70a33337e RPL Finished, fixed some bugs, changed printf to puts, Use of Link Local addresses in RPL 2012-03-27 17:56:47 +02:00
Eric Engel
edbef27d29 Changed sixlowpan send buffers to any possible buffers, added some mutexes 2012-03-26 00:04:21 +02:00
Eric Engel
88e79185c4 Trickle corrections, changed some Stack sizes 2012-03-12 16:22:52 +01:00
Eric Engel
f15840da9b Only one packet sent 2012-03-06 11:08:16 +01:00
Eric Engel
6dbec3b0ae various changes 2012-03-02 20:22:22 +01:00
Oliver
d6f0e9c3dc [projects tlayer]
- adjusted thread stack sizes to more realistic value

[projects sixlowpan]
- adapted sixlowpan API change

[sys net sixlowpan]
- adjusted thread stack sizes to more realistic value

[sys net destiny]
- adjusted thread stack sizes to more realistic value
2012-03-01 02:48:22 +01:00
Eric Engel
f85d1968c4 RPL Routing finished 2012-02-26 19:30:48 +01:00
Eric Engel
f69fbfd686 rpl nearly finished, rpl_test now with shell 2012-02-22 00:50:40 +01:00
Oliver
8124389151 [sys net destiny]
- fixed a bug where the returned UDP packet length was too big
2012-02-21 02:44:11 +01:00
Oliver
9ca8afd70c [ sys net sixlowpan ]
- fixed a bug in 6LoWPAN reassembly algorithm where in a specific case a
pointer could be used although it is NULL
- removed MAC routing
- added IP routing
2012-02-20 04:25:52 +01:00
Eric Engel
e6e336c77f Now sending DAOs, added DIS handling 2012-02-16 23:23:15 +01:00
Eric Engel
d766e41996 Joined nodes now send DIOs, some minor bugfixes, routing table stubs 2012-02-14 22:22:01 +01:00
Oliver
f57e4078e5 [sys net sixlowpan]
- HACK: added simple static MESH routing on MAC layer, see
projects/tlayer/main.c for explanation and usage.
2012-02-14 21:28:51 +01:00
Oliver
5176640664 [sys net destiny]
- minor fix concerning float calculations
2012-02-14 01:56:49 +01:00
Oliver
45a41bd189 [sys net destiny]
- added dynamic calculation of round trip timeout (RTO)
2012-02-14 01:37:06 +01:00
Oliver
8a886fae25 [sys net destiny]
- fixed a bug where a retransmitted TCP ACK segment did not contain the
ACK flag

[sys net sixlowpan]
- changed sixlowpan architecture: IPV6 packets now always get stored in
sixlowpan (reassembly) buffer and are transmitted one after the other 
(FIFO) to IPV6 layer via a separate transfer thread
2012-02-13 23:31:17 +01:00
Oliver
be14d20042 [sys net destiny]
- added waiting period after sending ACK at 3-way handshake to
enable a retransmit in case of a lost packet
2012-02-12 20:06:12 +01:00
Oliver
bb580d1c4f [sys net destiny]
- fixed a bug where the tcp retransmit timer triggered even before
beeing ready to receive an ACK
- fixed a bug where MSS option was added by mistake because checking for
the appropriate flag was broken
2012-02-12 04:26:55 +01:00
Oliver
fef556dd66 [sys net destiny]
- fixed a bug where a retransmit of a payload tcp_hc packet did not have
the payload added because total_sent_bytes wasnt reset to 0 after last
transmit
2012-02-11 04:21:20 +01:00
Oliver
af34855d46 [sys net destiny]
- added handling of MSS Option for TCP (still at least 1 bug left)
2012-02-10 05:20:01 +01:00
Oliver
c94c03879e [drivers cc110x_ng]
- fixed DBG_IGNORE bugs

[sys net destiny]
- fixed a bug where UDP sockets were not closed correctly
2012-02-09 01:20:49 +01:00
Oliver
cc7f4e0a7b [sys net destiny]
- added dynamic treatment of sending data via send() > MSS
2012-02-08 04:46:54 +01:00
Oliver
eed1de6d29 [sys net destiny]
- TCP_HC: changed retransmit of payload to MOSTLY_COMPRESSED_HEADER
2012-02-07 19:41:49 +01:00
Oliver
50e745026f [sys net destiny]
- also changed byte order of tcp fragments to big endian
2012-02-07 04:39:28 +01:00
Oliver
ee34ac4375 [sys net destiny]
- fixed handling of duplicate tcp segments (tcp_hc and regular)
- few general bugfixes
2012-02-07 04:24:00 +01:00
Oliver
ec900bc5f5 [sys net destiny]
- fixed a lot of bugs in tcp header compression algorithms
2012-02-05 00:33:55 +01:00
Oliver
18db29153a [sys net destiny]
- added decompression of compressed tcp packet fragments
- still a lot of bugs left!
2012-02-03 03:11:30 +01:00
Eric Engel
6491312b98 Added trickle Algorithm 2012-02-02 21:31:28 +01:00
Oliver
7c293f82e4 [sys net destiny]
- added tcp_hc compress handling
2012-02-02 02:41:39 +01:00
Oliver
b7f5405ec7 [sys net destiny]
- code cleanup
- refactoring
2012-02-01 21:07:57 +01:00
Eric Engel
d10136aec5 [sys net sixlowpan rpl] Beim erhalt von DIO Nachrichten wird Dodags beigetreten, parents werden hinzugefügt, globale Reperatur wird getriggert 2012-01-31 19:36:26 +01:00
Oliver
1465da2e84 [projects tlayer]
- Added: Close_TCP, TCP_Performance test, UDP_Performance test

[sys net destiny]
- bugfixes
- Added: Simultaneous close, Memory protection for tcp timer thread

[sys net sixlowpan]
- Added: separate sending buffer (just a HACK workaround!)
2012-01-30 22:44:38 +01:00
Oliver
c258075aaa [sys net destiny]
- changed queued socket architecture to be consistent with normal
sockets, saving RAM
2012-01-28 16:15:09 +01:00
Oliver
628cf2b38d [sys net destiny]
- fixed some tcp sequence number bugs
- tcp window size "1" and retransmit/timeout handling should work now
2012-01-28 01:55:21 +01:00
Oliver
7f48b8d6ae [projects tlayer]
- added bidirectional TCP usage

[sys net destiny]
- added payload retransmit handling
2012-01-27 02:54:59 +01:00
Eric Engel
445fb4450f Corrected Jamfiles, no more direct call of rpl functions from sixlowip 2012-01-26 20:26:55 +01:00
Oliver
f92299c523 [sys net destiny]
- changed architecture to tcp control block struct
2012-01-25 03:38:22 +01:00
Oliver
75514e30b8 [sys net net_help]
- removed net_msg_FUNCTION ID Handling in favor of function commands

[sys net destiny]
- added TCP Connect Timeout and retry handling
2012-01-24 03:19:11 +01:00
Oliver
c55a5db84f - adjusted jam files for endless loop
- STILL error in rpl jamfile
2012-01-24 02:56:49 +01:00
Oliver Hahm
1f09cfce9e Merge branch 'master' of ssh://ukleos/home/git/ukleos 2012-01-20 17:44:24 +01:00
Oliver Hahm
b360d53577 [sys net sixlowpan]
* added missing rtc module to Jamfile
2012-01-20 17:43:57 +01:00
Eric Engel
f54436afd7 fixed wrong flag value 2012-01-19 17:46:07 +01:00
Eric Engel
f3ec877def added incomplete rpl 2012-01-19 17:37:48 +01:00
Eric Engel
550c829f0d added incomplete rpl 2012-01-19 17:35:50 +01:00
Oliver Hahm
59a46e0e88 Merge branch 'sixlowpan'
Conflicts:
	cpu/arm_common/hwtimer_cpu.c
	sys/include/vtimer.h
	sys/vtimer.c
2012-01-11 17:02:43 +01:00
Oliver
ff347d3fb3 - Bugfix: TCP window size was not increased again after reading from the
socket
2012-01-03 02:48:11 +01:00
Oliver
15fab8e0cc - set TCP MTU to more realistic value
- Implemented TCP SOCKET API close()
- minor bugfixes
2012-01-03 02:16:43 +01:00
Oliver
de210879cb - refactored some of the stuff needed to send an TCP/IP packet 2011-12-27 05:31:52 +01:00
Oliver
436d977275 - Added Timeout handling when reassembling 6LoWPAN fragments 2011-12-27 03:04:41 +01:00
Oliver
11fecd089e - Added dynamic 6LoWPAN fragment buffer for reassembly of multiple
fragments at the same time
- Introduced thread message wrappers for identifying the correct
function
- Several bugfixes
2011-12-26 02:59:58 +01:00
Oliver
ae7d26382e NEW features: recv(); for TCP, TCP ACKs for data, introduced
net_msg_*() helper functions,
fixed lots of bugs
2011-11-25 01:31:54 +01:00
Oliver
f6fb8f7194 First simple transfer of data using an established TCP connection 2011-11-11 03:41:08 +01:00
Oliver
6b84ae0807 TCP bug fix, TCP refactoring 2011-11-08 02:14:58 +01:00
Oliver
7d1f607f0f Socket API: Code cleanup, small bugfixes 2011-11-02 02:55:38 +01:00
Oliver
c1b2b10a06 UDP bug fixes: after using TCP connection, socket was not deleted
properly
2011-11-01 21:04:28 +01:00
Oliver
fecb514293 Major bug fixes in TCP socket API and TCP packet handler. 2011-11-01 05:47:28 +01:00
Oliver
e9cde11409 TCP 3-way handshake finished, but NOT tested!
WARNING: TCP code not yet useable!
UDP improvements in socket API.
2011-10-28 04:37:12 +02:00
Oliver
9e20944fde new socket API functions, added TCP Handler, introduced global network
helper, increased stack sizes of network threads
2011-10-13 04:31:07 +02:00
Oliver Gesch
d9ff08b23a new, DESTiny: UDP Transport Layer and UDP part of Socket API 2011-09-28 16:29:01 +02:00
mlenders
5e6c25b511 Removed Escaping of '\r' 2011-08-05 17:17:12 +02:00
mlenders
3862e2b894 Merge branch 'sixlowpan' of ssh://ukleos.imp.fu-berlin.de/home/git/ukleos into sixlowpan 2011-08-05 16:11:07 +02:00
mlenders
19dc26b496 [*]
* reserved to empty in serial frames
2011-08-05 15:45:38 +02:00
mlenders
22b2690271 [sys/net/sixlowpan/flowcontrol.h]
* Window sizes to 1
2011-07-28 18:26:56 +02:00
mlenders
f40ed36802 [sys/net/sixlowpan/flowcontrol.*]
* fixed sem_init()
2011-07-28 18:25:57 +02:00
mlenders
c6c5eaae70 Fixed readpacket 2011-07-27 19:43:51 +02:00
mlenders
be73807c7b Unknown Ethertype output as 2 Byte Hex 2011-07-27 19:42:59 +02:00
mlenders
c884742cea ABRO for Border Router 2011-07-27 02:12:30 +02:00
mlenders
d3ad8bce2c fixed writepacket 2011-07-27 02:10:47 +02:00
mlenders
8be561e869 * implemented rudimentary ICMPv6 handling for border router 2011-07-26 13:41:40 +02:00
mlenders
fd551d572d [sys/net/sixlowpan/sixlownd.*]
* changed abro management
2011-07-26 13:35:58 +02:00
mlenders
355ee7a9fe Merge branch 'sixlowpan' of ssh://ukleos.imp.fu-berlin.de/home/git/ukleos into sixlowpan 2011-07-26 10:32:08 +02:00
mlenders
f98173da6c Updated some includes 2011-07-26 10:31:57 +02:00
mlenders
183b3f0c1b [sys/net/sixlowpan/bordermultiplex.h]
* prepared for ABRO version control
2011-07-26 02:04:29 +02:00
mlenders
bc97321680 [*]
* get_serial_*_buf() back to sixlowborder.*
2011-07-26 01:59:34 +02:00
mlenders
842bdc90ac [sys/net/sixlowpan/sixlowborder.c]
* cleaned up a little bit
2011-07-25 17:02:42 +02:00
mlenders
bdd9d81930 [sys/net/sixlowpan/sixlowborder.*]
* outsourced multiplexing to bordermultiplex.*
2011-07-25 17:00:18 +02:00
mlenders
b918924fc1 [sys/net/sixlowpan/sixlowborder.c]
* flow control outsourced to flowcontrol.*
2011-07-25 16:33:24 +02:00
mlenders
9322071520 Made serial in and out buffer publicly accessable 2011-07-25 16:14:15 +02:00
mlenders
0478c325c7 Removed some unneccary stuff 2011-07-25 15:36:22 +02:00
mlenders
9aeaf79d96 All "edge" to "border" renamed 2011-07-25 15:06:40 +02:00
mlenders
e40b8f0499 [sys/net/sixlowpan/sixlowedge.c]
* removed unneccassary stdout, again
2011-07-24 23:29:42 +02:00
mlenders
f35974d745 merged strange effects 2011-07-24 23:10:12 +02:00
mlenders
3d31dc64bb [sys/net/sixlowpan/sixlowedge.c]
* Reduced stdout to a minimum for testing
2011-07-24 23:06:48 +02:00
mlenders
109ac0b62a [sys/net/sixlowpan/sixlowedge.c]
* Reduced stdout to a minimum for testing
2011-07-24 21:27:07 +02:00
mlenders
03da9f0590 [sys/net/sixlowpan/sixlownd.h]
* added ICMPv6 Redirect type to filter it out on the border router

[sys/net/sixlowpan/sixlowedge.c]
* filter for ICMPv6 messages implemented
2011-07-24 21:25:47 +02:00
mlenders
240bbf7562 [sys/net/sixlowpan/sixlowedge.c]
* Fixed function call
2011-07-24 18:13:10 +02:00
mlenders
417555d4c0 'Implemented' multiplexing (sixlowpan code needs work) 2011-07-24 18:06:28 +02:00
mlenders
166098dd16 [sys/net/sixlowpan/sixlowedge.*]
* Dummy code for context and address updates
2011-07-24 17:29:50 +02:00
mlenders
885b789f24 [*]
* adjusted names (mainly "edge" -> "border" and names adjacent to name in linux driver for the border router)
2011-07-23 22:17:52 +02:00
mlenders
fa7c050a0c unstaged warning 2011-07-23 21:49:34 +02:00
mlenders
12fa93032a [sys/net/sixlowpan/sixlowedge.c]
* restart timeout timer after resending
2011-07-12 15:03:46 +02:00
mlenders
44717b59c2 [sys/net/sixlowpan/sixlowedge.c]
* Threeway-Handshake for serial interface implemented
2011-07-12 15:00:21 +02:00
mlenders
afc2bfe32d sliding window for edge router 2011-07-11 18:26:12 +02:00
mlenders
9521142842 merged 2011-07-10 22:49:41 +02:00
mlenders
0bacfdbfbf [sys/net/sixlowpan/semaphore.*]
* added semaphores for sliding window
2011-07-09 20:34:20 +02:00
mlenders
972752bbda [sys/net/sixlowpan/sixlowedge.c]
* new IP packet processing thread for edge router

[sys/net/sixlowpan/sixlowpan.*]
* decide weather the normal node whether the normal IPv6 processing thread should be created or its edge roter counterpart
2011-07-09 19:19:31 +02:00
mlenders
35692755bc [sys/net/sixlowpan/sixlowedge.c]
* added capability to write packets via serial interface
2011-07-09 19:14:13 +02:00
mlenders
f298c74c44 [sys/net/sixlowpan/sixlowip.c]
* avoid duplicate attachement of IPv6 addresses to the interface
2011-07-09 19:08:27 +02:00
mlenders
79d6157cfc [sys/net/sixlowpan/sixlowedge.c]
* pipe received IPv6-Packets from serial interface to lowpan
2011-07-09 19:06:28 +02:00
mlenders
d304d4c0ec [sys/net/sixlowpan/sixlowedge.c]
* fixed small bug
2011-07-09 19:04:03 +02:00
mlenders
311099fc11 [sys/net/sixlowpan/sixlowedge.h]
* redefined packet types for edge router
2011-07-09 19:01:40 +02:00
mlenders
265d371763 [sys/net/sixlowpan/sixlowip.h]
* added DEBUGLINE macro
2011-07-09 18:52:52 +02:00
mlenders
33a04d61fe [sys/net/sixlowpan/sixlowedge.*]
* Receiving of (L3) packets via serial interface implemented
2011-07-05 04:24:41 +02:00
mlenders
6532389f07 [sys/net/sixlowpan/sixlownd.*]
* added ICMPv6 Parameter Problem message (for later application in edge router)
2011-07-05 03:50:08 +02:00
mlenders
e61cc71adb [sys/net/sixlowpan/sixlownd.c]
* Fixed minor errors in ARO for nbr. adv.
2011-07-05 03:48:24 +02:00
mlenders
4cc623b0dc [sys/net/sixlowpan/sixlowip.*]
* added function to check if Next-Header-Type is known
2011-07-05 03:43:29 +02:00
mlenders
2b1f5234ad [sys/net/sixlowpan/sixlownd.*]
* fixed STLLAO-Bug
2011-07-04 16:47:06 +02:00
mlenders
9bf13c2d56 [*]
* removed prefix information from abr_cache for now to save space
2011-06-24 14:39:24 +02:00
mlenders
1cc8cf4c5a [sys/net/sixlowpan/sixlownd.c]
* fixed segfault bug by dirty hacking
2011-06-24 02:44:36 +02:00
mlenders
258ba1a756 [sys/net/sixlowpan/sixlownd.c]
* centralized some variables
2011-06-24 02:40:25 +02:00
mlenders
e1309891ea [sys/net/sixlowpan/sixlowip.h sys/net/sixlowpan/sixlowip.c]
* made buffer extern
2011-06-24 02:31:55 +02:00
mlenders
72023134ee [sys/net/sixlowpan/sixlownd.h sys/net/sixlowpan/sixlownd.h]
* Context in abr_cache as cid rather than pointer
2011-06-24 02:23:47 +02:00
mlenders
5c1982d42c [sys/net/sixlowpan/sixlowpan.h sys/net/sixlowpan/sixlowpan.c]
* context lifetime saved as 16 bit integer rather than as timer
* thread counts down lifetime and deletes context when 0

[every commited file]
* made contexts thread save
2011-06-24 01:48:41 +02:00
mlenders
257ce2ffaf [sys/net/sixlowpan/sixlownd.c]
* fixed some bugs
2011-06-23 03:42:39 +02:00
mlenders
4ecf0aacf3 [sys/net/sixlowpan/sixlownd.c]
* XOR replaced by AND
2011-06-23 03:30:00 +02:00
mlenders
397f5444cd Missing sixlowerror.h added. 2011-06-23 01:48:40 +02:00
mlenders
aeae15be8a [sys/net/sixlowpan/sixlowedge.c]
* small bugfix
2011-06-22 21:18:18 +02:00
mlenders
b345138510 [sys/net/sixlowpan/sixlowedge.h sys/net/sixlowpan/sixlowedge.c]
* Edge router functionalities implemented
2011-06-22 21:09:06 +02:00
mlenders
5e572fe6f7 [sys/net/sixlowpan/sixlowip.h]
* Maximum length of list of interface addresses increased due to the required addresses
2011-06-22 20:58:35 +02:00
mlenders
a4f673ec96 * added loopback and all nodes multicast address automatically to interface according to RFC 2581 2011-06-22 19:19:37 +02:00
mlenders
8de7bd7662 [sys/net/sixlowpan/sixlowip.c]
* Check for unspecified address by the appropriate function
2011-06-22 18:46:17 +02:00
mlenders
64fa01fbfd [sys/net/sixlowpan/sixlownd.h sys/net/sixlowpan/sixlownd.c]
* let plist_add return a pointer to the newly added plist-entry
2011-06-22 18:34:41 +02:00
mlenders
4ac4e750fe [sys/net/sixlowpan/sixlownd.h sys/net/sixlowpan/sixlownd.c]
* abr_addr argument in abr_update_cache as pointer rather then value
* constants for 6CO C flag added
2011-06-22 15:25:42 +02:00
mlenders
0989fe650c [sys/net/sixlowpan/sixlowpan.c]
* choose always the longest prefix from contexts if prefix of prefixes is the same
2011-06-22 15:20:54 +02:00
mlenders
2f6eccb5bf [sys/net/sixlowpan/sixlowip.c]
* fixed pointer error
2011-06-22 15:19:20 +02:00
mlenders
9b1dbd43fb [sys/net/sixlowpan/sixlowpan.h sys/net/sixlowpan/sixlowpan.c]
* seperated initialization of adhoc routers from initialization process
2011-06-22 12:36:26 +02:00
mlenders
a2d7628a73 [sys/net/sixlowpan/sixlowip.h sys/net/sixlowpan/sixlowip.c]
* added capability to initiate a node as router
* added capability to check if a node is initiated as router
2011-06-22 12:34:32 +02:00
mlenders
6d074b4a29 [sys/net/sixlowpan/sixlowip.c]
* added failsafe if someone tries to add address :: to an interface (not allowed according [RFC 4291])
* automatically add address to corresponding solicitaded nodes multicast address [RFC 4291]
2011-06-22 12:08:45 +02:00
mlenders
fe464025c1 [sys/net/sixlowpan/sixlowip.h sys/net/sixlowpan/sixlowip.c]
* added loopback address generation features
2011-06-22 11:58:54 +02:00
mlenders
2c20f8fafd handled some warnings
[sys/net/sixlowpan/sixlowip.c]
* pointer in ipv6_process() for PROTO_NUM_NONE out-commented
* val = 0 as initial value

[sys/net/sixlowpan/sixlowmac.c]
* included and initialized hwtimer

[sys/net/sixlowpan/sixlownd.c sys/net/sixlowpan/sixlownd.h]
* initialized abro_version in recv_rtr_adv()
* ARO state according to draft-6lowpan-hc-16
2011-06-22 11:49:29 +02:00
mlenders
6263e59867 [sys/net/sixlowpan/sixlowip.c sys/net/sixlowpan/sixlowpan.c]
* Initialisation of iface_addr_list_count to sixlowip.c according to header files
2011-06-22 10:45:19 +02:00
mlenders
b048b876dc [sys/net/sixlowpan/sixlowpan.c]
* Fixed address prefix comparison for context.
2011-06-22 00:02:44 +02:00
mlenders
2d432ab3a7 [sys/net/sixlowpan/sixlowmac.c]
* Fixed some errors in address and channel allocation due to casting between pointers on 8-bit int and 16-bit int.
2011-06-21 19:44:20 +02:00
mlenders
e19221f2eb Header-Definition for sixlownd.h 2011-06-19 13:54:49 +02:00
mlenders
31d0e35c0b C6O implemented 2011-06-18 23:33:47 +02:00
mlenders
d23d1ff256 ABRO implemented 2011-06-18 23:33:27 +02:00
mlenders
f403366d26 Added serial number arithmetics (corresponding RFC1982) for version field in ABRO 2011-06-18 18:25:34 +02:00
mlenders
be23b1121e Assure assignment of con in lowpan_iphc_encoding and lowpan_iphc_decoding 2011-06-18 18:17:18 +02:00
mlenders
07f6292455 context update now returns the updated context 2011-06-18 18:11:00 +02:00
mlenders
29d37af23e Context prefixes, Address generation after IETF Context prefixes now are in conformity to IPv6 prefixes [RFC3513] + Address generation by Context now after [draft-ietf-6lowpan-hc-15], section 3.1.1 + some minor errors fixed. 2011-06-18 18:04:02 +02:00
mlenders
8eba66a82f added simple getter 2011-06-14 22:52:24 +02:00
mlenders
cf0f0e1747 Context-Management implementiert 2011-06-14 22:28:56 +02:00
mlenders
12ab511f29 C6O-Flags defined 2011-06-14 19:21:50 +02:00
mlenders
a2c7cf8f9a 6CO und ABRO in header 2011-06-14 18:25:05 +02:00
Stephan Zeisberg
dcf45b08a7 global buffer is now thread safe, ns compression bug solved 2011-05-16 14:26:42 +02:00
Stephan Zeisberg
eff15fa054 fixed some reassembling bugs 2011-02-22 13:19:16 +01:00
Stephan Zeisberg
8b4bccde36 added: icmp 135,136 / iphc header encoding/decoding 2011-01-24 22:41:32 +01:00
Stephan Zeisberg
0440c19f6b added some neigbor discovery options to icmp message functions 2011-01-18 11:02:48 +01:00
Stephan Zeisberg
2ddc48de4e reprogrammed address handling and created address interface structure 2011-01-07 23:38:42 +01:00
Stephan Zeisberg
5e26d199cc fragmentation and reassambly works now and cleaned up tons of warnings 2011-01-07 13:02:27 +01:00
Stephan Zeisberg
66b668d6e1 implemented ieee 802.15.4 data transmission 2011-01-04 10:25:16 +01:00
Stephan Zeisberg
2fabdc1620 new ieee802154 frame create/parse functions 2010-12-13 11:14:41 +01:00
Stephan Zeisberg
4f638e0ff0 deleted a structure 2010-11-30 11:38:48 +01:00
Stephan Zeisberg
52b1bc9276 implemented internet checksum algorithm 2010-11-30 10:21:29 +01:00
Stephan Zeisberg
20ce94fd61 functions to get buffer pos implemented 2010-11-22 12:52:56 +01:00
Stephan Zeisberg
5ab4ca3768 renamed defines 2010-11-09 22:20:26 +01:00
Stephan Zeisberg
1b3e758505 mtu icmpv6 option implemented 2010-11-08 10:33:23 +01:00
Stephan Zeisberg
e9da187fbc function reordered 2010-10-27 21:35:40 +02:00
Stephan Zeisberg
bcee568b74 reordered functions for better layering 2010-10-19 23:07:36 +02:00
Stephan Zeisberg
a5577625b5 reordered functions for better layering 2010-10-19 23:07:29 +02:00
Stephan Zeisberg
f243ba24c6 reordered functions for better layering 2010-10-19 23:07:22 +02:00
Stephan Zeisberg
3dd901a549 reordered functions for better layering 2010-10-19 23:06:47 +02:00
Stephan Zeisberg
40d2125870 reordered functions for better layering 2010-10-19 23:06:40 +02:00
Stephan Zeisberg
0d6297c170 added router advertisment function 2010-10-19 14:38:44 +02:00
Stephan Zeisberg
860369eea4 implemented 6ln router solicitation function 2010-10-17 16:05:46 +02:00
Stephan Zeisberg
95315a0c6c defined some values 2010-10-17 16:05:14 +02:00
Stephan Zeisberg
6c67c13ff0 created addressing methods(link local/multicast) 2010-10-17 16:04:54 +02:00
Stephan Zeisberg
90dc8f3f45 defined some values 2010-10-17 16:04:03 +02:00
Stephan Zeisberg
4a7948e53b defined some values 2010-10-17 16:03:48 +02:00
Stephan Zeisberg
864f02ec4d created sixlowip.c file 2010-10-17 16:02:47 +02:00
Stephan Zeisberg
fe1d8ed3ee added new neighor discovery header file 2010-10-14 13:14:16 +02:00
Stephan Zeisberg
1c343bf186 extended ip.h function and router solicitation send method 2010-10-14 13:10:52 +02:00
Stephan Zeisberg
e118393cc2 send router solicitation method inserted 2010-10-12 21:42:03 +02:00
53a5560bb8 * moved sixlowpan to subdirectory 2010-10-11 13:27:33 +02:00
820cdad59b * removed incomplete sixlowpan from master branch 2010-10-11 13:26:24 +02:00
Stephan Zeisberg
42871faffc added set_ipv6_method fuction(not implemented yes) 2010-10-06 17:55:31 +02:00
Stephan Zeisberg
bba315e93f implemented 48bit mac to eui64 conversion 2010-10-06 17:15:05 +02:00
Stephan
668eb658d0 added packet-fragmentation defines 2010-10-05 22:39:14 +02:00
Stephan
6c275bea71 added some more todos 2010-10-05 22:13:04 +02:00
Stephan
673282fce9 created 6lowpan c-header-file 2010-10-05 21:54:57 +02:00
Stephan
175bc28538 created 6lowpan c-file with todo for output function 2010-10-05 21:53:00 +02:00
91ae1eb6fd * import from old firekernel repository 2010-09-22 15:10:42 +02:00