Oleg Hahm
1518d6ac64
Merge pull request #1390 from cgundogan/fix_socket_internal_t_packed_attr
...
destiny: deleting packed attribute from socket_internal_t
2014-07-08 22:33:54 +02:00
Cenk Gündoğan
8724eb1169
destiny: Adjust TCP_STACK_SIZE
...
Currently, the TCP_STACK_SIZE is `KERNEL_CONF_STACKSIZE_DEFAULT`.
However, since printf statements are used in the tcp relevant code,
this stack size is too small (esp. for MSBA2).
2014-07-08 21:30:58 +02:00
Cenk Gündoğan
b5e7460d45
destiny: deleting packed attribute from socket_internal_t
...
While testing the tcp implementation on MSBA2 I noticed that
the value of `tcp_input_buffer_end` gets changed whenever acquiring or
releasing the mutex of the struct on the server side.
After deleting the packed attribute of the struct this problem was
resolved and the value stayed the same after acquiring and releasing.
This problem could maybe arise from badly placed cache lines due to
missing padding... I am not sure.
Anyway, I guess using the packed attribute is useless here and makes it
more error-prone.
2014-07-08 20:40:55 +02:00
Oleg Hahm
53f7bea52f
Merge pull request #1167 from fabianbrandt/rpl_base_split
...
Split RPL into core and mode related functions.
2014-07-04 11:21:05 +02:00
Fabian Brandt
7fb462cd2c
Split RPL into core and mode related functions.
2014-07-03 20:23:57 +02:00
Fabian Brandt
62236e5d54
Introducing a source routing header for RPL.
2014-07-02 20:35:14 +02:00
Oleg Hahm
613caf3914
ccnl: eliminated empty translation unit warning
2014-07-02 19:23:14 +02:00
Oleg Hahm
0affcaf6e1
ccnl: fixed commenting style
2014-07-02 19:22:55 +02:00
René Kijewski
63dd8546af
Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
...
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
Christian Mehlis
381fec1fa8
Merge pull request #1301 from cgundogan/fix_tcp_handshake_seq_ack_rfc_compliancy
...
destiny: wireshark revealed wrong seq/ack nr. in tcp handshake
2014-06-30 22:05:23 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
Oleg Hahm
fda7ce12d2
Merge pull request #1321 from cgundogan/fix_missing_ack_bit
...
destiny: set ack bit for (almost) all segments after syn
2014-06-24 11:16:37 +02:00
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