Cenk Gündoğan
ca5b45e264
converting tabs to spaces in sys ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:51:50 +02:00
Ludwig Ortmann
b8aa5dbaf8
Merge pull request #1496 from LudwigOrtmann/osx-fixup
...
native: reenable compilation on osx
2014-07-31 07:32:07 +02:00
René Kijewski
4032a22719
queue: add queue_t root type
2014-07-30 21:10:22 +02:00
Ludwig Ortmann
3d6124c905
native: reenable compilation on osx
2014-07-30 10:23:28 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
René Kijewski
6fae042a60
core: remove unneeded calls to mutex_init()
2014-07-29 09:33:24 +02:00
René Kijewski
0ab1b86e5f
Add generic char
pipe implementation
2014-07-28 23:21:27 +02:00
René Kijewski
02aeca02db
ringbuffer: add static initializer
2014-07-28 20:56:12 +02:00
René Kijewski
201152a6d3
ringbuffer: add documentation
2014-07-28 20:56:12 +02:00
René Kijewski
a346276d30
ringbuffer: don't overwrite in ringbuffer_add
2014-07-28 20:44:02 +02:00
René Kijewski
47950e8bab
ringbuffer: remove pointer to the end
...
There is no need for an explicit pointer to the end of the buffer.
2014-07-28 20:44:02 +02:00
René Kijewski
726af8d44e
ringbuffer: fix parameter types
...
It is a bad idea to use signed types for lengths.
Mark pointers a `restrict`, since the ringbuffer is not thread safe
anyway.
2014-07-28 20:44:02 +02:00
René Kijewski
67856d63d9
ringbuffer: add convenience functions
...
This patch add `peek` functionality, and empty and full helpers.
2014-07-28 20:44:01 +02:00
René Kijewski
aaa95a281a
ringbuffer: remove example
2014-07-28 20:44:01 +02:00
Ludwig Ortmann
1fd762d3bc
Merge pull request #1403 from LudwigOrtmann/transceiver_fixup
...
sys/transcevier: fix more loop integers
2014-07-28 09:19:47 +02:00
Christian Mehlis
e2052cb6a9
Merge pull request #1026 from mehlis/ccnl-helper-thread
...
ccnl: refactor ccn lite stack
2014-07-18 21:27:13 +02:00
Christian Mehlis
70c863b3b1
Merge pull request #1320 from mehlis/ccnl-timeouts
...
ccnl: change timeouts to useful values
2014-07-18 21:26:09 +02:00
Christian Mehlis
d2b78a398f
ccnl: finish rebase
2014-07-18 21:06:40 +02:00
Christian Mehlis
54bf710c69
ccnl: fix function name
2014-07-18 20:50:37 +02:00
Christian Mehlis
0aad35f33c
ccnl: normalize time before using it
2014-07-18 20:47:26 +02:00
Christian Mehlis
5bc873d8ca
ccnl: change timeouts to useful values
2014-07-18 20:47:26 +02:00
Christian Mehlis
7c10101e83
ccnl: prevent race condition on teardown
2014-07-18 20:08:29 +02:00
Christian Mehlis
9b5eedeea8
ccnl: use stacksize main for all threads
2014-07-18 20:08:29 +02:00
Christian Mehlis
cebffb2ccf
ccnl: make relay start on RIOT startup
2014-07-18 20:07:15 +02:00
Christian Mehlis
085e386f2d
ccnl: make theRelay use dynamic memory
2014-07-18 20:04:13 +02:00
Christian Mehlis
51fa2ec5c5
ccnl: use vtimer instead of rtc
2014-07-18 20:04:13 +02:00
Christian Mehlis
0b390040f4
ccnl: use a second helper thread to handle e.g. timeouts
2014-07-18 20:01:11 +02:00
René Kijewski
e1705622b7
vtimer: fix crash on spurious hwtimer callback
...
It seems that there are corner cases where a vtimer was removed, but
still there comes a hwtimer callback. This is a bug somewhere in the
vtimer or hwtimer. If there still was a vtimer set, then the next one
gets called before its time. If there was no other vtimer scheduled,
then `timer->action(timer)` crashes.
This PR simply fixes the crash, but does not attempt to find the more
fundamental bug.
2014-07-18 14:42:52 +02:00
Oleg Hahm
04493cc026
Merge pull request #1407 from LudwigOrtmann/issue-571
...
sys/vtimer: spin on short duration in vtimer_sleep
2014-07-16 22:14:27 +02:00
Oleg Hahm
344f702366
shell: prepare a rudimentary IEEE 802.15.4 packet
...
The transceiver module expects an `ieee802154_packet_t` instead of a
`radio_packet_t` if the device supports the IEEE 802.15.4 packet format.
This commit fixes the corresponding transceiver shell command for
`txtsnd` to set destination address (short address mode), payload, and
length accordingly.
2014-07-16 16:07:49 +02:00
René Kijewski
d4ff405e21
Merge pull request #1401 from LudwigOrtmann/scnetif_error
...
sys/net_if, make: fixup
2014-07-15 01:18:43 +02:00
Hauke Petersen
7ec61c578d
vtimer: renamed e|dINT to disable|restoreIRQ
2014-07-14 18:10:06 +02:00
Ludwig Ortmann
428e085c53
sys/shell: fix error when not using sixlowpan
...
```
/sys/shell/commands/sc_net_if.c:631:27: error: ‘IPV6_MAX_ADDR_STR_LEN’ undeclared (first use in this function)
char addr_str[IPV6_MAX_ADDR_STR_LEN];
^
```
2014-07-14 18:00:05 +02:00
Sebastian Sontberg
af3c54e3a2
pnet: Fix INADDR_ANY and INADDR_BROADCAST
...
INADDR_ANY and INADDR_BROADCAST should not be initializers.
2014-07-14 14:13:13 +02:00
Ludwig Ortmann
66b76a5a41
sys/transcevier: fix more loop integers
2014-07-13 15:52:33 +02:00
Ludwig Ortmann
3e965f926a
sys/vtimer: spin on short duration in vtimer_sleep
...
closes #571
2014-07-13 06:56:17 +02:00
Christian Mehlis
7169fd1107
Merge pull request #1362 from OlegHahm/ccnl_eliminate_warning
...
CCN_lite eliminate warning
2014-07-10 23:56:39 +02:00
Oleg Hahm
a6e97a4f75
Merge pull request #1034 from Kijewski/vtimer-callbacks
...
vtimer: fix callback usage
2014-07-10 17:12:23 +02:00
Ludwig Ortmann
a992d4d848
sys/transceiver: use size_t instead of u8 in loops
2014-07-10 14:11:48 +02:00
Ludwig Ortmann
8e93886d36
sys/transceiver: refactor un/register
...
remove race conditions
make less restrictive (allow double-un/registers)
make loops more readable
2014-07-10 14:11:48 +02:00
Ludwig Ortmann
d034cfac29
sys/transceiver: implement transceiver_unregister
2014-07-10 14:11:48 +02:00
Ludwig Ortmann
c264338e31
sys/transceiver: fix t9r_register API compliance
2014-07-10 14:11:48 +02:00
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
2014-07-09 10:28:23 +02:00
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
Ludwig Ortmann
295f32ac1b
sys/ps: fix comment style, superfluous declaration
2014-07-04 16:38:22 +02:00
Ludwig Ortmann
70dae32a3f
sys/ps: s/float/int for runtime
...
The high precision isn't needed, use per mille instead.
Circumvents printf problems on some platforms.
Also: prevent division by zero.
2014-07-04 16:38:22 +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
9f39226108
shell: added command to print all ignored addresses
2014-06-24 10:11:06 +02:00
Oleg Hahm
36b9f7e7d7
Merge pull request #1257 from Kijewski/shell-fix-newline
...
shell: fix newlines
2014-06-22 23:56:36 +02:00
Oleg Hahm
6f17f0c60a
Merge pull request #1105 from Kijewski/shell-print-not-found
...
shell: print command if not found
2014-06-22 21:03:30 +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
Hauke Petersen
839955cd05
sys: added color module
2014-06-22 13:53:01 +02:00
René Kijewski
14601c0c38
Merge pull request #1299 from phiros/timex_bugfix_and_improvement
...
Timex bugfix and improvement
2014-06-19 13:18:15 +02:00
Philipp Rosenkranz
0bf6ce22f3
added conv function from uint64 to timex_t and one minor bug fix
2014-06-19 12:40:24 +02:00
René Kijewski
467b41ad49
make: easifier usage of module subdirectories
...
Many modules have subdirectories. Often these subdirectories should only
be included under certain circumstances. Modules that use submodules
currently need to use this pattern:
```make
DIRS = …
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
```
This PR moves the `all:` and `clean::` boilerplate into `Makefile.base`.
2014-06-17 15:49:32 +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
Christian Mehlis
2350809536
pnet: silence unused argument warnings
2014-06-11 13:36:41 +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
René Kijewski
2231a315d4
vtimer: fix callback usage
...
There is no need to test the "handler" set in the vtimer struct, and
have some code executed then. We just can make the code to execute the
handler. To lengthy `if else if`, just a call.
2014-06-03 21:07:59 +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
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
e165a08606
fixed debugging for cc110x
2014-06-03 15:04:52 +02:00
Oleg Hahm
e5e9d9e538
set correct transceiver stack size for debugging
2014-06-03 15:04:52 +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
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
René Kijewski
94bb326fc0
shell: fix newlines
2014-05-30 21:10:05 +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
638666c34a
shell: print command if not found
2014-05-12 22:07:35 +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
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
Thomas Eichinger
d89faccc78
Merge pull request #1031 from LudwigOrtmann/issue_676
...
redbee-econotag: fix maca
2014-04-24 10:19:22 +02:00
Christian Mehlis
c1f0ef9fbe
Merge pull request #1037 from Kijewski/issue-577
...
shell: Add doxygen
2014-04-22 16:59:08 +02:00
René Kijewski
14401ede42
shell: Add doxygen
...
Closes #577 .
2014-04-22 08:03:15 +02:00
Christian Mehlis
206e6688a7
ccnl: find bogus looping content
2014-04-19 21:09:12 +02:00
René Kijewski
9a5a8a2452
Add pthread_rwlock test
2014-04-18 16:26:12 +02:00
René Kijewski
10d36df795
pthread: implement reader/writer lock
2014-04-18 16:20:47 +02:00
René Kijewski
542a2e5d9d
Merge pull request #995 from Kijewski/issue-993
...
Make: exterminate 'clean' buildtarget clutter
2014-04-18 16:11:15 +02:00
René Kijewski
72df45ea02
Merge pull request #1017 from Kijewski/issue-980
...
documentation: Add missing documentation for pthread functions and structures
2014-04-18 16:08:06 +02:00
Ludwig Ortmann
3a1980af36
redbee-econotag: fix maca
...
I suspect that the transceiver will still not work as there are many
many warnings, but at least it builds now.
closes : #676
2014-04-18 16:05:23 +02:00
Christian Mehlis
1bc74f4fef
Merge pull request #1001 from mehlis/ccnl-defaulttransceiver
...
ccnl: use default transceiver
2014-04-18 15:12:09 +02:00
Christian Mehlis
dcf4c3a80e
Merge pull request #1021 from Kijewski/vtimer_now-no-16bit-overflow
...
vtimer: fix integer overflow in vtimer_now() for MSP-430
2014-04-18 12:00:27 +02:00
Christian Mehlis
c2846a07b9
ccnl: use default transceiver
2014-04-18 11:45:53 +02:00
René Kijewski
3101083f13
pthread: fix spinlock
2014-04-18 03:19:31 +02:00
René Kijewski
3e6bebadd3
Add missing doxygen for pthread funs and structs
2014-04-18 03:19:31 +02:00
René Kijewski
f2e28c8146
Merge pull request #1016 from BytesGalore/fix_cpp_pthread_id
...
posix:pthread c++11 changed pthread_self() to return thread IDs > 0
2014-04-17 16:44:43 +02:00
René Kijewski
77c296cf59
vtimer: fix integer overflow in vtimer_now() for MSP-430
2014-04-17 14:46:21 +02:00
Martin
e159d0b38a
changed return value to 0 on lookup fail in pthread_self()
2014-04-17 14:31:36 +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
Martin
f3566f0b8a
changed pthread_self() to return thread IDs > 0
2014-04-16 17:31:47 +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
René Kijewski
300d6b3e35
Make: exterminate 'clean' buildtarget
...
Closes #993 .
We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.
This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
2014-04-09 23:07:52 +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
Oleg Hahm
8a86f493b4
Merge pull request #821 from Kijewski/pthrad_cleanup
...
posix: Add pthread_cleanup handlers
2014-04-09 00:19:17 +02:00
Oleg Hahm
786cd0a5f7
Merge pull request #986 from Kijewski/a-minor-fix-for-issue-672-not-everything-but-better-than-nothing-i-guess-or-what-do-you-think
...
make: replace findstring with filter in sys/Makefile
2014-04-09 00:16:26 +02:00
Oleg Hahm
56c5df7097
Merge pull request #813 from Kijewski/add-pthread_barrier
...
posix: Add `pthread_barrier_*` functions
2014-04-09 00:08:23 +02:00
René Kijewski
fbc4531877
make: replace findstring with filter in sys/Makefile
2014-04-08 19:25:51 +02:00
René Kijewski
eaca16d07a
Add pthread_barrier_t documentation
2014-04-06 19:25:15 +02:00
René Kijewski
9202a482d5
Add pthread_barrier_*
functions
...
Compare [`pthread_barrier_init`][1].
[1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_barrier_init.html
2014-04-06 19:25:15 +02:00
Martin Lenders
d9fdbca9de
Fix dereferencing of type-punned pointer
...
Fixes #897
2014-04-05 20:42:08 +02:00
René Kijewski
b44b88a6ed
pthread_cleanup: better documentation
2014-04-04 18:03:29 +02:00
René Kijewski
b54962689a
posix: Add pthread_cleanup handlers
...
With `pthread_cleanup_(push|pop)` you can define a function that should
be ran if the thread is exited while it is inside this scope. A thread
can be ended here through an explicit call to `pthread_exit()`, or if
cancellation was requested and a cancellation point was hit.
`pthread_cleanup_*` is mostly only useful together with cancellation
points, and cancellation points are only useful with a cleanup
functionality. Cancellation points are at least partially implemented by
means of `pthread_testcancel()`.
C.f. ["Cancellation Points"][1].
[1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02
2014-04-04 18:03:29 +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
Oleg Hahm
2b7e41b742
Merge pull request #963 from LudwigOrtmann/make_remove_makebase
...
make: replace MAKEBASE with RIOTBASE
2014-04-01 17:23:31 +02:00
Ludwig Ortmann
91814e52ae
make: replace MAKEBASE with RIOTBASE
...
closes https://github.com/RIOT-OS/RIOT/issues/959
2014-04-01 16:40:28 +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
Ludwig Ortmann
a6fd531783
Merge pull request #874 from OlegHahm/fix_ignore_command
...
net: transceiver: fix ignore command
2014-03-29 09:42:35 +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
René Kijewski
7354c5cc51
Merge pull request #867 from OlegHahm/uart_stacksize
...
uart: use cpu dependent stack size
2014-03-24 15:30:30 +01:00
Martine Lenders
e64c7c1739
Merge pull request #668 from benpicco/remove_includes
...
remove unnecessary INCLUDES
2014-03-24 15:20:15 +01:00
Martine Lenders
53264c7a45
Merge pull request #609 from LudwigOrtmann/transceiver_any
...
anytransceiver pseudomodule
2014-03-24 14:04:02 +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
90ccdd34d2
shell: transceiver: added missing return in error case
2014-03-19 10:26:49 +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
René Kijewski
e073d86845
Merge pull request #877 from Kijewski/shell-utf8
...
shell: fix UTF-8 problem
2014-03-18 11:27:28 +01:00
Ludwig Ortmann
8ac4f3332d
core cpu: add defaulttransceiver pseudomodule
...
update examples/default
2014-03-18 10:18:15 +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
Christian Mehlis
5733015c27
correct copyright and doxygen
2014-03-16 20:00:47 +01:00
Christian Mehlis
60feb7ea37
posix: move posix semaphore in posix module
2014-03-16 19:48:25 +01:00
Oleg Hahm
3c54edf4d6
Merge pull request #822 from LudwigOrtmann/reboot_signature
...
core: change reboot signature.
2014-03-16 18:42:23 +01:00
Martin Lenders
a134bb4238
Merge pull request #878 from OlegHahm/unroutable
...
net: sixlowpan: notify lowpan_transfer when IP packet is not routable
2014-03-13 19:40:41 +00:00
Ludwig Ortmann
9b61d95545
make: don't ignore failures in for loops
...
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
2014-03-12 11:09:04 +01:00
Oleg Hahm
42dbc44be4
amendment to 169976f
2014-03-10 20:03:14 +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
René Kijewski
97593e9f05
shell: add myself to authors
2014-03-10 18:17:05 +01:00
René Kijewski
a1df6a86bb
shell: don't ignore IO errors
2014-03-10 13:48:00 +01:00
René Kijewski
3f289760bf
shell: accept UTF8 input
2014-03-10 13:47:33 +01:00
Ludwig Ortmann
063a15ce9b
Change reboot signature.
...
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.
Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2 )
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
2014-03-10 11:14:27 +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
169976f90a
fix ignore command
2014-03-09 18:59:35 +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
Martin Lenders
58fb30b8a7
Fix address output of net_if shell command
2014-03-09 08:45:03 +00:00
Oleg Hahm
a0d1fda4a8
use cpu dependent stack size
2014-03-08 15:29:52 +00:00
René Kijewski
83988b2d03
Merge pull request #725 from kaspar030/optimize_thread_status_usage
...
core: sched: thread: optimize thread status field usage
2014-03-05 17:30:31 +01:00
René Kijewski
a3076c9726
shell: remove clutter from shell's Makefile
...
Remove clutter that was put into centralized Makefile.includes.
2014-03-04 21:12:17 +01:00
René Kijewski
e15ce49808
Merge pull request #848 from Kijewski/that-annoying-debug-flag-in-pthread-that-effing-needs-to-go-away-already
...
posix: Disable debug output of pthreads
2014-03-04 18:31:55 +01: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
Martin Lenders
78aa5a4b3d
Merge pull request #852 from authmillenon/autoinit-src-addr-mode
...
net_if/auto_init: Auto init source address mode
2014-03-04 11:58:01 +01:00
Martin Lenders
4c63dae94d
Auto init source address mode
2014-03-04 11:14:05 +01:00
René Kijewski
46031a0540
posix: Disable debug output of pthreads
...
`DEBUG_ENABLED` should be enabled during debugging, and disabled
afterwards.
2014-03-03 22:12:25 +01:00
Christian Mehlis
eb0ceeb773
Merge pull request #794 from Kijewski/shell-args-escape
...
shell: Allow escaped characters in shell
2014-03-03 18:14:00 +01:00
Christian Mehlis
ef1d9836d3
Merge pull request #806 from Kijewski/sem-pthread-native
...
native/posix: Don't include sys/types.h in semaphore.h
2014-03-03 17:36:46 +01: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
Christian Mehlis
1cc5fa57c1
Merge pull request #839 from mehlis/posix-sleep
...
posix: added sleep and usleep
2014-03-03 17:23:09 +01:00
Christian Mehlis
1a438b64a5
posix: added sleep and usleep
2014-03-03 17:21:48 +01:00
Martin Lenders
332485e466
Fix source address IPHC
2014-03-03 17:16:29 +01:00
Christian Mehlis
64fc465a6a
pthread: mutex - return the right values
2014-03-03 13:29:28 +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
Christian Mehlis
80135e6655
Merge pull request #824 from LudwigOrtmann/3des_includes
...
sys/crypto: remove assert.h include
2014-03-01 17:14:44 +01:00
Ludwig Ortmann
6089de5ef2
Remove useless assert comments
...
address: https://github.com/RIOT-OS/RIOT/pull/824#issuecomment-36426297
2014-03-01 16:27:18 +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