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
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
René Kijewski
05a4bf7f04
Merge pull request #1057 from Kijewski/sched_switch-current_prio
...
core: imply current_prio in `sched_switch()`
2014-06-03 15:59:23 +02:00
Cenk Gündoğan
56298378ee
pnet: accept should return a new generated file descriptor
...
From man page:
On success, these system calls return a nonnegative integer that is a
descriptor for the accepted socket. On error, -1 is returned, and errno
is set appropriately.
2014-06-02 18:53:51 +02:00
Thomas Eichinger
9cde1e5fc3
Merge pull request #1146 from Kijewski/struct-tm-utils
...
sys: add utility functions for `struct tm`
2014-05-28 12:20:32 +02:00
René Kijewski
1887bd45c6
sys: add utility functions for struct tm
2014-05-28 00:16:32 +02:00
Thomas Eichinger
f32c7af1a9
sys:transceiver: fix some doxygen comments
2014-05-27 15:57:28 +02:00
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
2014-05-26 14:54:23 +02:00
René Kijewski
4e4f908379
Initial import of the x86 port
...
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
René Kijewski
a6fd5bff92
core: imply current_prio in sched_switch()
...
There is no need to supply the current priority to `sched_switch()`,
when this function can easily tell the value of
`active_thread->priority` itself.
2014-05-24 16:48:35 +02:00
René Kijewski
75f71992e5
Add doxygen comments to MSP's oneway malloc
2014-05-22 15:40:25 +02:00
René Kijewski
1b89f334e3
msp430: provide oneway-malloc implicitly
...
For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
included. The problem is that `malloc.h` is not a standard header, even
though it is common. `stdlib.h` in the right place to look for
`malloc()` and friends.
This change removes this discrepancy. `malloc()` is just named like
that, without the leading underscore. The symbols now are weak, which
means that they won't override library functions if MSP's standard
library will provide these functions at some point. (Unlikely, since
using `malloc()` on tiny systems is less then optimal ...)
Closes #1061 and #863 .
2014-05-22 15:40:25 +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
9efc0d2255
documentation: added missing doxygen header to transceiver interface
2014-05-22 13:01:36 +02:00
Oleg Hahm
ce73fa56e2
documentation: moved network documentation to top level
2014-05-22 13:01:36 +02:00
Christian Mehlis
0aa87a8ee7
Merge pull request #1208 from Kijewski/issue-1199
...
documentation: fix doxygen for `pthread_*.h`
2014-05-20 14:19:52 +02:00
René Kijewski
e135bdc266
documentation: fix doxygen for pthread_*.h
...
The pthread header files aren't in the doxygen page anymore after #1137 ,
because I `@file`'d the `.c` files, not the `.h` files.
This change moves doxygen boilerplate.
Closes #1199 .
2014-05-18 17:33:49 +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
836b8b9d2d
sys/ping/ping.c: malloc size of type, not size of pointer
2014-05-15 17:43:25 +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
Thomas Eichinger
46acc2f5d5
shell: renaming isnumber
to is_number
in sc_net_if.c
...
fix name collision on OS X by renaming
2014-05-14 19:43:58 +02:00
René Kijewski
e94912f7be
sys/crypo: fix function declarations
...
In #1119 old-style function declarations are exterminated and forbidden.
I missed the functions in `sys/crypto` because they weren't used
throughout the tests/examples before #1124 .
2014-05-14 14:35:35 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00
René Kijewski
ccc934856f
Merge pull request #1124 from Kijewski/consolidate-crypto
...
sys:crypto: put ciphers into one module
2014-05-14 13:12:21 +02:00
Ludwig Ortmann
2314915ff2
license: fix license header grammar
...
insert missing "is"
2014-05-14 09:49:09 +02:00
René Kijewski
96fba8a19b
sys:crypto: put ciphers into one module
2014-05-12 21:57:44 +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
René Kijewski
6a0053fbc8
shell:ps: SCHEDSTATISTICS cols only if needed
2014-05-08 10:27:33 +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
Christian Mehlis
246a6c73d2
Merge pull request #1084 from mehlis/ccnl-debug
...
ccnl: extra debug statements
2014-05-07 21:11:59 +02:00
René Kijewski
5879ccbcd3
Merge pull request #1117 from BytesGalore/add_missing_pthread_cv_header
...
sys:posix:pthread added missing `pthread_cond.h` to `pthread.h`
2014-05-07 09:11:39 +02:00
Martin Landsmann
61b0331980
added pthread_cond.h
to pthread.h
...
adjusted `test_pthread_condition_variable\main.c` includes reflecting the above change
2014-05-07 07:54:54 +02:00
René Kijewski
b8419d48d9
ccnl: remove type warning
2014-05-07 06:17:11 +02:00
Martine Lenders
48d2ad285b
Merge pull request #872 from OlegHahm/rpl_route_shell_command
...
sys: net: rpl: added RPL route shell command
2014-05-06 13:31:44 +02:00
Oleg Hahm
0018e3a181
shell: added RPL route shell command
2014-05-04 17:52:51 +02:00
René Kijewski
f23dab96d2
sys: rename ringbuffer functions
...
Closes #1011 .
2014-05-03 16:39:39 +02:00
Christian Mehlis
433e40c76e
ccnl: extra debug statements
2014-05-02 14:27:34 +02:00
BytesGalore
f4a994ac89
Merge pull request #1076 from BytesGalore/remove_return_from_noreturn_function
...
sys:posix:pthread removed explicit `return;` from `pthread_exit()`
2014-04-30 07:50:32 +02:00
Martin
fc532ad891
added else branch in pthread_exit()
to avoid calling explicit return;
...
however, this won't help to completely eliminate the warning on returning from a `noreturn` function
2014-04-30 07:22:48 +02:00
Martin
619039e0e2
add pthread condition variable implementation
2014-04-29 18:39:03 +02:00
Christian Mehlis
72036742d8
Merge pull request #1063 from Kijewski/shell_command_t-fix-const
...
shell: strings in shell_command_t are const
2014-04-28 14:07:36 +02:00
René Kijewski
07cc72576e
shell: Comment internal members, too
...
Closes #979 .
2014-04-28 10:41:48 +02:00
René Kijewski
4ed38bd2f3
shell: strings in shell_command_t are const
2014-04-27 14:37:54 +02:00
BytesGalore
9d4d98c9ea
Merge pull request #1025 from BytesGalore/add_out_of_bounds_check
...
sys:posix:pthread added check to avoid array out of bound access
2014-04-25 18:00:07 +02:00
Martin
345e76a0d7
added check to avoid array out of boud access
2014-04-25 17:57:41 +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